platformio.ini and linker script fixups
This commit is contained in:
parent
aa52d57149
commit
7fb2dee523
|
@ -15,6 +15,7 @@ platform = nxplpc ; not actually this and we are not using
|
||||||
board = generic_py32f030x6
|
board = generic_py32f030x6
|
||||||
board_build.ldscript = py32f030x6.ld
|
board_build.ldscript = py32f030x6.ld
|
||||||
|
|
||||||
|
|
||||||
debug_tool = custom ; built-in pyocd support does not allow config file override
|
debug_tool = custom ; built-in pyocd support does not allow config file override
|
||||||
debug_server = $PYTHONEXE
|
debug_server = $PYTHONEXE
|
||||||
${platformio.packages_dir}/tool-pyocd/pyocd-gdbserver.py
|
${platformio.packages_dir}/tool-pyocd/pyocd-gdbserver.py
|
||||||
|
@ -22,7 +23,6 @@ debug_server = $PYTHONEXE
|
||||||
$PROJECT_DIR/pyocd.yaml
|
$PROJECT_DIR/pyocd.yaml
|
||||||
-t
|
-t
|
||||||
PY32F030x6
|
PY32F030x6
|
||||||
#debug_port = localhost:3333
|
|
||||||
debug_extra_cmds =
|
debug_extra_cmds =
|
||||||
set mem inaccessible-by-default off
|
set mem inaccessible-by-default off
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ board_build.ldscript = py32f030x6_bl.ld
|
||||||
board_upload.maximum_size = 30720 ; 2K reserved for bootloader
|
board_upload.maximum_size = 30720 ; 2K reserved for bootloader
|
||||||
|
|
||||||
build_flags = ${common.build_flags}
|
build_flags = ${common.build_flags}
|
||||||
|
-DBOOTLOADED
|
||||||
-DTESTO_REV1
|
-DTESTO_REV1
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,4 +84,5 @@ board_build.ldscript = py32f030x6_bl.ld
|
||||||
board_upload.maximum_size = 30720 ; 2K reserved for bootloader
|
board_upload.maximum_size = 30720 ; 2K reserved for bootloader
|
||||||
|
|
||||||
build_flags = ${common.build_flags}
|
build_flags = ${common.build_flags}
|
||||||
|
-DBOOTLOADED
|
||||||
-DTESTO_REV2
|
-DTESTO_REV2
|
|
@ -30,7 +30,7 @@ _Min_Stack_Size = 0x100; /* required amount of stack: 256 bytes */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K
|
||||||
FLASH (rx) : ORIGIN = 0x08002000, LENGTH = 30K
|
FLASH (rx) : ORIGIN = 0x08000800, LENGTH = 32K - 2K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Define output sections */
|
/* Define output sections */
|
||||||
|
|
Loading…
Reference in New Issue