This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf_serial UART on nRF52840 sdk 15

I would like to use both UARTs.

I'm trying to run the given example with SDK patch from https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14/99170#99170

What happens is that roughly a few hundred ms after it prints "Hello nrf_serial!" it somehow goes into the default IRQ handler at modules/nrfx/mdk/gcc_startup_nrf52840.S:358 which is just an infinite loop.

Before it goes there, it will read successfully.

I've commented out everything for uart 1, just to simplify the example.

I can't figured out how it gets to the default IRQ handler.

my main.c: http://ix.io/1dsX

I'm using the NRF52840 preview development kit and nRF5_SDK_15.0.0_a53641a

The makefile and linker I'm using are from examples/peripheral/uart/ and I'm using gcc-arm-none-eabi-7-2017-q4-major, (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]

Makefile has a few additions in order to have the necessary dependancies, but that should all be fine.

Diff: http://ix.io/1dsH

Parents Reply Children
No Data
Related