-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for the Nordic nRF5340 (application and network cores):
* Added nRF5340 driver support for Clock, Internal Flash (NVMC), GPIO, SPU, OTP, UART, SPI, QSPI and IPC. * Added support for updating the network core (Sign using "--id 2")/ * Cleanup the nRF52 port * Improved external QSPI and internal Flash tests and logging. * Improved internal printf support for formatter length.
- Loading branch information
Showing
34 changed files
with
2,224 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
tar rem:3333 | ||
file wolfboot.elf | ||
add-symbol-file test-app/image.elf | ||
set pagination off | ||
foc c | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ TARGET?=nrf52 | |
SIGN?=ECC256 | ||
HASH?=SHA256 | ||
DEBUG?=0 | ||
DEBUG_UART?=1 | ||
VTOR?=1 | ||
CORTEX_M0?=0 | ||
NO_ASM?=0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
ARCH?=ARM | ||
TZEN?=0 | ||
TARGET?=nrf5340 | ||
SIGN?=ECC256 | ||
HASH?=SHA256 | ||
WOLFBOOT_VERSION?=1 | ||
VTOR?=1 | ||
CORTEX_M0?=0 | ||
CORTEX_M33?=1 | ||
NO_ASM?=0 | ||
NO_MPU=1 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=0 | ||
|
||
SPMATH?=1 | ||
RAM_CODE?=1 | ||
|
||
DUALBANK_SWAP?=0 | ||
FLAGS_HOME=0 | ||
DISABLE_BACKUP=0 | ||
EXT_FLASH?=1 | ||
SPI_FLASH?=0 | ||
QSPI_FLASH?=1 | ||
|
||
# Flash is 4KB pages (app) | ||
WOLFBOOT_SECTOR_SIZE?=0x1000 | ||
|
||
# Application offset (reserve 48KB for wolfBoot) | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0xC000 | ||
|
||
# Application Partition Size (952KB) | ||
WOLFBOOT_PARTITION_SIZE?=0xEE000 | ||
|
||
# External Flash offset for application update (1MB) | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x0 | ||
|
||
# External Flash offset for network update at 0x100000 (size=256KB) | ||
|
||
# External Flash offset for swap (4KB) | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x140000 | ||
|
||
V?=0 | ||
DEBUG?=0 | ||
DEBUG_UART?=1 | ||
USE_GCC=1 | ||
|
||
CFLAGS_EXTRA+=-DDEBUG_FLASH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
ARCH?=ARM | ||
TZEN?=0 | ||
TARGET?=nrf5340_net | ||
SIGN?=ECC256 | ||
HASH?=SHA256 | ||
WOLFBOOT_VERSION?=1 | ||
VTOR?=1 | ||
CORTEX_M0?=0 | ||
CORTEX_M33?=1 | ||
NO_ASM?=1 | ||
NO_MPU=1 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=0 | ||
|
||
SPMATH?=1 | ||
RAM_CODE?=1 | ||
|
||
DUALBANK_SWAP?=0 | ||
FLAGS_HOME=0 | ||
DISABLE_BACKUP=0 | ||
EXT_FLASH?=0 | ||
SPI_FLASH?=0 | ||
QSPI_FLASH?=0 | ||
|
||
# Flash base for network core | ||
ARCH_FLASH_OFFSET=0x01000000 | ||
|
||
# Flash is 2KB pages | ||
WOLFBOOT_SECTOR_SIZE?=0x800 | ||
|
||
# Application offset (reserve 48KB for wolfBoot) | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x0100C000 | ||
|
||
# Application Partition Size (184KB) | ||
WOLFBOOT_PARTITION_SIZE?=0x2E000 | ||
|
||
# Flash offset for update (not used - handled by application core) | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x0100C000 | ||
|
||
# Flash offset for swap (not used - handled by application core) | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x103A800 | ||
|
||
V?=0 | ||
DEBUG?=0 | ||
DEBUG_UART?=1 | ||
USE_GCC=1 | ||
|
||
CFLAGS_EXTRA+=-DDEBUG_FLASH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.