![]()
One more thing that is extensively used in the SDK, and something that goes hand in hand with the Logger Module, is the Error Module. #SEGGER EMBEDDED STUDIO DEBUG FAILED TO DOWNLOAD SERIAL#When you recompile the project you should see this in your serial terminal: We can change this by finding NRF_LOG_DEFAULT_LEVEL in sdk_config.h and set it to 4 (Debug). With this severity level only warnings, errors, and info messages are printed. Note how there seems to be a missing message! Why is there no message saying "This is a DEBUG message."? It is missing because the default severity level is set to "info" in sdk_config.h. Now you should see this output on your terminal: NRF_LOG_WARNING( "This is a WARNING message. TODO PART 1: Test out NRF_LOG module NRF_LOG_ERROR( "This is an ERROR message. You can do this by modifying the DEVICE_NAME define in main.c: You might want to make the advertising name more unique to help recognize your device. Your device should show up in the device list: Open up nRF Connect for Mobile and start scanning. This indicates that the application is running, and that the device is advertising. You should now see that LED1 on the nRF52840 DK is blinking periodically. #SEGGER EMBEDDED STUDIO DEBUG FAILED TO DOWNLOAD CODE#This will program both the SoftDevice and the application code to your nRF52840 DK. Click 'Target->Download " name of project"'. When the build finishes, notice how SES shows you how much Flash and RAM is being used by your application (the output window says we are using 192 KB of flash, but note that this includes the S140 SoftDevice which is 152 kB alone). To build your project, click 'Build->Build " name of project"' (or click F7 on windows).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |