Hard fault when jump to application code.

Showing results for 
Search instead for 
Did you mean: 

Hard fault when jump to application code.

Contributor II


Imported the example emwin demo code. Changed the settings to match my prototype board. Successfully executed from starting address 0x70000000 without bootloader (i..e.from Debug). The demo screen appears on my LCD.

But when I changed the starting address to 0x70016400 from 0x70000000, created the axf file. load this axf to internal flash using GUI flash tool (inside MCUXpresso IDE), the bootloader fails to jump to this address and run the application. The bootloader stops in Hard fault handler after jump to application function execution.

Tools used :

I.MX RT1064

MCUXpresso IDE v11.1.0

SDK v2.7.0 manifest version 3.6.0

PE Micro debugger

LCD : 800*480

If I do the similar changes to led blinky demo code then it successfully jumps to this new address and executes the application.

Please let me know If I need to make any more changes to emwin demo code to make it work from different address than 0x70000000.

Labels (1)
Tags (3)
0 Kudos
1 Reply

Specialist V


Possibly you need to change the vector table offset register to match the start address so that interrupts can work (?)



[uTasker project developer for Kinetis and i.MX RT]

0 Kudos