How to generate fixed-size bin file for MCU in keil

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

How to generate fixed-size bin file for MCU in keil

810 Views
jimmyli
Contributor IV

Hi,

     I need to generate fixed-size bin file for MCU(MKL02Z32VFM4) in keil.

     How can I do it?

     Thanks very much.

0 Kudos
Reply
3 Replies

686 Views
bobpaddock
Senior Contributor III
srec_cat from the SRecord project can do that.

https://srecord.sourceforge.net
0 Kudos
Reply

797 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As you know that the size of *.bin is only dependent on your application code, if you want to get fixed size bin file, I suppose you can add the "nop" operation, which only occupies the flash size, but does not do anything. Furthermore, you can add a useless array with constant data.

uint32_t array[]={0x00,0x01,....};

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply

718 Views
jimmyli
Contributor IV

Hi Xiangjun,

     Get it.

     Thanks very much.

0 Kudos
Reply