Closed dhalbert closed 3 years ago
This is weird because this is where the memory is being initialized: https://github.com/adafruit/circuitpython/blob/main/ports/raspberrypi/supervisor/port.c#L97
I ran some tests and found the if the -Og in the Makefile under the "ifeq ($(DEBUG), 1)" with -O3 resulted in a successful (and debugable) build. @tannewt ; since a normal build also uses -O3 would this be an acceptable change to PR?
@DavePutz Yup, fine with me.
Closing... fixed in #5210.
Version: fails with 7.0.0 main at this time and earlier
RP2040 board builds built with
DEBUG=1
don't work: they crash. The crash can be seen withgdb
:If I set a breakpoint at
main()
, it does get pastmain()
, and then soon hits thedecl_isr_bkpt isr_hardfault
.MicroPython built as
CMAKE_ARGS = -DMICROPY_BOARD=$(BOARD) -DCMAKE_BUILD_TYPE=Debug
does not have this problem.(I originally thought this was some kind of problem with the Segger J-Link and gdb, but that's because I never tried this with a non-debug build. In fact gdb works fine with a non-debug build, but it's not so useful.)