2024-08-25 11:10 PM
I need help with STM32F4 Firmware Upgrade Using Pendrive.
I tried the FW Standalone Upgrade Application given for STM32F429 Discovery Board. But the code is giving hard fault error. It opens the directory properly and opens the file. But when it reaches the read function it gives error when reaches validate function inside f_read() function. I have not been able to debug and understand the exact point of issue. If anyone can provide some inputs will be helpful.
Or else if someone has a working code for the bootloader and can share it will be really appreciated.
Thankyou.
2024-08-25 11:34 PM
Instrument better so you understand what is happening. Determine exact point of Hard Fault and the registers and assembler code that causes it.
Instrument at the DISKIO level.
2024-08-25 11:42 PM
I have tried this but I am not able to understand the exact reason yet. I have been able to trace it upto this point : it goes to f_read -> validate() -> disk_status -> stat = disk.drv[pdrv]->disk_status(disk.lun[pdrv]); This is the line where I get the hard fault error. If tried to check where these variables are set but could not find in the code. If u can guide me further wrt what might have gone wrong?