You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
I've searched for existing issues matching this bug, and didn't find any.
Port, board and/or hardware
esp32
MicroPython version
MicroPython v1.22.2 on 2024-02-22; Generic ESP32 module with ESP32
Reproduction
I have a medium-complex native module that performs lossless data compression/decompression.
My code as a native modules has been tested to work on x64 and armv6m. I'm currently testing on esp32 and my code is not longer working; I have narrowed it down to the following:
I have a few static constvariables defined here. If I remove the static, the code works fine. However, I tried adding static to examples/natmod/features1, and that code works fine with a static. So I have no idea what's going on here.
I found this out because write_to_bit_buffer was being invoked with n_bits=32 at one point, and I traced this down to huffman_bits[0] == 32, but obviously the value should be the constant 0x2.
Expected behaviour
If my library is operating correctly, it should have the following behavior:
Checks
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
I've searched for existing issues matching this bug, and didn't find any.
Port, board and/or hardware
esp32
MicroPython version
MicroPython v1.22.2 on 2024-02-22; Generic ESP32 module with ESP32
Reproduction
I have a medium-complex native module that performs lossless data compression/decompression.
My code as a native modules has been tested to work on
x64
andarmv6m
. I'm currently testing on esp32 and my code is not longer working; I have narrowed it down to the following:I have a few
static const
variables defined here. If I remove thestatic
, the code works fine. However, I tried addingstatic
toexamples/natmod/features1
, and that code works fine with astatic
. So I have no idea what's going on here.I found this out because
write_to_bit_buffer
was being invoked withn_bits=32
at one point, and I traced this down tohuffman_bits[0] == 32
, but obviously the value should be the constant0x2
.Expected behaviour
If my library is operating correctly, it should have the following behavior:
Observed behaviour
Accessing the RO data results in incorrect values.
Additional Information
No, I've provided everything above.
The text was updated successfully, but these errors were encountered: