UART_INIT causing no RTT LOG output

Custom board using BL654 (NRF52840)

SDK 17.1.0

SD140 7.2.0

I was able to run the ble_app_uart totally successfully (with RTT LOG output) until I tried to add uart capability. Now I get no output at all on RTT viewer (before I did), and when on the debugger, it crashes before the first function call in main saying unknown function at 0x00000A60. The uart is connected to a peripheral and is only supposed to fetch data for processing, not redirected to bluetooth or anything.

  • Hi there,

    Can you build the project in debug mode, re-flash your board and share the entire error message? If you're using SES:

    Also, please specify what modifications you added to the example?

    regards
    Jared 

  • Neither debug nor release get me any RTT output on the JLink RTT viewer now. In SES's debugger, the issue only comes up in Release, not Debug build. THe only message at all that I get is "Unknown function at 0x00000A60" which occurs right after I hit resume after the debugger pauses at main

    As for modifications, Ive redone the entire UART section to NOT pass through to bluetooth, I've changed the NRF_LOG to be RTT output (if that wasn't the default), and I'm using a custom board. I can attach some files like the sdk_config and main if you'd like.

  • I did also change the priority of the app_uart to _PRIO_SD_LOW just to see if that helped anything but it didn't as far as a I know. The incoming uart data isn't constant, only every minute or so.

  • Hi there,

    JGusler said:
    THe only message at all that I get is "Unknown function at 0x00000A60" which occurs right after I hit resume after the debugger pauses at main

    You can't resume a Softdevice application after halting the program. You need to restart the program after each time it hits a breakpoint or the core is halted. The Softdevice will hardfault due to internal timing if the program is resumed after it has been halted. See this thread for more.

    regards

    Jared 

  • Okay that is good to know. However I'm still seeing absolutely nothing now on J-Link RTT  Viewer when doing either debug or release build with maximum debug output. And this only happens as soon as I allow uart_init() to run (which is the first function call inside main)

Related