Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SD card SPI vs 1LINE
#21
My firmware is MicroPython ESP32_LoBo_v3.2.4 and I have SD set to 4_LINE in the menuconfig before build. But I did also try using 1 of the prebuilt firmwares and got the same results.

Can you post a pic of your board so I can see if it is the same as mine as there is a few version of the this board.
Reply
#22
(04-12-2018, 10:07 AM)OutoftheBOTS Wrote: My firmware is MicroPython ESP32_LoBo_v3.2.4 and I have SD set to 4_LINE in the menuconfig before build. But I did also try using 1 of the prebuilt firmwares and got the same results.

Can you post a pic of your board so I can see if it is the same as mine as there is a few version of the this board.

here the picture of V1.3 board from github https://raw.githubusercontent.com/LilyGO...%201.3.jpg


Attached Files Thumbnail(s)
   
Reply
#23
(04-10-2018, 10:53 AM)OutoftheBOTS Wrote: Does the fact that the 1_LINE mode is missing gpio_pad_select_gpio the SPI has make a difference????

The SD card pins in SD mode are initialized by the esp-idf low level driver, so it should not make a difference.

However, I've changed the SD card initialization code in the latest update, and now all the gpios are initialized to have internal pull-ups enabled in all modes.
(init pins in SD mode)

Note: Sometimes, depending on sd card wiring, after the flashing you have to power down the board for sd card pin initialization to work properly.

Please check if it now works any better.
Reply
#24
Thanks Lobo for the updates.

I am away with work at the moment so will test it when I get home.
Reply
#25
I have got home and did and update to firmware and tried out the SD card in 1_LINE mode on my TTGO T8 V1.1 ESP32 4MB PSRAM TF CARD board and it worked. Also now it is now running at 50MHz where before it was running at 25MHz.

Here is the repl output on a fresh startup

Quote:MicroPython ESP32_LoBo_v3.2.10 - 2018-04-15 on Out of the BOTS with ESP32
Type "help()" for more information.
>>> I (1093) wifi: n:10 0, o:1 0, ap:255 255, sta:10 0, prof:1
I (1751) wifi: state: init -> auth (b0)
I (1754) wifi: state: auth -> assoc (0)
I (1759) wifi: state: assoc -> run (10)
I (1770) wifi: connected with GingellHome_2.4GHz, channel 10
I (1771) wifi: pm start, type: 1


>>> import uos
>>> uos.sdconfig(uos.SDMODE_1LINE)
>>> uos.mountsd(True)
---------------------
 Mode:  SD (1bit)
 Name: SD16G
 Type: SDHC/SDXC
Speed: high speed (50 MHz)
 Size: 14784 MB
  CSD: ver=1, sector_size=512, capacity=30277632 read_bl_len=9
  SCR: sd_spec=2, bus_width=5

>>>

My TTGO doesn't have the lines connected to test 4_LINE mode so I just connected my external SD card adapter that I made that doesn't have any pull-ups and it worked

see repl output for 4_LINE mode without pull-ups


Quote:MicroPython ESP32_LoBo_v3.2.10 - 2018-04-15 on Out of the BOTS with ESP32
Type "help()" for more information.
>>> I (1093) wifi: n:10 0, o:1 0, ap:255 255, sta:10 0, prof:1
I (1751) wifi: state: init -> auth (b0)
I (1753) wifi: state: auth -> assoc (0)
I (1759) wifi: state: assoc -> run (10)
I (1769) wifi: connected with GingellHome_2.4GHz, channel 10
I (1770) wifi: pm start, type: 1


>>> import uos
>>> uos.sdconfig(uos.SDMODE_4LINE)
>>> uos.mountsd(True)
---------------------
 Mode:  SD (4bit)
 Name: SD16G
 Type: SDHC/SDXC
Speed: high speed (50 MHz)
 Size: 14784 MB
  CSD: ver=1, sector_size=512, capacity=30277632 read_bl_len=9
  SCR: sd_spec=2, bus_width=5

>>>
Reply
#26
I just pull new code and rebuild it, new firmware on my TTGO-T8 v1.3 can mount *all* of my SD cards perfectly. All of them can be mount even after hard reset or power cycling. Thanks @lobo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)