I do not have a D32 Pro at hand, so the setting of the Pins was derived from the d32 specs. But they should be OK, since the software SPI works. With the Lolin32 pro I have sometimes the issue that I have to do a hard reset with the SD card inserted to get it properly working.
And no, SPI and serial port are independent, unless you assign them to the same Pins.
New Lolin D32 Pro with 4MB PSRAM
Re: New Lolin D32 Pro with 4MB PSRAM
The pins are good - I was able to talk to the micro SD with software SPI but no luck with hardware. I will do some more testing this evening. It would be good to get SD access baked into the ESP32 port I think.Roberthh wrote: ↑Fri Sep 21, 2018 8:08 pmI do not have a D32 Pro at hand, so the setting of the Pins was derived from the d32 specs. But they should be OK, since the software SPI works. With the Lolin32 pro I have sometimes the issue that I have to do a hard reset with the SD card inserted to get it properly working.
And no, SPI and serial port are independent, unless you assign them to the same Pins.
Grow something!
- philwilkinson40
- Posts: 63
- Joined: Tue Nov 14, 2017 3:11 am
- Location: Perth, Australia
Re: New Lolin D32 Pro with 4MB PSRAM
Has anyone had problems with the LiPo connection on D32Pro? I have been running along fine with USB serial power.
I get a decent reading at the battery terminals on the board, but nothing further in. Even VBAT has nothing ?!? I have a Lolin32 Pro V1.0.0 (with apparently the same battery circuit) which runs fine off a LiPo.
I can't find any known problems on the ESP32/wemos forums. Has anyone else experienced this problem?
I get a decent reading at the battery terminals on the board, but nothing further in. Even VBAT has nothing ?!? I have a Lolin32 Pro V1.0.0 (with apparently the same battery circuit) which runs fine off a LiPo.
I can't find any known problems on the ESP32/wemos forums. Has anyone else experienced this problem?
Re: New Lolin D32 Pro with 4MB PSRAM
Hi, Roberthh.Roberthh wrote: ↑Sun Sep 16, 2018 9:31 amI just have tried and succeeded to use the built-in SD card on my Wemos LoLin32 Pro. It uses the sdcard.py script from the drivers/sdcard section and the following statements for mounting.For the new Lolin D32 pro, the Pins for the SPI interface have to be adapted into:Code: Select all
import machine, sdcard, os sd = sdcard.SDCard(machine.SPI(1, sck=machine.Pin(14), mosi=machine.Pin(15), miso=machine.Pin(2)), machine.Pin(13)) os.mount(sd, "/sd")
You can also use the software SPI. In that case, the SPI device number is -1Code: Select all
import machine, sdcard, os sd = sdcard.SDCard(machine.SPI(1, sck=machine.Pin(18), mosi=machine.Pin(23), miso=machine.Pin(19)), machine.Pin(4)) os.mount(sd, "/sd")
I did follow up your kind instruction but I'm not clear on last 3 response lines ? I'm using Wemos D32 Pro V2. I formatted my physical 8GB SD card by 4GB FAT only format only and wrote one simple text file to card by laptop to ensure that SD card is usual written before testing on MCU. Could you please guide more idea on below 3 lines error?
(2018, 12, 15, 15, 39, 13, 5, 349)
MicroPython v1.9.4-752-gd4d4bc582 on 2018-12-13; ESP32 module with ESP32
Type "help()" for more information.
>>>
paste mode; Ctrl-C to cancel, Ctrl-D to finish
=== import machine, sdcard, os
=== sd = sdcard.SDCard(machine.SPI(1, sck=machine.Pin(18), mosi=machine.Pin(23), miso=machine.Pin(19)), machine.Pin(4))
=== os.mount(sd, "/sd")
Traceback (most recent call last): #errror message line 1
File "<stdin>", line 3, in <module> #error message line 2
OSError: [Errno 19] ENODEV #error message line 3
>>>
Re: New Lolin D32 Pro with 4MB PSRAM
That's hard to tell. My experience is varying. With the ESP32 port, I have an 8 G Samsung card, which fails, and a 32 G Sandisk card, which works well, and so on. On a PyBoard, all card work well
Re: New Lolin D32 Pro with 4MB PSRAM
Roberthh, you are right , problem was on SD card itself. My side, there are SanDisk and Apacer are working well. Thank you for your support again.
Re: New Lolin D32 Pro with 4MB PSRAM
[quote=Roberthh post_id=30171 time=1536994351 user_id=601]
That#s hard to tell without knowing the exact reason @mike teachman had. The obvious observation is, that in his set-up the timing of reset and GPIO0 do not match. GPIO0 low is too late with respect to the end of the reset pulse. But the reasons could be:
- GPIO0 is scanned too early (-> Lolin)
- the USB/UART bridge or the transistor circuit switche too slow (->Lolin)
- the controlling PC send the switch command too late (->PC)
Assuming that Wemos is testing their devices, I tend to the third explanation. But without testing it#s hard to tell.
[/quote]
I purchased 3 D32 Pro 2 of them firmware programmed ok and 3rd I had to toggle the reset button. The issue was the U4 Auto Flash chip pin 6 had a bad joint hold down with a pin and it worked. Luck had a solder iron very pointed bit and re-soldered. Fixed OK. Pin 6 looking at the top end of the TFT connector 6pin chip to right pin 6 is on left/top pin of 3 pins closest to Processor. I was able to put a test meter on pin and press reset as was not getting a change until re-soldered.
My 1st post on forum, think I have entered it correctly Tony VK3ZTR
That#s hard to tell without knowing the exact reason @mike teachman had. The obvious observation is, that in his set-up the timing of reset and GPIO0 do not match. GPIO0 low is too late with respect to the end of the reset pulse. But the reasons could be:
- GPIO0 is scanned too early (-> Lolin)
- the USB/UART bridge or the transistor circuit switche too slow (->Lolin)
- the controlling PC send the switch command too late (->PC)
Assuming that Wemos is testing their devices, I tend to the third explanation. But without testing it#s hard to tell.
[/quote]
I purchased 3 D32 Pro 2 of them firmware programmed ok and 3rd I had to toggle the reset button. The issue was the U4 Auto Flash chip pin 6 had a bad joint hold down with a pin and it worked. Luck had a solder iron very pointed bit and re-soldered. Fixed OK. Pin 6 looking at the top end of the TFT connector 6pin chip to right pin 6 is on left/top pin of 3 pins closest to Processor. I was able to put a test meter on pin and press reset as was not getting a change until re-soldered.
My 1st post on forum, think I have entered it correctly Tony VK3ZTR