cancel
Showing results for 
Search instead for 
Did you mean: 

[q]How can I write hex file into the primary memory?

byounghoon_koh
Associate II
Posted on May 22, 2003 at 05:53

[q]How can I write hex file into the primary memory?

6 REPLIES 6
byounghoon_koh
Associate II
Posted on May 17, 2011 at 11:54

After I merge data file(addressed in FS0) and program file(addressed in CSBOOT0) the below comment is occured through PSDsoft.

>> Warning ADR002: No data file has been specified for FS1.

>> Warning ADR002: No data file has been specified for FS2.

>> Warning ADR002: No data file has been specified for FS3.

>> Warning ADR002: No data file has been specified for FS4.

>> Warning ADR002: No data file has been specified for FS5.

>> Warning ADR002: No data file has been specified for FS6.

>> Warning ADR002: No data file has been specified for FS7.

>> Warning ADR002: No data file has been specified for CSBOOT1.

>> Warning ADR002: No data file has been specified for CSBOOT2.

>> Warning ADR002: No data file has been specified for CSBOOT3.

>> Warning ADR027: Not recognized hex-record found in file 'C:\projects\detecfree\database\hexhex' at line 1 => ?

>>

>> Warning ADR027: Not recognized hex-record found in file 'C:\projects\detecfree\database\hexhex' at line 2 => T$F

>> Warning ADR025: There is no data within the specified FS0 range.

>> Address Translation complete.

>>

'hexhex' is the data file addressed in FS0. After this message I examined the FS0 area using 'Conventional Programmers' but there is no data. If the 'Conventional Programmers' is not available on uPSD, how can I read the data file?

Please let me know the way to read the data file.

Best regards,

Byounghoon

byounghoon_koh
Associate II
Posted on May 17, 2011 at 11:54

Hello Guys,

I want to write a hex file into primary memory. I set primary memory to all data area and placed the hex file into FS0 using PSDSoft. However, I found that the data is not placed in FS0 using Conventional Programmers(sub menu of PSDsoft) - I think, it is not supported uPSD yet.

Please let me know the way to write hex file into primary memory as data!!

Best regards,

Byounghoon

joseph2399
Associate II
Posted on May 17, 2011 at 11:54

You can just write the hex to FS0 via the JTAG port. Make sure your data file is in the correct address range of the *.hex file you specify to write. Then do a firmware merge and you can either do a program all or just select the Flash memory region that you want to program. The ''conventional programmer'' can only be used to view the content of Flash Memory.

byounghoon_koh
Associate II
Posted on May 17, 2011 at 11:54

Thanks for the reply

This is the procedure I do to write a hex file into primary memory.

Please check it and give some more detail advice.

1. Set main flash memory to data area and second flash to code area

in ''Define PSD and MCU/DSP'' of the PSDSoft.

2. Set flash memory area typically following by application note

(AN1560) in the step of ''Define PSD Pin/Node Functions''.

3. Browse a hex file(28KByte) and put into the FS0 area in the step of

'' Merge MCU/DSP Firmware with PSD''.

4. I down loaded through JTAG.

That's all. After this process, I verify the values downloaded in main flash memory using ''Conventional Programmer''. However, the memory is blank.(FS0~FS7 are filled with FF)

I can't find the reason why the file is not written.

It will be pleasure to help me more..

Best regards,

Byounghoon

joseph2399
Associate II
Posted on May 17, 2011 at 11:54

The ''Conventional Programmer'' can only be used to read the memory content of the uPSD. It looks like there is no data in your *.hex at the address range you specified. Did you specify the address range of 0x8000- 0xFFFF for FS0 during ''Merge MCU Firmware with PSD''? If there is no data in your *.hex file at that address range, then it will complain about ''No data in FS0''. You may want to try to select ''Relative'' in the Mapping Mode and specify the address range 0-0xXFFF for FS0, if the data in your *.hex file is in address range of 0 - 0xXFFF. You can find out the standard Intel Hex format from various websites using a web serch engine such as Google.

byounghoon_koh
Associate II
Posted on May 17, 2011 at 11:54

Thanks a lot!! I succeeded to write a hex file into primary memory in relative mapping mode.

Thanks,

Byounghoon