I have downloaded LpcExpresso and the NHS3100 SDK, followed the quickstart to flash the 'blinky' program to the nhs3100, and now I'm stuck trying to read the console output of the app_example_dp_ndeft2t (the example that sends/receives NFC messages).
It's been years since I've done any c++ so forgive me if this is supposed to be trivial :smileysilly:
Anyway, I can debug the application, stop on breakpoints and inspect their values, but the program has many calls to Trace_Printf that would be rather convenient if they showed up in my LpcExpresso. I'm thinking the answer lies somewhere with "Semihosting" or "SWO Trace Config" both of which are new concepts to me, and both of which I have tried to follow instructions to get up and running with in LpcExpresso and the example applications.
Can anyone give me a push in the right direction?
I changed every call from Trace_Printf to printf and now I have console output for the sample application while debugging.
Hi Sirs,
How do you solve it?
Could you be kindly to share how I should setup the config to printf for "console output"?
Many thanks,
Arna
Replace statements like this:
Trace_Printf("Received TEXT Record (len = %d, restricted to 32): %.*s\n\r", payloadLength, 32, pPayloadStart);
With statements like this:
Hi Jacob,
Thanks for your reply.
Actually I did do that just like what you said.
For example, I tried the project "app_demo_dp_blinky" and added below statement in blue in the mainblinky.c file main function:
------
Suggest you read this FAQ:
Thank you, Fall Guy.
I got the answer.