FlashDriver can not use

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FlashDriver can not use

1,331件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

1,287件の閲覧回数
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 件の賞賛
返信

1,278件の閲覧回数
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 件の賞賛
返信