rp2040: add multicore support

This commit is contained in:
Ayke van Laethem
2025-06-12 14:13:18 +02:00
committed by Ron Evans
parent 5625f68d51
commit e238eb2242
7 changed files with 304 additions and 7 deletions
+8
View File
@@ -32,6 +32,14 @@ SECTIONS
_stack_top = .;
} >RAM
/* Stack for second core (core 1), if there is one. */
.stack1 (NOLOAD) :
{
. = ALIGN(4);
. += DEFINED(__num_stacks) && __num_stacks >= 2 ? _stack_size : 0;
_stack1_top = .;
} >RAM
/* Start address (in flash) of .data, used by startup code. */
_sidata = LOADADDR(.data);
+4
View File
@@ -1,6 +1,7 @@
{
"inherits": ["cortex-m0plus"],
"build-tags": ["rp2040", "rp"],
"scheduler": "cores",
"flash-1200-bps-reset": "true",
"flash-method": "msd",
"serial": "usb",
@@ -12,6 +13,9 @@
"extra-files": [
"src/device/rp/rp2040.s"
],
"ldflags": [
"--defsym=__num_stacks=2"
],
"linkerscript": "targets/rp2040.ld",
"openocd-interface": "picoprobe",
"openocd-transport": "swd",