PSoC Production programming using J-Link

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

cross mob
JaSi_1632926
Level 4
Level 4
Welcome! 25 replies posted 10 replies posted

Hello,

   

I'm trying to find information on how to use SEGGER J-Link for production programming a PSoC CY8C4247 device.

   

I have found the CY8C42xx Programming Specifications document (http://www.cypress.com/file/125271/download) but it seems to be more low-level than I need.

   

 

   

Is there any documentation on how to use J-Link for erasing/flashing a PSoC?

   

The reason we won't be using the MiniProg3 is that it's not supported on Linux, which is what we use in production.

   

Or is there another, better, option?

   

Thanks, Jacob

0 Likes
2 Replies
JaSi_1632926
Level 4
Level 4
Welcome! 25 replies posted 10 replies posted

Well, it seems like I figured it out, at least partly. Something like this seems to (almost) work:

   

JLinkExe -if SWD -device CY8C4247XXX-LXXX -speed 1000

   

connect
halt
erase
loadfile program.hex
reset
go

   

The program seems to start successfully but the loadfile step gives an error message:

   

Downloading file [program.hex]...
Comparing flash   [100%] Done.
Erasing flash     [100%] Done.
Programming flash [100%] Done.
Verifying flash   [100%] Done.
J-Link: Flash download: Flash programming performed for 1 range (131072 bytes)
J-Link: Flash download: Total time needed: 3.938s (Prepare: 0.288s, Compare: 0.103s, Erase: 0.057s, Program: 3.169s, Verify: 0.103s, Restore: 0.215s)
Writing target memory failed.

   

Again, the flashing /seems/ to work since it can start the program. But it's hard to trust this in a production setup. Anyone know why it gives an error message here?

   

Thanks, Jacob

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

This link describes the issue and provide some workaround-

   

http://forum.segger.com/index.php?page=Thread&threadID=2704

0 Likes