cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

JeHu_3414236
Contributor II

I am programming a hex file generated by cymcuelftool using J-Link and after it finishes, it shows

ERROR: Could not download file.

The programming seemed to be successful because I can verify it later and it passes.  Does anyone know why there is the error after programming?

0 Likes
Reply
1 Solution
AnkitaS_51
Employee

Hi,

I checked for this issue.

I think this error comes because the hex has data at address 0x9030 0000 for PSoC6.

This needs to be removed from file.

Please check this KBA link from Segger for better understanding :Flashing Cypress PSoC Creator output data files with J-Flash - SEGGER Wiki

These forum links are discussing  and provided solution for the same issue:

[SOLVED] j-link-plus We get an error "Writing Memory Failed". - J-Link/Flasher related - SEGGER - Fo...

[SOLVED] JLinkExe flashing PSoC CY8C4247 gives error - J-Link/Flasher related - SEGGER - Forum

Thanks,

View solution in original post

0 Likes
Reply
5 Replies
AnkitaS_51
Employee

Hi ,

This forum link also discusses about similar issue. Thus it may be useful:

[SOLVED] J-Link error when downloading "Could not save file [Sample_DebugFlash.jlink]" - J-Link/Flas...

Thanks,

0 Likes
Reply
JeHu_3414236
Contributor II

It didn't fix the problem.

0 Likes
Reply
AnkitaS_51
Employee

Hi,

Can you please give us the log (screenshot) that appears while trying to program using JLINK.

I will suggest you to  also create a Forum thread at Segger's forum for JLINK, in order to take their perspective  on this  error message.

Thanks,

0 Likes
Reply
JeHu_3414236
Contributor II

This is the log:

J-Link>loadfile final.hex

Downloading file [final.hex]...

J-Link: Flash download: Bank 0 @ 0x10000000: 2 ranges affected (95744 bytes)

J-Link: Flash download: Total time needed: 7.314s (Prepare: 0.049s, Compare: 0.041s, Erase: 3.135s, Program: 2.396s, Verify: 1.672s, Restore: 0.018s)

Writing target memory failed.

My app runs and verify passes using PSoC Programmer.

0 Likes
Reply
AnkitaS_51
Employee

Hi,

I checked for this issue.

I think this error comes because the hex has data at address 0x9030 0000 for PSoC6.

This needs to be removed from file.

Please check this KBA link from Segger for better understanding :Flashing Cypress PSoC Creator output data files with J-Flash - SEGGER Wiki

These forum links are discussing  and provided solution for the same issue:

[SOLVED] j-link-plus We get an error "Writing Memory Failed". - J-Link/Flasher related - SEGGER - Fo...

[SOLVED] JLinkExe flashing PSoC CY8C4247 gives error - J-Link/Flasher related - SEGGER - Forum

Thanks,

View solution in original post

0 Likes
Reply
Top labels