[TM4C123] init_flash_fs fails

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Posts: 72
Joined: Sat Oct 20, 2018 4:02 pm

[TM4C123] init_flash_fs fails

Post by ExXec » Sat Mar 02, 2019 5:04 pm


I'm having some problems with the fatfs.

As stated in the title, the function call init_flash_fs(1) fails in the main().
The debugger shows that this line in f_mkfs() causes the error:

Code: Select all

if (sz_vol < 50) return FR_MKFS_ABORTED;   /* Check if volume size is >=50s */
sz_vol is 6 in this case.

What would cause this? The flash section used is 24kiB with a 8kiB cache in RAM. I tried completely erasing the flash, but that did nothing at all.

I included a screenshot of the debugger with the variables in case they are useful.

debugger.PNG (179.04 KiB) Viewed 322 times

Post Reply