How do I convert an embedded C project file into a S19 file in Kinetis Design Studio ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I convert an embedded C project file into a S19 file in Kinetis Design Studio ?

Jump to solution
1,334 Views
ganeshramachand
Contributor IV

I am a beginner to Embedded Systems. I am working on Freescale Kinetis E series controllers. I use Kinetis Design Studio IDE. I wrote a project to blink the LEDS in a customized board. Now I want to make it as a S19 file which I would load to my other project using Terminal Application. Is it possible ?

S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse

I found this link to be useful but it explains how its done in Code Warrior IDE. In the KDS IDE it is different I guess. Because in that link, it asks me to use Create Flash Image option under " Additional Options" in Code Warrior but there is no such option in Kinetis Design Studio. I don't even have "Additional options" under C/C++ build.. What shall I do ?

Labels (1)
0 Kudos
1 Solution
939 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

in KDS, "create flash image" option is under properties toolchains tab, see below:

pastedImage_0.png

can this help you?


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
5 Replies
939 Views
carlnormansuret
Contributor V

I have followed these steps and gotten the SREC, however, the SREC is in 16 bit address format and my KL27 processor is 256K and uses 32 bit addressing...

Example copied from SREC output file:

S113001000000000000000000000000000000000DC

S1 = 16 bit address format!

SREC (file format) - Wikipedia 

0 Kudos
939 Views
carlnormansuret
Contributor V

Thanks! --srec-forceS3 worked perfectly.

Not that it matter, but what you said about "16 bit is ok", i dont see how it is, because the second you address above 65535 it no longer works... i.e. try writing to ram address 20001234.
0 Kudos
940 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

in KDS, "create flash image" option is under properties toolchains tab, see below:

pastedImage_0.png

can this help you?


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
939 Views
ganeshramachand
Contributor IV

Hey Thanks. But how do I select the file format there is no option called "OUTPUT" as shown in my link.

UPDATE:

Sorry Zhang. I got it. Thanks for helping. It was under tool settings.

0 Kudos
939 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

you are welcome!

Jennie Zhang

0 Kudos