Hi!
My software setup consists of SDK 15.0.0 and SD 6.0.0.
I am using nRF52DK for flashing and debugging my custom PCB board on nRF52832.
I am developing an application with buttonless DFU service so there also must be bootloader on the bottom. I added some preprocessor defines to allow or dissalow presence of DFU.
So when my defines are "0" the application behaves normally (without DFU), I can easily flash or debug in Segger Embedded Studio.
When my defines are "1" the application must be flashed other way:
SET family= NRF52 SET application= C:\repo\pikflometr\multiperipheral\pca10040\s132\ses\Output\Debug\Exe\ble_app_multiperipheral_pca10040_s132.hex SET application-version= 1 SET soft_device= C:\repo\pikflometr\lib\s132_nrf52_6.0.0_softdevice.hex SET bootloader= C:\repo\pikflometr\secure_bootloader\pca10040_ble\ses\Output\Release\Exe\secure_bootloader_ble_s132_pca10040.hex SET bootloader-version= 1 SET bl-settings-version= 1 SET settings= settings_1.hex SET dfu_client= dfu_client_1.hex SET nrfutil_location= C:\repo\pikflometr\lib cd %nrfutil_location% nrfjprog.exe --family %family% --program %soft_device% --chiperase --verify nrfutil settings generate --family %family% --application %application% --application-version %application-version% --bootloader-version %bootloader-version% --bl-settings-version %bl-settings-version% %settings% mergehex -m %application% %settings% -o %dfu_client% nrfjprog.exe --family %family% --program %dfu_client% --verify nrfjprog.exe --reset --family %family% --program %bootloader% --verify
then F5 to run debug but nothing happens! I can see no logs in debug terminal in SES nor a debug cursor waiting for any function call.
Meanwhile using nRF52DK with the same procedure debugging with DFU enabled is possible, the cursor waits just before main() for action. My first guess is I don't use JTAG properly. Devboard has got on-board JTAG, but my custom PCB is connected like this:
It works until I want to add DFU service.
Is this a proper way of using devkit to program external boards?
Or should I Debug Out connector? If yes, then how?
I tried :
SWDIO-> SWDIO,
SWDCLK-> SWDCLK,
VTG-> Vcc,
GND+GNDdetect-> GND
while 3,8V battery powered but no success.
Are there any additional "DEBUGxxxx" defines/settings in secure_bootloader project that could matter when debugging external board?