What could be a problem with bootloader in MKW01Z128?

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

What could be a problem with bootloader in MKW01Z128?

383 Views
sergiiparadiuk
Contributor II

Hello,

I am working on custom bootloader over RF mcu MKW01Z128. Now the bootloader puts all bin file (work application) in the address 0x8E00. After start  the app, and program jumps to the address 0x8E00 and after I debuged   in disasembler and it calls Hardware hendler.

I checked, the bin file was copied in correct address and the Linker file is correct too for the app.

define symbol __region_ROM_start__ = 0x0000E800;
define symbol __region_ROM_end__ = 0x0001FFFF;

Maybe I messed some thing..

0 Kudos
1 Reply

313 Views
gerardo_rodriguez
NXP Employee
NXP Employee

Hello Sergii Paradiuk,

I suggest basing your custom bootloader in either the Developer’s Serial Bootloader AN2295 (SWor the MCU Bootloader for Kinetis microcontrollers. 

Before jumping to your application, you should return the MCU to its reset state, set the application vector table offset (VTOR) and application stack pointer. You could take as reference the jump_to_application() function of the "C:\NXP\NXP_Kinetis_Bootloader_2_0_0\src\bootloader\src\bl_main.c" file from the MCU bootloader for Kinetis MCUs package.

Regards,

Gerardo

0 Kudos