Hard fault when jump to application code.

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

Hard fault when jump to application code.

1,102 Views
vishaldahiwal
Contributor II

Hi,

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
Reply
1 Reply

1,012 Views
mjbcswitzerland
Specialist V

Hi

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

Regards

Mark

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

0 Kudos
Reply