From a91d9e207271fb2f873c4401dbcf3d824269ed6f Mon Sep 17 00:00:00 2001 From: pennam Date: Fri, 20 Jun 2025 10:33:02 +0200 Subject: [PATCH] Add Arduino Stella --- boards.txt | 64 +++++++++++++++++++++++++++++++++++++++++++++++- stella.variables | 5 ++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 stella.variables diff --git a/boards.txt b/boards.txt index 048ca551d..76797dea7 100644 --- a/boards.txt +++ b/boards.txt @@ -871,4 +871,66 @@ giga.debug.server.openocd.scripts.1={programmer.transport_script} giga.debug.server.openocd.scripts.2=target/stm32h7x_dual_bank.cfg giga.debug.cortex-debug.custom.request=attach giga.menu.target_core.cm7.debug.svd_file={runtime.platform.path}/svd/STM32H747_CM7.svd -giga.menu.target_core.cm4.debug.svd_file={runtime.platform.path}/svd/STM32H747_CM4.svd \ No newline at end of file +giga.menu.target_core.cm4.debug.svd_file={runtime.platform.path}/svd/STM32H747_CM4.svd + +############################################################## + +stella.name=Arduino Stella +stella.build.core=arduino +stella.build.crossprefix=arm-none-eabi- +stella.build.compiler_path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/ + +stella.build.variant=ARDUINO_NANO33BLE +stella.build.mcu=cortex-m4 +stella.build.extra_flags= +stella.build.architecture=cortex-m4 +stella.build.fpu=-mfpu=fpv4-sp-d16 +stella.build.float-abi=-mfloat-abi=softfp +stella.build.board=ARDUINO_NANO33BLE +stella.build.ldscript=linker_script.ld +stella.compiler.mbed.arch.define=-DARDUINO_ARCH_NRF52840 +stella.compiler.mbed.defines={build.variant.path}/defines.txt +stella.compiler.mbed.ldflags={build.variant.path}/ldflags.txt +stella.compiler.mbed.cflags={build.variant.path}/cflags.txt +stella.compiler.mbed.cxxflags={build.variant.path}/cxxflags.txt +stella.compiler.mbed.includes={build.variant.path}/includes.txt +stella.compiler.mbed.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys +stella.compiler.mbed="{build.variant.path}/libs/libmbed.a" "{build.variant.path}/libs/libcc_310_core.a" "{build.variant.path}/libs/libcc_310_ext.a" "{build.variant.path}/libs/libcc_310_trng.a" +stella.vid.0=0x2341 +stella.pid.0=0x005a +stella.vid.1=0x2341 +stella.pid.1=0x805a +stella.vid.2=0x2341 +stella.pid.2=0x015a +stella.vid.3=0x2341 +stella.pid.3=0x025a +stella.upload_port.0.vid=0x2341 +stella.upload_port.0.pid=0x005a +stella.upload_port.1.vid=0x2341 +stella.upload_port.1.pid=0x805a +stella.upload_port.2.vid=0x2341 +stella.upload_port.2.pid=0x015a +stella.upload_port.3.vid=0x2341 +stella.upload_port.3.pid=0x025a + +stella.upload.tool=bossac +stella.upload.tool.default=bossac +stella.upload.protocol= +stella.upload.transport= +stella.upload.use_1200bps_touch=true +stella.upload.wait_for_upload_port=true +stella.upload.native_usb=true +stella.upload.maximum_size=983040 +stella.upload.maximum_data_size=262144 + +stella.bootloader.tool=openocd +stella.bootloader.tool.default=openocd +stella.bootloader.extra_action.preflash=echo INFO:removed_mass-erase +stella.bootloader.config=-f target/nrf52.cfg +stella.bootloader.programmer=-f interface/cmsis-dap.cfg +stella.bootloader.file=nano33ble/bootloader.hex + +stella.debug.server.openocd.scripts.0=interface/{programmer.protocol}.cfg +stella.debug.server.openocd.scripts.1={programmer.transport_script} +stella.debug.server.openocd.scripts.2=target/nrf52.cfg +stella.debug.svd_file={runtime.platform.path}/svd/nrf52840.svd diff --git a/stella.variables b/stella.variables new file mode 100644 index 000000000..12b0b3df9 --- /dev/null +++ b/stella.variables @@ -0,0 +1,5 @@ +export FLAVOUR="stella" +export VARIANTS=("ARDUINO_NANO33BLE") +export FQBNS=("stella") +export LIBRARIES=("PDM SPI Wire MRI USBHID USBMIDI USBMSD ThreadDebug Scheduler SFU Nano33BLE_System SocketWrapper MLC") +export BOOTLOADERS=("nano33ble")