Skip to content

Commit

Permalink
hw/bsp: nordic_pca10040 add syscfg selectable download script
Browse files Browse the repository at this point in the history
  • Loading branch information
wpiet committed May 29, 2023
1 parent 5eb1a1b commit 8433104
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 88 deletions.
4 changes: 1 addition & 3 deletions hw/bsp/nordic_pca10040/bsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ bsp.linkerscript.RAM_RESIDENT.OVERWRITE:
- "hw/bsp/nordic_pca10040/boot-nrf52xxaa.ld"
- "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx/nrf52_ram_resident.ld"
bsp.part2linkerscript: "hw/bsp/nordic_pca10040/split-nordic_pca10040.ld"
bsp.downloadscript: "hw/bsp/nordic_pca10040/nordic_pca10040_download.sh"
bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nordic_pca10040/nordic_pca10040_debug.sh"
bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10040/nordic_pca10040_download.cmd"
bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10040/nordic_pca10040_debug.cmd"

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

This file was deleted.

22 changes: 0 additions & 22 deletions hw/bsp/nordic_pca10040/nordic_pca10040_download.cmd

This file was deleted.

40 changes: 0 additions & 40 deletions hw/bsp/nordic_pca10040/nordic_pca10040_download.sh

This file was deleted.

2 changes: 1 addition & 1 deletion hw/bsp/nordic_pca10040/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pkg.cflags.HARDFLOAT:
pkg.deps:
- "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx"
- "@apache-mynewt-core/libc/baselibc"
- "@apache-mynewt-core/hw/scripts"

pkg.deps.ENC_FLASH_DEV:
- "@apache-mynewt-core/hw/drivers/flash/enc_flash/ef_nrf5x"
Expand All @@ -46,4 +47,3 @@ pkg.deps.SOFT_PWM:

pkg.deps.UARTBB_0:
- "@apache-mynewt-core/hw/drivers/uart/uart_bitbang"

6 changes: 6 additions & 0 deletions hw/bsp/nordic_pca10040/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ syscfg.vals:
MCU_LFCLK_SOURCE: LFXO
BOOT_SERIAL_DETECT_PIN: 13 # Button 1

# Flasher parameters
MYNEWT_DOWNLOADER: jlink
MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x0
PYOCD_TARGET: nrf52
JLINK_TARGET: nRF52832_xxAA

syscfg.vals.BLE_CONTROLLER:
TIMER_0: 0
TIMER_5: 1
Expand Down

0 comments on commit 8433104

Please sign in to comment.