host_msd_fatfs_bm + fsl_flashiap causes Hard Fault

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

host_msd_fatfs_bm + fsl_flashiap causes Hard Fault

276 Views
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

 

 

 

 

Labels (1)
0 Kudos
Reply
2 Replies

237 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @PawanNXP 

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

 

BR

Alice

0 Kudos
Reply

229 Views
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 Kudos
Reply