mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
rp2040: add multicore support
This commit is contained in:
committed by
Ron Evans
parent
5625f68d51
commit
e238eb2242
@@ -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);
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user