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

UART issuses on nRF Connect SDK 1.5.1

Hello Nordic Team,
I am having issues with the peripheral_uart firmware for the nRF52833.
1.I can use UART_init() or nrf_drv_uart_uninit() in nRF52-SDK to enable or disable UART. How can I do that in NCS?
2.I changed the baud rate to 921600bps. An error occurred that caused the system to reset. I found that it is caused by k_free (buf) in ble_write_thread (). How can I solve it?
3.Can I use firmware to configure an external or internal 32.768k crystal oscillator?
Thanks,
Stanley
Parents Reply
  • Hi,

     

    Stanley said:
    2.I set CONFIG_BT_NUS_THREAD_STACK_SIZE to 4096, but the problem still exists.

    Could you use arm-none-eabi-addr2line to resolv the addresses to actual functions in the faulting output?

    arm-none-eabi-addr2line -e build/zephyr/zephyr.elf 0xFAULTING_ADDR

    In your initial screenshot, it would be 0x1410, 0x270f0, 0x16549.

     

    You could also check the .map file and see which thread is running at 0x20001e48.

     

    Note that addresses change for each time you change your program.

     

    Stanley said:
    3.I want to save the setting value in flash memory and load it at startup to decide whether to use the internal or external crystal oscillator. What should I do?

    Unfortunately, this configuration isnt dynamic. It must be set in kconfig.

     

    Kind regards,

    Håkon

Children
No Data
Related