adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.04k stars 1.2k forks source link

Issue running on the makerdairy nrf52840-mdk #1966

Closed JJJollyjim closed 5 years ago

JJJollyjim commented 5 years ago

When I flash the latest build (either my own build of master, or your provided one on an erased nrf52840-mdk (non-dongle version), the chip produces no serial output. This happens whether I flash with the makefile (via pyOCD), DAPLINK, or gdb.

Debugging in gdb, the code seems to begin in cpu_get_regs_and_sp, which it runs through, until the bx instruction jumps it to the address 0xfffffffc (the offset for the relative jump is -40), and it hangs forever.

I suspect the code isn't supposed to start in that function... is there maybe a linker script bug or something that's causing that?

JJJollyjim commented 5 years ago

(My only deviation from the https://learn.adafruit.com/circuitpython-on-the-nrf52/ guide was that I didn't run the ./bluetooth/download_ble_stack.sh script, since it appears not to exist...)

jerryneedell commented 5 years ago

If I recall correctly - the bluetooth stack no longer needs to be downloaded separately. FWIW - I have been able to build/ load CP for the makerdary nrf52840 usb dongle, but one difference is tat I installed the UF2 Bootloader to stand use that to load CP.

JJJollyjim commented 5 years ago

Hmm it looks like the UF2 bootloader isn't supported on the non-dongle (since it comes with its own programming hardware)

JJJollyjim commented 5 years ago

Heck, I didn't have a softdevice flashed. Nevermind! :)

uyoyo117 commented 4 years ago

Heck, I didn't have a softdevice flashed. Nevermind! :)

care to elaborate ? i am having the same issue