Search found 42 matches

by RobH
Mon Jan 25, 2021 10:36 am
Forum: ESP32 boards
Topic: difference between hardware and software SPI
Replies: 0
Views: 34

difference between hardware and software SPI

I'm trying to access an SPI slave from an ESP32 board with SPIRAM (TTGO-T8 V1.7) with recent firmware (v1.13-283) With software SPI a print(bus) shows: SoftSPI(baudrate=500000, polarity=0, phase=1, sck=18, mosi=23, miso=19) With hardware a print(bus) shows: SPI(id=2, baudrate=500000, polarity=0, pha...
by RobH
Wed Jan 13, 2021 9:13 am
Forum: ESP32 boards
Topic: machine.SDCard(slot=3) defaults
Replies: 6
Views: 976

Re: machine.SDCard(slot=3) defaults

@jimmo Well, this pins seems to match the quick ref and the datasheet Table 1 of the ESP32. I'm surprised/confused/would-like-to-understand why machine.SDCard(slot=3) uses different default pins for mosi and miso than machine.SPI(id=1). I expected that these would use the same SPI hardware (HSPI). I...
by RobH
Tue Jan 12, 2021 3:06 pm
Forum: ESP32 boards
Topic: machine.SDCard(slot=3) defaults
Replies: 6
Views: 976

Re: machine.SDCard(slot=3) defaults

@jimmo: May I conclude that the default pins for the Hardware SPI bus, esp. for HSPI (id=1) as documented in the Quick Reference for ESP32 are incorrect too?
by RobH
Mon Jan 11, 2021 10:56 am
Forum: ESP32 boards
Topic: machine.SDCard(slot=3) defaults
Replies: 6
Views: 976

Re: machine.SDCard(slot=3) defaults

@Jimmo,
Confirmed! Just received a new ESP module with onboard micro SD card connector (TTGO-T8 V1.7). Its pinout picture shows the same numbers for its SPI interface as you mention above. And indeed I can access the SD card by just specifying:

Code: Select all

machine.SDCard(slot=3)
Thanks
by RobH
Sun Jan 03, 2021 8:07 pm
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 66
Views: 15931

Re: WeAct STM32F411CEU6 black pill

@stumin: Thanks for the suggestion to add the #define for the SPI cache: I now have a working firmware V1.13-268! One remark: the make works fine under Linux Mint 20.0, but produces error messages (different than the ones related to cache) under Linux Mint 20.1-beta. Presumably an issue of the beta....
by RobH
Sat Dec 19, 2020 1:33 pm
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 66
Views: 15931

Re: WeAct STM32F411CEU6 black pill

When I try to build the firmware version of today I get the messages as shown below. How do I solve this? boards/WEACT_F411CEU6/bdev.c:16:8: error: unknown type name 'mp_spiflash_cache_t' 16 | STATIC mp_spiflash_cache_t spi_bdev_cache; | ^~~~~~~~~~~~~~~~~~~ boards/WEACT_F411CEU6/bdev.c:23:6: error: ...
by RobH
Thu Dec 17, 2020 9:53 am
Forum: ESP32 boards
Topic: machine.SDCard(slot=3) defaults
Replies: 6
Views: 976

machine.SDCard(slot=3) defaults

I'm trying to access an SD card to an ESP32 (nodemcu, currently with firmware 1.13-254) with the following code: import machine sd = machine.SDCard(slot=2) print(sd.info()) This works fine, no need to specify pins when using the defaults. However to get this working for slot=3 I need to specify mosi...
by RobH
Sun Dec 13, 2020 9:06 am
Forum: ESP8266 boards
Topic: microSD card reading
Replies: 21
Views: 15301

Re: microSD card reading

The machine.SDCard class of the ESP32 port (v1.13) works fine, also with 2GB cards.
by RobH
Wed Dec 09, 2020 1:46 pm
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 66
Views: 15931

Re: WeAct STM32F411CEU6 black pill

The pin name should be specified as string, like:

pin = machine.Pin("C13", machine.Pin.OUT)
by RobH
Wed Dec 09, 2020 10:43 am
Forum: MicroPython pyboard
Topic: machine.SDCard missing?
Replies: 4
Views: 312

Re: machine.SDCard missing?

OK! It seems that I'll have to accept the limited implementation of the machine.SDCard class for PyBoard compared to that of the ESP32 port. Hopefully this is temporary.