Skip to content

Commit 8f447cc

Browse files
committed
nrf54 wip
1 parent cd17a80 commit 8f447cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+8321
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
MEMORY
20+
{
21+
FLASH (rx) : ORIGIN = 0x01000000, LENGTH = 0x4000
22+
RAM (rwx) : ORIGIN = 0x21000000, LENGTH = 0x10000
23+
IPC (rw) : ORIGIN = 0x20000400, LENGTH = 0x400
24+
}
25+
26+
/* The bootloader does not contain an image header */
27+
_imghdr_size = 0x0;

hw/bsp/nordic_pca10175_rad/bsp.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
bsp.name: "nRF54H20 DK (Net Core)"
21+
bsp.url: https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF54H20-DK
22+
bsp.maker: "Nordic Semiconductor"
23+
bsp.arch: cortex_m33
24+
bsp.exclude_site: 1
25+
bsp.compiler: "@apache-mynewt-core/compiler/arm-none-eabi-m33"
26+
bsp.linkerscript:
27+
- "hw/bsp/nordic_pca10175_rad/nrf54h20_rad.ld"
28+
- "@apache-mynewt-core/hw/mcu/nordic/nrf54h20_rad/nrf54h20_rad.ld"
29+
bsp.linkerscript.BOOT_LOADER.OVERWRITE:
30+
- "hw/bsp/nordic_pca10175_rad/boot-nrf54h20_rad.ld"
31+
- "@apache-mynewt-core/hw/mcu/nordic/nrf54h20_rad/nrf54h20_rad.ld"
32+
bsp.part2linkerscript: "hw/bsp/nordic_pca10175_rad/split-nordic_pca10175_rad.ld"
33+
bsp.downloadscript: "hw/scripts/download.sh"
34+
bsp.debugscript: "hw/bsp/nordic_pca10175_rad/nordic_pca10175_rad_debug.sh"
35+
36+
bsp.flash_map:
37+
areas:
38+
# System areas.
39+
FLASH_AREA_BOOTLOADER:
40+
device: 0
41+
offset: 0x01000000
42+
size: 16kB
43+
FLASH_AREA_IMAGE_0:
44+
device: 0
45+
offset: 0x01008000
46+
size: 128kB
47+
FLASH_AREA_COREDUMP:
48+
user_id: 2
49+
device: 0
50+
offset: 0x01028000
51+
size: 68kB
52+
# This maps to app flash and uses vflash
53+
FLASH_AREA_IMAGE_1:
54+
device: 1
55+
offset: 0x00000000
56+
size: 128kB
57+
FLASH_AREA_IMAGE_SCRATCH:
58+
device: 0
59+
offset: 0x0103a000
60+
size: 8kB
61+
62+
# User areas.
63+
FLASH_AREA_REBOOT_LOG:
64+
user_id: 0
65+
device: 0
66+
offset: 0x01004000
67+
size: 16kB
68+
FLASH_AREA_NFFS:
69+
user_id: 1
70+
device: 0
71+
offset: 0x010fc000
72+
size: 16kB
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
#ifndef _BSP_H_
21+
#define _BSP_H_
22+
23+
#include <inttypes.h>
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
/* Define special stackos sections */
30+
#define sec_data_core __attribute__((section(".data.core")))
31+
#define sec_bss_core __attribute__((section(".bss.core")))
32+
#define sec_bss_nz_core __attribute__((section(".bss.core.nz")))
33+
34+
/* More convenient section placement macros. */
35+
#define bssnz_t sec_bss_nz_core
36+
37+
extern uint8_t _ram_start;
38+
#define RAM_SIZE 0x10000
39+
40+
/* LED pins */
41+
#define LED_1 (28)
42+
#define LED_2 (29)
43+
#define LED_3 (30)
44+
#define LED_4 (31)
45+
#define LED_BLINK_PIN (LED_2)
46+
47+
/* Buttons */
48+
#define BUTTON_1 (23)
49+
#define BUTTON_2 (24)
50+
#define BUTTON_3 (8)
51+
#define BUTTON_4 (9)
52+
53+
/* Arduino pins */
54+
#define ARDUINO_PIN_D0 32
55+
#define ARDUINO_PIN_D1 33
56+
#define ARDUINO_PIN_D2 36
57+
#define ARDUINO_PIN_D3 37
58+
#define ARDUINO_PIN_D4 38
59+
#define ARDUINO_PIN_D5 39
60+
#define ARDUINO_PIN_D6 40
61+
#define ARDUINO_PIN_D7 41
62+
#define ARDUINO_PIN_D8 42
63+
#define ARDUINO_PIN_D9 43
64+
#define ARDUINO_PIN_D10 44
65+
#define ARDUINO_PIN_D11 45
66+
#define ARDUINO_PIN_D12 46
67+
#define ARDUINO_PIN_D13 47
68+
#define ARDUINO_PIN_A0 4
69+
#define ARDUINO_PIN_A1 5
70+
#define ARDUINO_PIN_A2 6
71+
#define ARDUINO_PIN_A3 7
72+
#define ARDUINO_PIN_A4 25
73+
#define ARDUINO_PIN_A5 26
74+
75+
#define ARDUINO_PIN_RX ARDUINO_PIN_D0
76+
#define ARDUINO_PIN_TX ARDUINO_PIN_D1
77+
78+
#define ARDUINO_PIN_SCL 35
79+
#define ARDUINO_PIN_SDA 34
80+
81+
#define ARDUINO_PIN_SCK ARDUINO_PIN_D13
82+
#define ARDUINO_PIN_MOSI ARDUINO_PIN_D11
83+
#define ARDUINO_PIN_MISO ARDUINO_PIN_D12
84+
85+
#ifdef __cplusplus
86+
}
87+
#endif
88+
89+
#endif /* _BSP_H_ */
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
# Called with following variables set:
21+
# - CORE_PATH is absolute path to @apache-mynewt-core
22+
# - BSP_PATH is absolute path to hw/bsp/bsp_name
23+
# - BIN_BASENAME is the path to prefix to target binary,
24+
# .elf appended to name is the ELF file
25+
# - FEATURES holds the target features string
26+
# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
27+
# - RESET set if target should be reset when attaching
28+
# - NO_GDB set if we should not start gdb to debug
29+
#
30+
31+
#Use custom ports for debuging so that newt debug works on both cores
32+
EXTRA_JTAG_CMD="-port 3334"
33+
34+
. $CORE_PATH/hw/scripts/jlink.sh
35+
36+
FILE_NAME=$BIN_BASENAME.elf
37+
JLINK_DEV="nrf54h20_xxaa_rad"
38+
39+
jlink_debug
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
19+
# Called with following variables set:
20+
# - CORE_PATH is absolute path to @apache-mynewt-core
21+
# - BSP_PATH is absolute path to hw/bsp/bsp_name
22+
# - BIN_BASENAME is the path to prefix to target binary,
23+
# .elf appended to name is the ELF file
24+
# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
25+
# - FEATURES holds the target features string
26+
# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
27+
# - MFG_IMAGE is "1" if this is a manufacturing image
28+
# - FLASH_OFFSET contains the flash offset to download to
29+
# - BOOT_LOADER is set if downloading a bootloader
30+
31+
. $CORE_PATH/hw/scripts/jlink.sh
32+
33+
if [ "$MFG_IMAGE" ]; then
34+
FLASH_OFFSET=0x01000000
35+
fi
36+
37+
JLINK_DEV="nrf54h20_xxaa_rad"
38+
39+
common_file_to_load
40+
jlink_load

0 commit comments

Comments
 (0)