FlashDriver can not use

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

FlashDriver can not use

1,150 Views
DouDou1
Contributor III

Hi,

I use the file (S32K358_FLASH_TEST) to generate the.s19 file of FlashDriver, and then test it in the file (S32K358_TCU_FlashDriver_TEST). When I test, Run C40Status = ((C40_Ip_Init)(Function_TABLE[0]))(&C40_Ip_InitCfg). When this statement, the program will jump to the error interrupt void HardFault_Handler(void), I have tried many methods, but it does not work, what is the reason for this?

I refer to this method https://community.nxp.com/t5/S32K-Knowledge-Base/S32K-How-to-make-Flash-Driver-image/ta-p/1630873

0 Kudos
Reply
2 Replies

1,106 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @DouDou1 

did you try to step the code to see where it fails exactly? Are all functions referenced in the init function also forced to that specific segment?

I would rather use flash drivers from HSE examples:

https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples

Install the package and then you will find the drivers at path like this:

c:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Asymmetric Algorithms\S32K344_Hse_Ecc_Example\drivers\flash\

Regards

Lukas

 

0 Kudos
Reply

1,097 Views
DouDou1
Contributor III
Hi,@lukaszadrapa
Thanks for you reply, I try to step the code in this file(S32K358_TCU_FlashDriver_TEST). When I test, Run C40Status = ((C40_Ip_Init)(Function_TABLE[0]))(&C40_Ip_InitCfg),the program will jump to the error interrupt void HardFault_Handler(void).
And I checked that all functions referenced in the init function also were forced to that specific segment.
0 Kudos
Reply