Skip to content

Commit

Permalink
hw/bsp/nordic_pca10028: Switch to use common download script
Browse files Browse the repository at this point in the history
This also changes default downloader to nrfutil

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
  • Loading branch information
kasjer committed Dec 2, 2024
1 parent 8cd6230 commit d2082b5
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 132 deletions.
4 changes: 1 addition & 3 deletions hw/bsp/nordic_pca10028-16k/bsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
- "hw/bsp/nordic_pca10028-16k/boot-nrf51xxaa.ld"
- "@apache-mynewt-core/hw/mcu/nordic/nrf51xxx/nrf51.ld"
bsp.part2linkerscript: "hw/bsp/nordic_pca10028-16k/split-nordic_pca10028-16k.ld"
bsp.downloadscript: "hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_download.sh"
bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.sh"
bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_download.cmd"
bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.cmd"

bsp.flash_map:
areas:
Expand Down
22 changes: 0 additions & 22 deletions hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_download.cmd

This file was deleted.

41 changes: 0 additions & 41 deletions hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_download.sh

This file was deleted.

1 change: 1 addition & 0 deletions hw/bsp/nordic_pca10028-16k/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pkg.cflags:
pkg.deps:
- "@apache-mynewt-core/hw/mcu/nordic/nrf51xxx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/hw/scripts"

pkg.deps.UART_0:
- "@apache-mynewt-core/hw/drivers/uart/uart_hal"
Expand Down
6 changes: 6 additions & 0 deletions hw/bsp/nordic_pca10028-16k/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ syscfg.vals:
MCU_DCDC_ENABLED: 1
MCU_LFCLK_SOURCE: LFXO

# Flasher parameters
MYNEWT_DOWNLOADER: nrfjprog
MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x0
PYOCD_TARGET: nrf51
JLINK_TARGET: nRF51422_xxAC

syscfg.vals.BLE_CONTROLLER:
OS_CPUTIME_FREQ: 32768
OS_CPUTIME_TIMER_NUM: 3
Expand Down
4 changes: 1 addition & 3 deletions hw/bsp/nordic_pca10028/bsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
- "hw/bsp/nordic_pca10028/boot-nrf51xxac.ld"
- "@apache-mynewt-core/hw/mcu/nordic/nrf51xxx/nrf51.ld"
bsp.part2linkerscript: "hw/bsp/nordic_pca10028/split-nordic_pca10028.ld"
bsp.downloadscript: "hw/bsp/nordic_pca10028/nordic_pca10028_download.sh"
bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nordic_pca10028/nordic_pca10028_debug.sh"
bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10028/nordic_pca10028_download.cmd"
bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10028/nordic_pca10028_debug.cmd"

bsp.flash_map:
areas:
Expand Down
22 changes: 0 additions & 22 deletions hw/bsp/nordic_pca10028/nordic_pca10028_download.cmd

This file was deleted.

41 changes: 0 additions & 41 deletions hw/bsp/nordic_pca10028/nordic_pca10028_download.sh

This file was deleted.

1 change: 1 addition & 0 deletions hw/bsp/nordic_pca10028/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pkg.cflags:
pkg.deps:
- "@apache-mynewt-core/hw/mcu/nordic/nrf51xxx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/hw/scripts"

pkg.deps.UART_0:
- "@apache-mynewt-core/hw/drivers/uart/uart_hal"
Expand Down
6 changes: 6 additions & 0 deletions hw/bsp/nordic_pca10028/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ syscfg.vals:
MCU_DCDC_ENABLED: 1
MCU_LFCLK_SOURCE: LFXO

# Flasher parameters
MYNEWT_DOWNLOADER: nrfjprog
MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x0
PYOCD_TARGET: nrf51
JLINK_TARGET: nRF51422_xxAC

syscfg.vals.BLE_CONTROLLER:
OS_CPUTIME_FREQ: 32768
OS_CPUTIME_TIMER_NUM: 3
Expand Down

0 comments on commit d2082b5

Please sign in to comment.