mirror of
https://github.com/IcedRooibos/py32f0-template.git
synced 2025-10-28 00:12:05 -07:00
fix: build and flash options
This commit is contained in:
parent
01f3b5e083
commit
20a7665bbe
17
Makefile
17
Makefile
@ -24,11 +24,18 @@ ARM_TOOCHAIN ?= /opt/gcc-arm/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/bi
|
||||
|
||||
# path to JLinkExe
|
||||
JLINKEXE ?= /opt/SEGGER/JLink/JLinkExe
|
||||
# JLink device type, options: PY32F003X4, PY32F003X6, PY32F003X8, PY32F030X4, PY32F030X6, PY32F030X7, PY32F030X8
|
||||
# JLink device type, options:
|
||||
# PY32F002AX5, PY32F002X5,
|
||||
# PY32F003X4, PY32F003X6, PY32F003X8,
|
||||
# PY32F030X4, PY32F030X6, PY32F030X7, PY32F030X8
|
||||
JLINK_DEVICE ?= PY32F003X8
|
||||
# path to PyOCD,
|
||||
PYOCD_EXE ?= pyocd
|
||||
# PyOCD device type, options: py32f003x4, py32f003x6, py32f003x8, py32f030x3, py32f030x4, py32f030x6, py32f030x7, py32f030x8
|
||||
# PyOCD device type, options:
|
||||
# py32f002ax5, py32f002x5,
|
||||
# py32f003x4, py32f003x6, py32f003x8,
|
||||
# py32f030x3, py32f030x4, py32f030x6, py32f030x7, py32f030x8
|
||||
# py32f072xb
|
||||
PYOCD_DEVICE ?= py32f003x8
|
||||
|
||||
|
||||
@ -36,7 +43,11 @@ PYOCD_DEVICE ?= py32f003x8
|
||||
|
||||
# Link descript file: py32f002x5.ld, py32f003x6.ld, py32f003x8.ld, py32f030x6.ld, py32f030x8.ld
|
||||
LDSCRIPT = Libraries/LDScripts/py32f003x8.ld
|
||||
# Library build flags: PY32F002x5, PY32F002Ax5, PY32F003x4, PY32F003x6, PY32F003x8, PY32F030x3, PY32F030x4, PY32F030x6, PY32F030x7, PY32F030x8, PY32F072xB
|
||||
# Library build flags:
|
||||
# PY32F002x5, PY32F002Ax5,
|
||||
# PY32F003x4, PY32F003x6, PY32F003x8,
|
||||
# PY32F030x3, PY32F030x4, PY32F030x6, PY32F030x7, PY32F030x8,
|
||||
# PY32F072xB
|
||||
LIB_FLAGS = PY32F003x8
|
||||
|
||||
# C source folders
|
||||
|
||||
@ -2,6 +2,14 @@
|
||||
<!-- -->
|
||||
<!-- Puya -->
|
||||
<!-- -->
|
||||
<Device>
|
||||
<ChipInfo Vendor="Puya" Name="PY32F002AX5" WorkRAMAddr="0x20000000" WorkRAMSize="0xC00" Core="JLINK_CORE_CORTEX_M0"/>
|
||||
<FlashBankInfo Name="Flash_20K" BaseAddr="0x08000000" MaxSize="0x5000" Loader="Devices/Puya/PY32F0xx_20.FLM" LoaderType="FLASH_ALGO_TYPE_OPEN" AlwaysPresent="1"/>
|
||||
</Device>
|
||||
<Device>
|
||||
<ChipInfo Vendor="Puya" Name="PY32F002X5" WorkRAMAddr="0x20000000" WorkRAMSize="0xC00" Core="JLINK_CORE_CORTEX_M0"/>
|
||||
<FlashBankInfo Name="Flash_20K" BaseAddr="0x08000000" MaxSize="0x5000" Loader="Devices/Puya/PY32F0xx_20.FLM" LoaderType="FLASH_ALGO_TYPE_OPEN" AlwaysPresent="1"/>
|
||||
</Device>
|
||||
<Device>
|
||||
<ChipInfo Vendor="Puya" Name="PY32F003X4" WorkRAMAddr="0x20000000" WorkRAMSize="0x800" Core="JLINK_CORE_CORTEX_M0"/>
|
||||
<FlashBankInfo Name="Flash_16K" BaseAddr="0x08000000" MaxSize="0x4000" Loader="Devices/Puya/PY32F003xx_16.FLM" LoaderType="FLASH_ALGO_TYPE_OPEN" AlwaysPresent="1"/>
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
pack:
|
||||
- Misc/Puya.PY32F0xx_DFP.1.1.0.pack
|
||||
- Misc/Puya.PY32F0xx_DFP.1.1.3.pack
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user