← index #15682Issue #17663
Off-topic · high · value 0.515
QUERY · ISSUE

ESP32-S3: machine.bitstream() can't send 6 bytes

openby ned-pcsopened 2024-08-19updated 2025-09-15
bugport-esp32

Port, board and/or hardware

ESP32-S3, octal SPIRAM on ESP32-S3-WROOM-1-N8R16 module

MicroPython version

MicroPython v1.23.0 on 2024-08-19; Generic ESP32S3 module with Octal-SPIRAM with ESP32S3
built using ESP-IDF v5.2.2

Reproduction

When I execute the following code and watch GPIO12 on an oscilloscope, I see 96 pulses instead of the expected 48:

from machine import Pin, bitstream
buf = bytearray(6)
bitstream(Pin(12, Pin.OUT), 0, (240, 480, 480, 240), buf)

I have tested with a buffer of between 1 and 19 bytes, and I only get the wrong number of pulses for 6 byte buffers.

Expected behaviour

I expect to get 48 pulses on my pin.

Observed behaviour

I see 96 pulses on the pin.

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

ESP32S3N16R8:Missing flash ORIGINALLY 16M , ACTUALLY 8M

closedby AZhi-hubopened 2025-07-11updated 2025-07-13
bug

Port, board and/or hardware

esp32s3N16R8 port

MicroPython version

MicroPython v1.25.0 on 2025-04-15; Generic ESP32S3 module with Octal-SPIRAM with ESP32S3

<img width="1075" height="667" alt="Image" src="https://github.com/user-attachments/assets/3ee7bfa2-4046-4e5e-abd8-e6382d9e62a7" />

Reproduction

In according to official guidance , open powershell echo:
esptool --baud 460800 write_flash 0 .\ESP32_GENERIC_S3-SPIRAM_OCT-20250415-v1.25.0.bin
click RST button,and open thonny,execute

import esp
import gc
print(esp.flash_size())
print(esp.flash_user_start())
print(gc.mem_free())

you will find a problem like result below.

  • First line is flash size ,equals 8M,corresponds to rom
  • Second Line is user partition start,I know,ESP32_GENERIC_S3-SPIRAM_OCT-20250415-v1.25.0.bin is 1.5M , from 2M maybe reasonable.
  • Third Line is mem_free, corresponds to ram .
8388608
2097152
8320080

Actually my board is N16R8, means 16M psrom and 8M psram. after using Micropython bin, I got 8M rom , and 8M ram ,where is 8M left from flash?
I chose OCT version bin due to 8M psram, but normal and OCT version both miss flash size. I don't know why and how i need to do or it's something being limited.
And thonny is also 6m,maybe 8M-2M?

<img width="1427" height="700" alt="Image" src="https://github.com/user-attachments/assets/0b63906e-d976-478f-82e7-b166ddc521f8" />

Expected behaviour

get missed 8m flash size for using

Observed behaviour

like above.

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied