There are errors in compilation, because I am not familiar with GCC, how can I modify it to compile correctly?
Hi Bin, I hope you're doing well!
I checked your attached code and found that the line causing the issue is the PRINTF. Errors like these can happen if the UART Debug Console is not used within Wireless SDK Examples.
Due to the implementation of the Wireless Stacks, the examples should be imported with the SDK Debug Console set to UART instead of Semihost.
After a project is imported, the Debug Console can be changed by modifying the following setting:
Please let me know if you have any further issues.
Thank you for your reply!
There is another question!
If I want the information to be printed out from mcuxpress and not from serial port, what should I do? As shown in the picture below, print out the information"Hello world"!
Projects implementing the different NXP Connectivity Stacks should only use the UART Debug Console, as the Semihost console may cause issues with the timing requirements for the Wireless Communications Protocols.
Still, there is a way to view the UART Terminal Output on MCUXpresso. This can be done by choosing the "Terminal" option here:
And then choosing the following option from the list:
Please let me know if you need any more information.
Take care, best regards,
With printf ("Hello world \ n"), if I want information to be output from console, how can I modify the program?
Hi Bin Wang,
I'm sorry for the inconveniences this may cause, but Wireless Connectivity SDK examples should use the UART peripheral as the debug console, due to timing requirements of the different Wireless Communications Protocols implemented by these.
The "Hello World" message can be printed to a UART Terminal, instead of the Semihost terminal.
I know your meaning.But I want to know the way how to print the message to the Semihost terminal!
The Semihost terminal is not supported by the KW36Z's BLE Stack, i'm sorry for the inconveniences this may cause.
Retrieving data ...