meminfls_mainfunction causes the hardfault

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

meminfls_mainfunction causes the hardfault

ソリューションへジャンプ
813件の閲覧回数
qimao-marvin
Contributor II

RTD:3.0.0 P07

AR:9.30.1

EB:29.0

as the function described below,when uses the iar to download and debug,it will cause hardfault;but if i try tu debug with hal_dataflash_write,everything works well.

can any one give me some advices?

Thanks

qimaomarvin_1-1749042902713.png

 

qimaomarvin_0-1749042792028.png

qimaomarvin_2-1749043011466.png

 

0 件の賞賛
返信
1 解決策
776件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @qimao-marvin,

Hard to say just from the description, but the driver must not be in the programmed flash block.

I see you program block_0 at 0x400000 where the application typically is.

The Mem_43_INFSL driver can use SRAM (below S32DS IDE configurator).

danielmartynek_0-1749196896211.png

 

Regards,

Daniel

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
777件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @qimao-marvin,

Hard to say just from the description, but the driver must not be in the programmed flash block.

I see you program block_0 at 0x400000 where the application typically is.

The Mem_43_INFSL driver can use SRAM (below S32DS IDE configurator).

danielmartynek_0-1749196896211.png

 

Regards,

Daniel

 

 

0 件の賞賛
返信
714件の閲覧回数
qimao-marvin
Contributor II

Because the address i try to erase and prohran in at the bank of the functiob, the 0x400000 - 0x500000 is the one bank, but even i put the code in the ram ,it caused the hardfault too,however ,if i erase at the 0x500000,the function runs well.

So why even the code runs in sram,it will cause hardfault when tried to program at 0x400000?

0 件の賞賛
返信