boot loader with 2 image files on MK64 internal flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

boot loader with 2 image files on MK64 internal flash

ソリューションへジャンプ
708件の閲覧回数
roymessinger
Contributor V

I want to implement the Kbootloader and 2 image files on the MK64 flash. Can it be done?

So the bootloader itself and the 2 images will reside on the internal program flash of the MK64.

Do I need some hardware on the board for it? (special inputs/outputs).

Thanks.

1 解決策
536件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Roy Messinger,

Yes, your scenario should be possible, just I am not aware of reference implementations like this one. KBOOT might be useful for the bootloader part.

Depending on your IDE/compiler, you need to link the bootloader at the beginning of flash and then each of the 2 images at a different offset in flash memory, one after each other. Then in the bootloader's code you can add code for the decision making of which application image to execute (e.g. based in an external button, a variable in RAM or Flash, etc).

The required hardware depends on which interface you choose for the firmware update (UART, USB, I2C, SPI).

Regards!

Jorge Gonzalez

元の投稿で解決策を見る

1 返信
537件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Roy Messinger,

Yes, your scenario should be possible, just I am not aware of reference implementations like this one. KBOOT might be useful for the bootloader part.

Depending on your IDE/compiler, you need to link the bootloader at the beginning of flash and then each of the 2 images at a different offset in flash memory, one after each other. Then in the bootloader's code you can add code for the decision making of which application image to execute (e.g. based in an external button, a variable in RAM or Flash, etc).

The required hardware depends on which interface you choose for the firmware update (UART, USB, I2C, SPI).

Regards!

Jorge Gonzalez