Programming using J-Link fails

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JeHu_3414236
Level 5
Level 5
10 likes received First like received

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
1 Solution

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
5 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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

It didn't fix the problem.

0 Likes

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

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

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,

0 Likes