This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART and SDK 10

I have migrated a new project from SDK 9 to 10, and now I seem to be having issues.

I'm using the uart_fifo to read data from a GPS, so the data shows up every 1 Second.

I believe everything is going okay, until I put a breakpoint in and stop the code, I then get an overrun error, which I believe I've handled in my uart_callback function. by clearing the interrupt and event_error which the SDK should be doing already. The error seems to persist, and I cannot get any new data out of the hardware fifo.

In version 9 of the SDK there wasn't an issue with the error interrupt, the code would continue to run as if no problem occurred. Is this an issue with v9 or v10, which is now causing me problems.

and what do I need to do to ignore the over run error.

Parents
  • This may be a bug in the SDK similar to this. Try to change app_uart_fifo.c with this file: app_uart_fifo_mod.c (only added (void)nrf_drv_uart_rx(rx_buffer, 1); at line 65).

  • A good way to know if the nrf_drv_config.h file is the one you think you are using is, if you make a change to the file, even just save it, and do a compile (not a full make) only the files that have been modified will compile, and since the nrf_drv_config.h file is included in a lot of .c files, quite a number will recompile. if none do. then you know the one included is not the one you think it is.

    I hope this helps.

Reply
  • A good way to know if the nrf_drv_config.h file is the one you think you are using is, if you make a change to the file, even just save it, and do a compile (not a full make) only the files that have been modified will compile, and since the nrf_drv_config.h file is included in a lot of .c files, quite a number will recompile. if none do. then you know the one included is not the one you think it is.

    I hope this helps.

Children
No Data
Related