host_msd_fatfs_bm + fsl_flashiap causes Hard Fault

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

host_msd_fatfs_bm + fsl_flashiap causes Hard Fault

386 次查看
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 回复数

347 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @PawanNXP 

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

 

BR

Alice

0 项奖励
回复

339 次查看
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 项奖励
回复