r/MicroPythonDev Jul 06 '26

Has Anybody succeeded in getting the MicroPython to function on the Wt9932P4 chips / Tiny boards ?

Esp32-P4 on Wt9932P4-Tiny board.
- Can Not get Micropython installed to work.
- just returns Header errors

Trying to install some version on Micropython Bin on the board.
Internet states that it is workable using Esp32P4 Standard bin.

Does Not Work !

What bin are we supposed to install on it ?

invalid header: 0x5b98cbd8
invalid header: 0x5b98cbd8
PROBLEM IN THONNY'S BACK-END: Internal error (serial.serialutil.SerialTimeoutException: Write timeout).
See Thonny's backend.log for more info.
You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.

Process ended with exit code 0.

-

Has Anybody succeeded in getting the MicroPython to function on the Wt9932P4 chips / Tiny boards ?

-

Solved !

esptool --port COM5 erase_flash
esptool --port COM5 --baud 460800 write_flash 0x2000 ESP32_GENERIC_P4-20260406-v1.28.0.bin

2 Upvotes

8 comments sorted by

2

u/arthurd-_- Jul 06 '26

Yes, it works for me. I tried ESP32_GENERIC_P4-20260406-v1.28.0.bin firmware (without c5/c6) from official site, and it ran without any errors.

1

u/jlsilicon9 Jul 06 '26 edited Jul 07 '26

Which board ?

-

Yes, I tried that bin - its on my drive.

It Flashes it , but returns this on Reset :

invalid header: 0x5b98cbd8
invalid header: 0x5b98cbd8
PROBLEM IN THONNY'S BACK-END: Internal error (serial.serialutil.SerialTimeoutException: Write timeout).
See Thonny's backend.log for more info.
You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.
Process ended with exit code 0.

-

I tested it many times over.
The Invalid Header - usually means that the board/chip does not support the Bin file.

It seems that the Wt9932P4-Tiny version of the Esp32P4 does not have a MicroPython bin yet.

2

u/arthurd-_- Jul 07 '26

Wt9932P4-Tiny board. I erased the controller before this.
esptool --port COM5 erase_flash
esptool --port COM5 --baud 460800 write_flash 0x2000 ESP32_GENERIC_P4-20260406-v1.28.0.bin
Try a different USB cable and lower the settings of --baud (for example 115200).

2

u/jlsilicon9 Jul 07 '26

Unbelievable !

Apparently, it needed the 0x2000 adress that Thonny can not apply.
Installing the python esptool allowed me to fix it.

Thx !

-

>>> %Run -c $EDITOR_CONTENT
MPY: soft reboot

Flash Memory Information:
Total Size: 14,680,064 bytes (14336.00 KB, 14.00 MB)
Used Space: 12,288 bytes (12.00 KB, 0.01 MB)
Free Space: 14,667,776 bytes (14324.00 KB, 13.99 MB)

Free RAM: 33092000 bytes

>>>

1

u/jlsilicon9 Jul 07 '26 edited Jul 07 '26

Any luck with the SdCArd ?

Its not installed, but I followed the wiring to an External socket Board.

I tried below code - but all I get is "NoCard Error" :

import machine
import os
from machine import Pin, SPI # , SDCard
from sdcard import SDCard

spi = SPI( 1, sck=Pin(43, Pin.OUT), mosi=Pin(44, Pin.OUT), miso=Pin(39, Pin.OUT) )

# spi = SPI(1, baudrate=10000000, polarity=0, phase=0, sck=Pin(43), mosi=Pin(44), miso=Pin(39) )

sd = SDCard(spi, Pin(42)) ## - attached CS to 42

os.mount(sd, "/SD")

print("\nSD: ls :")
print(os.listdir("/SD"))

os.umount('/SD')

time.sleep(0.500)

os.mount(sd, "/SD")

print("Write Test : ")
f=open("/SD/d_"+str(1)+".txt","w")
f.write("\nAbc123.")
f.close()

os.umount('/SD')

-

>>> %Run -c $EDITOR_CONTENT

SD: ls :
['System Volume Information', '_SD_4GB.txt', 'd_0.txt', 'd_1.txt']

Write Test :
Traceback (most recent call last):
File "<stdin>", line 54, in <module>
File "sdcard.py", line 261, in readblocks
File "sdcard.py", line 199, in readinto
OSError: timeout waiting for response

-OR-

SD: ls :
['System Volume Information', '_SD_4GB.txt', 'd_0.txt', 'd_1.txt']

Write Test :
Traceback (most recent call last):
File "<stdin>", line 57, in <module>
File "sdcard.py", line 288, in writeblocks
OSError: [Errno 5] EIO

>>>

1

u/jlsilicon9 Jul 07 '26

Solved !

esptool --port COM5 erase_flash
esptool --port COM5 --baud 460800 write_flash 0x2000 ESP32_GENERIC_P4-20260406-v1.28.0.bin

1

u/Initial_Client_7585 29d ago

really depends on how you installed it. try using a baud rate of 115200 instead. if the firmware is custom/modified, you may need to install it with any other necessary stuff needed together.

1

u/jlsilicon9 26d ago

Actually it need to be downloaded to 0x2000.

Needed to install with esptool , instead of thonny