How to output .bin file by Psoc creater IDE

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

cross mob
Dave_Long
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

Hi:

    The customer need the .bin file for the bootLoader,how to output .bin file by Psoc creater IDE?

    

0 Likes
1 Solution
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

In PSoC Creator, go to Build Settings > ARM GCC Version > User Commands where you can specify the post build commands to generate the bin file. For the conversion itself you will need a third party hex to bin converter tool. The commands for conversion should then be added based on the syntax provided by the third party tool in the post build.

Vison_Zhang_0-1623896979436.png

 

"C:\Program Files (x86)\Cypress\PSoC Creator\4.4\PSoC Creator\import\gnu\arm\5.4.1\bin\arm-none-eabi-objcopy" -S -O binary ".\CortexM0p\ARM_GCC_541\Debug\Design01.elf" ".\CortexM0p\ARM_GCC_541\Debug\Design01.bin"

 

View solution in original post

0 Likes
4 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Dave_Long

Can you please let me know if you are looking to convert the bootloadable .cyacd file to a .bin file? If that is the case then this thread could help - CYACD to BIN Tool

Thanks and Regards,
Rakshith M B
0 Likes
Dave_Long
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

Hi Rakshith:

     The customer want to convert the APP .hex to .bin.After the build finish,Only hex files are generated。

0 Likes
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Dave_Long

You could try using a post-build command to run an intel hex to bin converter to generate the bin file or run a custom script to convert the hex file to a bin file.
Can you please provide details regarding the application and the reason for this request? This would help us better understand the request.

Thanks and Regards,
Rakshith M B
0 Likes
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

In PSoC Creator, go to Build Settings > ARM GCC Version > User Commands where you can specify the post build commands to generate the bin file. For the conversion itself you will need a third party hex to bin converter tool. The commands for conversion should then be added based on the syntax provided by the third party tool in the post build.

Vison_Zhang_0-1623896979436.png

 

"C:\Program Files (x86)\Cypress\PSoC Creator\4.4\PSoC Creator\import\gnu\arm\5.4.1\bin\arm-none-eabi-objcopy" -S -O binary ".\CortexM0p\ARM_GCC_541\Debug\Design01.elf" ".\CortexM0p\ARM_GCC_541\Debug\Design01.bin"

 

0 Likes