-
• #2
I think it's because it's trying to include an stm32f1 header file. You'll have to edit
libs/fat_sd/*
and#ifdef STM32F4
all the includes. You'll also need to modify the header file to have the correct pin definitions. If you want to change that and modify build_patform_config.h to automatically set the pin definitions that'd be awesome though.Personally I wouldn't use SDIO as it's just ore complexity - just stick with normal SPI and follow the circuit from https://github.com/espruino/EspruinoBoard
-
• #3
In order to recompile the espruino code for the STM32F4 board, as Gordon suggests, you need to :
1) change the python definition file.
2) add the define USE_FILESYSTEM=1 in the Makefile
3) modify the spi_diskio.c file and include the management of the SPI peripheral in order to manage the slightly different instructions for the STM32 processors, such alternate function. or OType and PuPd records in the GPIO init port structure.
I succeded in doing the update, but at present time my code has bugs possibly in the C code, do I have to verify using gdb debugger why the code hangs up, as can be seen in the following screenshot. May be that the SPI clock is wrongly set.
1 Attachment
-
• #4
Yes, if it's not coming back your best bet is to use the debugger (or to add loads of jsiConsolePrint statements).
If you're up for it, the ideal solution would be to use
jshSPISetup
andjshSPISend
functions though - and then filesystem would work on any platform that normal SPI was supported on. -
• #5
It's a long way to Tipperary, but I will succeed at the end.
Thanks for your suggestions.
1 Attachment
-
• #6
Hello user6350,
did you ever succeed in getting the SDCard to work on STM32F4DISCOVERY?
I have a few of these boards laying around and want to make them useful by using the Espruino firmware on them... -
• #7
Yes, you can definitely use it. There's a post from a few days ago where someone used it just fine.
-
• #8
Here it is:
Hi folks,
I'm trying to add the SD-card functionality to the STM32F4-DISCOVERY image.
I changed the File "STM32F4DISCOVERY.py" as follows:
And the "Makefile" :
As Result I get the following errors:
It seems like an include error ... someone an idea how the includsructure works?