Hi all,
I took the example SPI program and I am trying to add UART code to it to debug the SPI transfers. Both examples are working well for me separately. I was able to combine both sets of code (main.c looks good and sdk_config.h looks good) and add all the Libraries and drivers. It is able to compile and run.
In the process of integrating the two examples, I was manually adding the UART code to the SPI code. With everything combined, I run the normal SPI code and it blinks the LED every 200ms (as it should). Verified everything is generally working.
Next, I add a printf statement like the UART code to verify that any old printf will work. This command seems to block all code after it. When I drill in with the debugger, it seems like no errors are being thrown.
Two questions:
- why wont printf statements work?
- is there a smarter way to print out debug information in the framework of the SPI code? I read about RTT.