FSRW with FlexC
Rayman
Posts: 14,646
I think I like the ease at which you can include Spin2 drivers into FlexC.
Attached is a FlexC code that uses the Spin2 FSRW code to read and write to uSD disk.
I also really like how I can use Visual Studio to edit the files... Feels like back at home
The Visual Studio project is also in the file...
This uses the cogless, inline assembly version of SDSPI. The version that uses a cog needs fixing (writing got broke somewhere along the line)...
I also noticed something strange about using this with the Eval board.
Seems you have to physically unplug the uSD card and reinsert before this code will work a second time...
This doesn't happen with my board, which uses different pins and doesn't share pins with flash.
Attached is a FlexC code that uses the Spin2 FSRW code to read and write to uSD disk.
I also really like how I can use Visual Studio to edit the files... Feels like back at home
The Visual Studio project is also in the file...
This uses the cogless, inline assembly version of SDSPI. The version that uses a cog needs fixing (writing got broke somewhere along the line)...
I also noticed something strange about using this with the Eval board.
Seems you have to physically unplug the uSD card and reinsert before this code will work a second time...
This doesn't happen with my board, which uses different pins and doesn't share pins with flash.
zip
50K