Step 6: Debug Your Application
Congratulations! You are ready to debug your second application.
Before you program and run your application, you need to program the micro SD card with the audio text file.
Go to the dev_files folder of this lab
(apps/training/middleware/audio_player/audio_player_lab2/dev_files) and copy the tone.txt file into the micro SD card.
Before you start the debugger, set a breakpoint in the application file in app_tone_textfile_sdcard.c. Through this breakpoint, you can observe that the APP_TONE_TEXTFILE_SDCARD_Tasks() is successfully able to open the CODEC driver.
Put a breakpoint in the APP_TONE_TEXTFILE_SDCARD_STATE_CARD_MOUNT state. Through this breakpoint, you can observe that the file system was successfully mounted on the SD card.
Put a breakpoint in the buffer event handler. Hitting this breakpoint in the event handler indicates that the last submitted buffer is transferred to the CODEC.