uVision Keil Psoc Creator linker

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

cross mob
jepaz
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

I have been trying to export a Psoc4 Creator project into Keil uVision, 

the export to v5 just didnt work at all, it seems uvision does not longer support the generated files.

exported the project for v4 uVision and then converted to a v5 project

at first I wasnt able to compile it 

because there was two empty files referenced on the linker cycodeshareexport.ld / cycodeshareimport.ld ? any idea what this files should have, uvision was unable to find them I guess because they were empty.

I made sure the compiler used was the same as in PSOC creator ARM GCC 5.4 (from psoc creator folder)

the program compiled but somehow the hex file is not in the right format, I have tried adding the compiler flags but no luck, so the kitprog and miniprog are not allowing the programming to happen (the project runs and debugs fine from creator)

it would be great if someone can share a working configuration for the keil project!

linking...
creating hex file...
".\test.hex" - 0 Error(s), 264 Warning(s).
Build Time Elapsed: 00:00:06
Load "C:\\Users\\Admin\\Documents\\test.cydsn\\test.hex"
Failed to set hex file: Hex File parsing failure. Unknown record type.
Programming Failed!
Error: Flash Download failed - "Cortex-M0+"
Flash Load finished at 16:50:04

Not sure where to go from here.. there is not much details on the logs either

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jepaz 

I was able to export and program a Psoc4 Creator project to Keil uVision. After exporting please follow the steps given in this documentation(page no:440), kindly follow the steps given from page 509-511 for GCC settings in uVision.

After executing these steps build the project in uVision. Before programming the target PSoC4 device go to Project tab and click on 'Options for Target' in uVision.

LeoMathews_0-1664800405857.png

Select utilities tab and click on settings.

LeoMathews_1-1664800531388.png

In the Port Setup tab set the Kit Prog and click on OK.

LeoMathews_2-1664800608200.png

After completing these steps you should be able to program your PSoC4 device. Also please find attached the working configuration project for the same.

Thanks and Regards,
Leo

 

 

 

View solution in original post

5 Replies
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jepaz 

Please refer to this document to export a PSoC Creator project to Keil uVision.

Thanks and Regards,
Leo

 

0 Likes

hi @LeoMathews , 

I did follow that process it is not working as easy and straight forward as the document presents it,  are you able to get a sample project setup?  I managed to get it to compile but the generated hex file is not accepted by the kitprog/miniprog 

thank you!

0 Likes
lock attach
Attachments are accessible only for community members.
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jepaz 

I was able to export and program a Psoc4 Creator project to Keil uVision. After exporting please follow the steps given in this documentation(page no:440), kindly follow the steps given from page 509-511 for GCC settings in uVision.

After executing these steps build the project in uVision. Before programming the target PSoC4 device go to Project tab and click on 'Options for Target' in uVision.

LeoMathews_0-1664800405857.png

Select utilities tab and click on settings.

LeoMathews_1-1664800531388.png

In the Port Setup tab set the Kit Prog and click on OK.

LeoMathews_2-1664800608200.png

After completing these steps you should be able to program your PSoC4 device. Also please find attached the working configuration project for the same.

Thanks and Regards,
Leo

 

 

 

Thank you Leo! this is great I will give it a try

0 Likes
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jepaz 

Also please update the debug tab as shown before programming.

LeoMathews_3-1664802593464.png

Thanks and Regards,
Leo

 

0 Likes