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

nRF5 temperature example uart problem

I cannot get the output from the is the example the UART buffer gets filled but there is no output to the tty.

The interrupts seem to be set, but I don't see the interrupt routine so there is no way that I can debug this

Any help would be appreciated

Thank you

Parents
  • Well first of all nRF51 is only supported by nRF5 SDK up to v12.3.0 so how exactly you compile for this target from V14.0.0 examples? Not saying it is impossible but it means to add quite a lot of older H and C files and probably little bit more patching if you use any SDK module/library. To the breakpoints: there are all the guidelines how to debug nRF51 with Keil. However this will hardly help you, I think you don't even start the thing properly. Are you using radio stack (SoftDevice) or you run FW on "bare metal"? Have you ever run ANY firmware on this board? Normally people start slowly from the basics: just compile minimal FW which in the main function do infinite loop of some GPIO low/high toggling with reasonable frequency (like once per second or similar) so you can either capture it by LED or just oscilloscope/logical analyzer. Once this works you can go to UART examples.

Reply
  • Well first of all nRF51 is only supported by nRF5 SDK up to v12.3.0 so how exactly you compile for this target from V14.0.0 examples? Not saying it is impossible but it means to add quite a lot of older H and C files and probably little bit more patching if you use any SDK module/library. To the breakpoints: there are all the guidelines how to debug nRF51 with Keil. However this will hardly help you, I think you don't even start the thing properly. Are you using radio stack (SoftDevice) or you run FW on "bare metal"? Have you ever run ANY firmware on this board? Normally people start slowly from the basics: just compile minimal FW which in the main function do infinite loop of some GPIO low/high toggling with reasonable frequency (like once per second or similar) so you can either capture it by LED or just oscilloscope/logical analyzer. Once this works you can go to UART examples.

Children
No Data
Related