Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service


Please accept the use of cookies on our site

At PEmicro we use web browser cookies in order to provide you with an enhanced experience and in order to be able to do things like shopping cart processing and identify you when you login to our website.

Click here to accept



search inside this forum
search inside all forums
How Program a s19 file that is created under CodeWarrior with PROG12Z
Xu L. Jan 19, 2018 at 02:22 AM (02:22 hours)
Staff: Takao Y.

  • Hello

    I have a s19 file that is created under CodeWarrior, It can be programmed with (CodeWarrior + USB multilink), but It can not be programmed with (PROG12Z + USB multiline). that prompt me "All S record addresses not in range or module", I have a look in the S19 file, there are 4 address ranges(0x0400-0x05FE, 0x4080-0x7700, 0x0E8000-0x0EBFA0, 0xC000-0xFFFA), It seems to have EEprom address and Flash address.

    so how to program like this s19 file that is created under CodeWarrior with PROG12Z?

    MCU:MC9S12VR48

    Thanks!




    Comments

  • Greetings,

    You must convert your S19 file into P&E PHY file. All of our software requires this format. If your Codewarrior outputted a GLO file, that is the same as the P&E PHY file. If your Codewarrior generates a PHY file, DO NOT use it. It is not in the right format.

    You can convert your S19 using this utility:
    http://www.pemicro.com/downloads/download_file.cfm?download_id=15


    Takao Yamada

  • Hello

    Thank You!

    the S19 file also includes EEprom content,I can only convert flash content to PHY file, no EEprom content.

  • Greetings,

    I believe the EEPROM does not need to be converted for your device. Only devices that are HCS12X need to do extra conversion.

    So the flash is now in PHY file, and the s19.extra file is your EEPROM data. You can now program your device. Use the Linear flash algorithm with the PHY file, and the EEPROM algorithm with the s19.extra


    Takao Yamada

  • Hi Takao

    Thank You!

    I need to spend about 14 seconds to program this MCU,
    Is that a method let it speed up?

    if I change the USB multilink to USB multilink FX, how much time will be saved?

  • Greetings,

    For HCS12 architecture, you will NOT see any time improvement upgrading to the multilink FX because the bottleneck is the BDM protocol, not due to P&E software or hardware limitations.

    Were you able to program your device? Report back how long it does take to program both PFLASH and EEPROM so we can look into faster approaches.


    Takao Yamada

  • Hi Takao

    Yes, I am able to program my device.

    the time for FLASH is about 10s,

    the time for EEPROM is about 2s.

    below is the log for detail:
    P&E Interface detected - Flash Version 9.81
    CMD>RE
    Initializing. -Target has been RESET and is active.

    REM>
    CMD>CM C:\PEMicro\PROG12Z\Algorithms\Freescale_9S12VR48_1x16x24k_48k_Linear_Pflash.12P 034000
    Initializing. -Initialized.
    ;version 1.00, 03/04/2011, Copyright P&E Microcomputer Systems, www.pemicro.com [9S12vr48_48k]
    ;device Freescale, 9S12VR48, 1x16x24k, desc=48k_Linear_Pflash
    ;begin_cs device=$00034000, length=$0000C000, ram=$00003800
    Loading programming algorithm ... Done.
    CMD>EM
    Erasing. -Module has been erased.
    CMD>BM
    Blank Checking ... Erased.
    CMD>SS D:\Software\FL_normal_712.phy ; [Script Line = SS /PARAM1]
    CMD>PM
    Checking range of S records. -Checked.
    Programming. Address $ Processing Object File Data ... 034000034400034800034C00035000035400035800035C00036000036400036800036C00037000037400037800037C00038000038400038800038C00039000039400039800039C0003A00003A40003A80003AC0003B00003B40003B80003BC0003C00003C40003C80003CC0003D00003D40003D80003DC0003E00003E40003E80003EC0003F00003F40003F80003FC00. Programmed.
    CMD>VM
    Checking range of S records. -Checked.
    Verifying. Address $ 0340000341400342800343C00345000346400347800348C0034A00034B40034C80034DC0034F000350400351800352C00354000355400356800357C0035900035A40035B80035CC0035E00035F400360800361C00363000364400365800366C0036800036940036A80036BC0036D00036E40036F800370C00372000373400374800375C0037700037840037980037AC0037C00037D40037E80037FC00381000382400383800384C00386000387400388800389C0038B00038C40038D80038EC00390000391400392800393C00395000396400397800398C0039A00039B40039C80039DC0039F0003A04003A18003A2C003A40003A54003A68003A7C003A90003AA4003AB8003ACC003AE0003AF4003B08003B1C003B30003B44003B58003B6C003B80003B94003BA8003BBC003BD0003BE4003BF8003C0C003C20003C34003C48003C5C003C70003C84003C98003CAC003CC0003CD4003CE8003CFC003D10003D24003D38003D4C003D60003D74003D88003D9C003DB0003DC4003DD8003DEC003E00003E14003E28003E3C003E50003E64003E78003E8C003EA0003EB4003EC8003EDC003EF0003F04003F18003F2C003F40003F54003F68003F7C003F90003FA4003FB8003FCC003FE0003FF4003FFFF. Verified.
    CMD>SC
    Calculating Device CRC-16 ... CRC-16=$8824


    REM>
    CMD>CM C:\PEMicro\PROG12Z\Algorithms\Freescale_9S12VR32_1x16x256_512_bytes_EEPROM.12p 000400
    Initializing. -Initialized.
    ;version 1.00, 03/04/2011, Copyright P&E Microcomputer Systems, www.pemicro.com [9S12vr64_0.5k]
    ;device Freescale, 9S12VR32, 1x16x256, desc=512_bytes_EEPROM
    ;begin_cs device=$00000400, length=$00000200, ram=$00003800
    Loading programming algorithm ... Done.
    CMD>EM
    Erasing. -Module has been erased.
    CMD>BM
    Blank Checking ... Erased.
    CMD>SS D:\Software\FL_normal_712.S19.extra ; [Script Line = SS /PARAM2]
    CMD>PM
    Checking range of S records. -Checked.
    Programming. Address $ Processing Object File Data ... 000400. Programmed.
    CMD>VM
    Checking range of S records. -Checked.
    Verifying. Address $ 0004000005400005FF. Verified.
    CMD>SC
    Calculating Device CRC-16 ... CRC-16=$CD95


    All programming steps completed.

  • Greetings,

    If you run VC instead of VM, then you could see up to 2 seconds off the PFLASH programming time and up to 0.5 second off the EEPROM programming time. VC does a CRC calculation and comparison, while the VM command does byte-by-byte comparison. CRC is not 100% guarantee, but pretty close to it and will save time if you are running a large production line. And if you are running tests afterwards then you would catch any programming issues there.


    Takao Yamada

  • Hi Takao,

    Thanks for your advise!

    Yes, I'll run it on production line, but I meet another problem:

    I would like to program two MCUs at the same time with two USB multilinks, but CPROG12Z does not seems to support it? that always allows one CPROG12Z application runs in the system.

  • Greetings,

    Our licenses are single-user, single-seat. That means each license can only be ran once at a time. You cannot run 2 multilinks on the same computer using CPROG12Z. You need 2 computers and 2 licenses. This is why our cyclone hardware is a better solution for production programming because you do not need a computer, no licenses, and you can program faster than the multilink.


    Takao Yamada

Add comment


   Want to comment? Please login or create a new PEMicro account.







© 2018 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement