An error is reported when using uart to output debugging information

Hi,nordic.

I've been wanting to make some modifications to the existing bluetooth mesh model and output data to the serial port. I have tried to use app_uart_put() to output characters while turning on rtt , but there is always no output, and I understand that this output is inefficient, so I plan to replace rtt directly, use uart to output debugging information and put it in Change based on that. I found a case in the forum, but it will report the following error, how should I solve it? I use light_switch as a test case here, the working environment is ses, the version is mesh5.0.0 and sdk1710.

  • hi,Joakim Jakobsen

    I have recently tested several codes related to serial ports, and it seems that the root of the problem is that the positioning of printf in ses is uncertain. When I use the case to run printf, I must select io as rtt in the project library, so that the code will not have any errors, but at this time, the content printed by printf is only displayed in rtt, which has nothing to do with the serial port. A friend from nordic before suggested me to use app_uart_put, even if I solve all the errors, I can't get any information from the serial port, I think it's strange, and such output may not meet my output needs. If the serial port cannot be used, is it possible to use rtt instead of the serial port for interaction, such as sending rtt information to another microcontroller?

    best regards

    Peter Beckham

  • 因此,您的项目是基于我发给您的链接中 Hung 同事制作的示例

    Yes, that's what I used for that case

    您是否考虑到该示例是为 Mesh v.4.0.0 的 nRF5 SDK 编写的?您是否对示例进行了任何更改?

    In fact, this case doesn't work well for me, so I put the relevant content in the switch code of 5.0, you can take a look at the code I changed

    best regards

    Peter Beckham

  • Thank you. 

    I would suggest taking a look at the release notes and migration documents for the SDK in order to solve any compatibility issues. You can find these in the online documentation. 

    Br, 
    Joakim

Related