host_msd_fatfs_bm + fsl_flashiap causes Hard Fault

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

host_msd_fatfs_bm + fsl_flashiap causes Hard Fault

915件の閲覧回数
PawanNXP
Contributor II

Hello,

I am trying to develop a pen-drive DFU mechanism. I have the app.bin in the root of the pen-drive and am trying to erase and write a different sector of flash with the app.bin data.

fsl_flashiap apis work well for me in a different project which does not have host_msd_fatfs_bm code.

However, even when the pen drive is disconnected, I experience Hard fault during the start of Flash Erase.

I use semi-hosting to print stuff.

I have not posted any code. just wanted to know if anyone has experienced this in the past. Any help would be highly appreciated.

Thanks,

Pawan

 

 

 

 

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

876件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @PawanNXP 

For better help you. Could you please tell which MCU do you used? 

 

BR

Alice

0 件の賞賛
返信

868件の閲覧回数
PawanNXP
Contributor II

Hello Alice,

 

This problem is resolved. I was not disabling interrupts before performing flash write. That caused hard faults.

 

Thanks for approaching

 

BR

Pawan

0 件の賞賛
返信