Hi,
I am using nRF51822-CEAA with S110 SoftDevice on a custom board which is commercially deployed now. I am using IAR 7.80.2 and Segger JLink Ultra+. I found there are a few queries about the Direct Test Mode. However, I found none is close to my goal which to create nRF51822 firmware to satisfy BLUETOOTH CORE SPECIFICATION Version 4.0 Vol 6, Part F. I am planning to test with Anritsu MT8852 or BlueTest3 test app. May be I didn't search the information in the right place.
Since I would like to stay with S110, I downloaded nRF51SDK1000dc26b5e. In this package there are 2 DTM examples: direct_test_mode and dtm_serialization. With minor updates from dtm_serialization IAR project file, I was able to load to my nRF51822, stop at main and step through the code. However, this example is for demo boards with buttons to init DTM, etc. So this example is not good for me even though the IAR project shows all the appropriate files that I am looking for.
In direct_test_mode, main.c is more promising with UART init and polling bytes from UART. From IAR, it seems that I was able to load to nRF51822 but IAR was not stop at main even that I have IAR Debugger Run to main option is checked.
My questions are:
1. Would direct_test_mode from nRF51SDK1000dc26b5e is the closest to a framework that I can use?
2. Should I assume that S110 SoftDevice is already programmed to my board? I found "nRF51 SDK - S110 SoftDevice: Direct Test Mode" but there no information about the setup to run the DTM examples.
Please comment. Thanks,
Dennis