Commit f0495a23 authored by Sandeep Mistry's avatar Sandeep Mistry

Hook up "Burn Bootloader" to flash SoftDevice

parent f476e0ce
...@@ -32,6 +32,8 @@ nRF52DK.upload.use_1200bps_touch=false ...@@ -32,6 +32,8 @@ nRF52DK.upload.use_1200bps_touch=false
nRF52DK.upload.wait_for_upload_port=false nRF52DK.upload.wait_for_upload_port=false
nRF52DK.upload.native_usb=false nRF52DK.upload.native_usb=false
nRF52DK.bootloader.tool=sandeepmistry:openocd
nRF52DK.build.mcu=cortex-m4 nRF52DK.build.mcu=cortex-m4
nRF52DK.build.f_cpu=16000000 nRF52DK.build.f_cpu=16000000
nRF52DK.build.board=NRF52_DK nRF52DK.build.board=NRF52_DK
...@@ -47,6 +49,7 @@ nRF52DK.menu.softdevice.none.softdevice=none ...@@ -47,6 +49,7 @@ nRF52DK.menu.softdevice.none.softdevice=none
nRF52DK.menu.softdevice.s132=S132 nRF52DK.menu.softdevice.s132=S132
nRF52DK.menu.softdevice.s132.softdevice=s132 nRF52DK.menu.softdevice.s132.softdevice=s132
nRF52DK.menu.softdevice.s132.softdeviceversion=2.0.0
nRF52DK.menu.softdevice.s132.upload.maximum_size=409600 nRF52DK.menu.softdevice.s132.upload.maximum_size=409600
nRF52DK.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132 nRF52DK.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132
nRF52DK.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld nRF52DK.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld
...@@ -58,6 +61,8 @@ BluzDK.upload.tool=sandeepmistry:openocd ...@@ -58,6 +61,8 @@ BluzDK.upload.tool=sandeepmistry:openocd
BluzDK.upload.target=nrf51 BluzDK.upload.target=nrf51
BluzDK.upload.maximum_size=262144 BluzDK.upload.maximum_size=262144
BluzDK.bootloader.tool=sandeepmistry:openocd
BluzDK.build.mcu=cortex-m0 BluzDK.build.mcu=cortex-m0
BluzDK.build.f_cpu=16000000 BluzDK.build.f_cpu=16000000
BluzDK.build.board=BLUZ_DK BluzDK.build.board=BLUZ_DK
...@@ -73,12 +78,14 @@ BluzDK.menu.softdevice.none.softdevice=none ...@@ -73,12 +78,14 @@ BluzDK.menu.softdevice.none.softdevice=none
BluzDK.menu.softdevice.s110=S110 BluzDK.menu.softdevice.s110=S110
BluzDK.menu.softdevice.s110.softdevice=s110 BluzDK.menu.softdevice.s110.softdevice=s110
BluzDK.menu.softdevice.s110.softdeviceversion=8.0.0
BluzDK.menu.softdevice.s110.upload.maximum_size=151552 BluzDK.menu.softdevice.s110.upload.maximum_size=151552
BluzDK.menu.softdevice.s110.build.extra_flags=-DNRF51 -DS110 -DNRF51_S110 BluzDK.menu.softdevice.s110.build.extra_flags=-DNRF51 -DS110 -DNRF51_S110
BluzDK.menu.softdevice.s110.build.ldscript=armgcc_s110_nrf51822_xxab.ld BluzDK.menu.softdevice.s110.build.ldscript=armgcc_s110_nrf51822_xxab.ld
BluzDK.menu.softdevice.s130=S130 BluzDK.menu.softdevice.s130=S130
BluzDK.menu.softdevice.s130.softdevice=s130 BluzDK.menu.softdevice.s130.softdevice=s130
BluzDK.menu.softdevice.s130.softdeviceversion=2.0.0
BluzDK.menu.softdevice.s130.upload.maximum_size=151552 BluzDK.menu.softdevice.s130.upload.maximum_size=151552
BluzDK.menu.softdevice.s130.build.extra_flags=-DNRF51 -DS130 -DNRF51_S130 BluzDK.menu.softdevice.s130.build.extra_flags=-DNRF51 -DS130 -DNRF51_S130
BluzDK.menu.softdevice.s130.build.ldscript=armgcc_s130_nrf51822_xxac.ld BluzDK.menu.softdevice.s130.build.ldscript=armgcc_s130_nrf51822_xxac.ld
...@@ -115,4 +115,12 @@ tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -f interface/{uploa ...@@ -115,4 +115,12 @@ tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -f interface/{uploa
tools.openocd.program.params.verbose=-d2 tools.openocd.program.params.verbose=-d2
tools.openocd.program.params.quiet=-d0 tools.openocd.program.params.quiet=-d0
tools.openocd.program.pattern="{path}/{cmd}" {program.verbose} -f interface/{program.interface}.cfg -c "{program.setup_command}" -f target/{program.target}.cfg -c "program {{{build.path}/{build.project_name}.hex}} verify reset; shutdown;" tools.openocd.program.pattern="{path}/{cmd}" {program.verbose} -f interface/{program.interface}.cfg -c "{program.setup_command}" -f target/{upload.target}.cfg -c "program {{{build.path}/{build.project_name}.hex}} verify reset; shutdown;"
tools.openocd.erase.params.verbose=-d3
tools.openocd.erase.params.quiet=-d0
tools.openocd.erase.pattern=
tools.openocd.bootloader.params.verbose=-d2
tools.openocd.bootloader.params.quiet=-d0
tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -f interface/{program.interface}.cfg -c "{program.setup_command}" -f target/{upload.target}.cfg -c "program {{{runtime.platform.path}/cores/nRF5/SDK/components/softdevice/{softdevice}/hex/{softdevice}_{upload.target}_{softdeviceversion}_softdevice.hex}} verify reset; shutdown;"
...@@ -4,7 +4,6 @@ jlink.protocol= ...@@ -4,7 +4,6 @@ jlink.protocol=
jlink.program.protocol= jlink.program.protocol=
jlink.program.tool=openocd jlink.program.tool=openocd
jlink.program.interface=jlink jlink.program.interface=jlink
jlink.program.target=nrf51
jlink.program.setup_command=transport select swd; set WORKAREASIZE 0; jlink.program.setup_command=transport select swd; set WORKAREASIZE 0;
stlink.name=ST-Link V2 stlink.name=ST-Link V2
...@@ -13,5 +12,4 @@ stlink.protocol= ...@@ -13,5 +12,4 @@ stlink.protocol=
stlink.program.protocol= stlink.program.protocol=
stlink.program.tool=openocd stlink.program.tool=openocd
stlink.program.interface=stlink-v2 stlink.program.interface=stlink-v2
stlink.program.target=nrf51
stlink.program.setup_command=transport select hla_swd; set WORKAREASIZE 0x4000; stlink.program.setup_command=transport select hla_swd; set WORKAREASIZE 0x4000;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment