-
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.
Fixes for building nRF5340 for both application and network cores. Re…
…vert some "CORE" logic, easier to have different targets.
- Loading branch information
Showing
12 changed files
with
334 additions
and
38 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
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 |
---|---|---|
|
@@ -43,3 +43,7 @@ WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x200000 | |
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,49 @@ | ||
ARCH?=ARM | ||
TZEN?=0 | ||
TARGET?=nrf5340_net | ||
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=1 | ||
EXT_FLASH?=0 | ||
SPI_FLASH?=0 | ||
QSPI_FLASH?=0 | ||
|
||
# Flash base for network core | ||
ARCH_FLASH_OFFSET=0x01000000 | ||
|
||
# Flash is 4KB pages (app) 2KB pages (net) | ||
WOLFBOOT_SECTOR_SIZE?=0x1000 | ||
|
||
# Application Partition Size (256KB-64KB) | ||
WOLFBOOT_PARTITION_SIZE?=0x18000 | ||
|
||
# Reserve 64KB for wolfBoot | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x01010000 | ||
|
||
# Flash offset for update (not used) | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x0 | ||
|
||
# Flash offset for swap (not used) | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x0 | ||
|
||
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* nrf5340_net.c | ||
* | ||
* Copyright (C) 2024 wolfSSL Inc. | ||
* | ||
* This file is part of wolfBoot. | ||
* | ||
* wolfBoot is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* wolfBoot is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA | ||
*/ | ||
|
||
#ifdef TARGET_nrf5340_net | ||
|
||
/* use code from nrf5340.c */ | ||
#define TARGET_nrf5340 | ||
#include "nrf5340.c" | ||
|
||
#endif /* TARGET_* */ |
Oops, something went wrong.