s32k144 flash operation jump b DefaultISR

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

s32k144 flash operation jump b DefaultISR

1,404 Views
oceansea
Contributor III

hi ,i use the s32k144EVB to deveiop a bootload ,and i use the demo FLASH_partitioning_s32k144 ,

but i modify a function ,

this is the demo function as below

pastedImage_1.png

and this is my function as below

pastedImage_2.png

but ,when i erase the flash ,if i use the FLASH_DRV_CommandSequence(),is ok ,successful ,

if i use my function u8Ext_USERflash_CommandSequence(),it will get into DefaultISR,and then reset 

the MCU.

i know when i operation the flash ,it should disable the interrupts ,and copy the function to ram;

but i do these ,i use the INT_SYS_DisableIRQGlobal()  ,and

START_FUNCTION_DEFINITION_RAMSECTION

END_FUNCTION_DEFINITION_RAMSECTION

but it still DefaultISR.

Labels (1)
0 Kudos
1 Reply

1,157 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi oceansea,

Please check the program counter if the function is really in RAM.

pastedImage_2.png

Which instruction generates the exception?

https://community.nxp.com/docs/DOC-334902 

Thanks,

BR, Daniel

0 Kudos