Just wanted to say thanks for your effort to remove the GPL code! Much appreciated.
MicroPython on ESP32 with SPIRAM support
Re: MicroPython on ESP32 with SPIRAM support
Bluetooth is not supported in micropyton, or ESP32 WROVER in general?
Could you elaborate the difficulty of enabling bluetooth LE, simple GATT or bidirectional string messaging / kind of UART over BT in micropython?
Re: MicroPython on ESP32 with SPIRAM support
Bluetooth LE is not fully implemented in MicroPython mostly because I didn't had a time to do it yet.
Bleutooth Classic (UART over BT) will be implemented first, probably before the end of the month.
One of the problems is that BT needs a lot of memory (RAM) to work, it is not easy to implement it to work on boards without SPIRAM and still have big enough MicroPython heap.
Re: MicroPython on ESP32 with SPIRAM support
I have two ESP32 board: M5Stack with 4M PSRAM and ESP-WROOM-32. Both boards can flash the standard firmware successfully from http://micropython.org/download and work well. But both boards fail to flash the firmware with SPIRAM support. ESPFlashDownloadTool and esptool.py were used but neither of them worked. Is there some difference to flash these two version of firmware? Please give me some advice. Thank you.
Re: MicroPython on ESP32 with SPIRAM support
If you are building your firmware, you should use ./BUILD flash command to flash the firmware, it works on all platforms.zhao wrote: ↑Mon Mar 19, 2018 2:30 pmI have two ESP32 board: M5Stack with 4M PSRAM and ESP-WROOM-32. Both boards can flash the standard firmware successfully from http://micropython.org/download and work well. But both boards fail to flash the firmware with SPIRAM support. ESPFlashDownloadTool and esptool.py were used but neither of them worked. Is there some difference to flash these two version of firmware? Please give me some advice. Thank you.
If you want to flash the the prebuilt firmware, there is a file flash.sh for every firmware available. It uses esptool.py to flash the firmware, you just have to change the com port used for flashing.
The default port is /dev/ttyUSB0 (for Linux), on Windows you can change it to COMxx.
You can also change the baudrate, if needed.
You can execute (in the directory where bootloader/bootloader.bin, MicroPython.bin and partitions_mpy.bin are):
Code: Select all
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after no_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin 0xf000 phy_init_data.bin 0x10000 MicroPython.bin 0x8000 partitions_mpy.bin
Re: MicroPython on ESP32 with SPIRAM support
Thank you so much! I have flashed the firmware successfully with esptool.py. I just flashed the micropython.bin without bootloader.bin and partitions_mpy.bin. That's why I failed everytime in the past. For the firmware without SPIRAM support from http://micropython.org/download, it's enough to to flash the micropython.bin.
Thank you once again. I have been troubled by this problem for a long time.
Thank you once again. I have been troubled by this problem for a long time.
Re: MicroPython on ESP32 with SPIRAM support
If the bootloader.bin and/or partitions_mpy.bin are not changed, than it is enough to flash the micropython.bin.
For any further issues or questions you can also use the dedicated forum.
- Crypto
- Posts: 2
- Joined: Tue Mar 20, 2018 11:38 am
- Location: https://bitmann.org
Re: MicroPython on ESP32 with SPIRAM support
Useful.
very appreciate for this information
very appreciate for this information
Re: MicroPython on ESP32 with SPIRAM support
@loboris, can you confirm that your micropython version works properly with pycom W01 oem module?
Did you try also the to use the extended RAM, external antenna, usb uploading using 'ampy' and the uasyncio library?
Regards
RM
Did you try also the to use the extended RAM, external antenna, usb uploading using 'ampy' and the uasyncio library?
Regards
RM
Re: MicroPython on ESP32 with SPIRAM support
hello!
flashed latest firmware MicroPython_LoBo_esp32_all.zip, i seen all modules included in description, but:
>>> import dht
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'dht'
smth i missed?
thanx
ps. do we have any chats?
flashed latest firmware MicroPython_LoBo_esp32_all.zip, i seen all modules included in description, but:
>>> import dht
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'dht'
smth i missed?
thanx
ps. do we have any chats?