I'm having quite a bit of trouble using SD cards with Esp32Forth.
On 8/26/23 5:15 PM, Van Kichline wrote:
I'm having quite a bit of trouble using SD cards with Esp32Forth.I have some SD card code in eForth (sort of) for both the MSP430 and
ARM. (MSP430 uses the SPI interface while the ARM uses 4 bit SD.) I
don't use Arduino unless forced to so I can't help with that.
The sort of refers to having to code it in assembler so it was part of eForth. Compiling from the SD card being kind of hard without it. :-)
http://davesrocketworks.com/electronics/msp430/eforth/index.html
You will of course want to read the SD (simplified) specification.
https://www.sdcard.org/downloads/pls/
Up to version 9.0 now I see. Full up initialization can be quite
complicated if you want to support SD 1.0 and MMC cards.
--Thanks for this! I believe my main problem is that the Arduino IDE does some "magic" to set the SPI pins when a board is selected, and I can't find any detailed documentation about how that's done, or how to compensate when there is no compatible board
http://davesrocketworks.com
David Schultz
Thanks for this! I believe my main problem is that the Arduino IDEThe magic is inside source files which are hiding somewhere in the
does some "magic" to set the SPI pins when a board is selected, and I
can't find any detailed documentation about how that's done, or how
to compensate when there is no compatible board definition. After
doing more research on this, it really looks like an Arduino question
more than a Forth question. Some seem to have solved this specific
problem for Esp32Forth; I was just hoping to find someone with a
simple pattern to follow. I'm not lazy, but when IDE's rely on
magic, sometimes you need to find a magician.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 18:22:59 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,091 |