environment:
I use Arduino IDE 2.3.2 on a Win10 Pro 64 bits version.
I installed Milk-V Arduino support as described in manual.
I use a MILK-V 64M with the arduino firmware provided by Milk-V
What I want to do:
I wrote a (large) sketch that uses the Serial… functions. That sketch worked. I was impressed by the speed of execution.
Then I wanted to implement a SDCard reader in the sketch.
First I typed in the SPI example from the instruction. That worked.
Next I wanted to try the CARDINFO example that comes with the SDFAT library.
I connected a (3.3V compliant) SD card module to the MILK-V. I used the pins described in the MILK-V manual:
CS->GP9[pin12], MISO->GP8[pin11], MOSI->GP7[pin10], Clock->GP6[pin9]
The first failure was that the sketch did not compile.
Error “Architecture not supported”.
I then replaced the SD library in the Arduino libraries directory with the one supplied in library.zip in the MILK-V distribution.
=> Clumsy I had to do that by hand.
After that the CARDINFO sketch would compile and upload to the MILK-V
When I tried to run the sketch I got an error message “pin GPIO 9 is not used as GPIO func” (and the sketch did not recognize the SD card).
This error message is not in the sketch or in the library, so i must be issued by the Arduino firmware on the MILK-V.
How can I fix this? Thanks for your input.