Skip to content

Commit 36476e0

Browse files
committed
Merge remote-tracking branch 'bcmi/portentax8_m4'
2 parents f222072 + 5b83ec2 commit 36476e0

34 files changed

+2923
-57
lines changed

boards.txt

+53
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,59 @@ envie_m4.bootloader.file=PORTENTA_H7/portentah7_bootloader_mbed_hs_v2.elf
213213

214214
##############################################################
215215

216+
portenta_x8.name=Arduino Portenta X8
217+
portenta_x8.build.core=arduino
218+
portenta_x8.build.crossprefix=arm-none-eabi-
219+
portenta_x8.build.compiler_path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
220+
221+
portenta_x8.build.variant=PORTENTA_X8
222+
portenta_x8.build.mcu=cortex-m4
223+
portenta_x8.build.fpu=-mfpu=fpv4-sp-d16
224+
portenta_x8.build.float-abi=-mfloat-abi=softfp
225+
portenta_x8.build.extra_flags=
226+
portenta_x8.build.extra_ldflags=-DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000
227+
portenta_x8.build.architecture=cortex-m4
228+
portenta_x8.build.board=PORTENTA_X8
229+
portenta_x8.build.ldscript=linker_script.ld
230+
portenta_x8.compiler.mbed.arch.define=
231+
portenta_x8.compiler.mbed.defines={build.variant.path}/defines.txt
232+
portenta_x8.compiler.mbed.ldflags={build.variant.path}/ldflags.txt
233+
portenta_x8.compiler.mbed.cflags={build.variant.path}/cflags.txt
234+
portenta_x8.compiler.mbed.cxxflags={build.variant.path}/cxxflags.txt
235+
portenta_x8.compiler.mbed.includes={build.variant.path}/includes.txt
236+
portenta_x8.compiler.mbed.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
237+
portenta_x8.compiler.mbed="{build.variant.path}/libs/libmbed.a"
238+
portenta_x8.vid.0=0x2341
239+
portenta_x8.pid.0=0x0061
240+
portenta_x8.build.vid=0x2341
241+
portenta_x8.build.pid=0x0061
242+
portenta_x8.upload_port.0.vid=0x2341
243+
portenta_x8.upload_port.0.pid=0x0061
244+
245+
portenta_x8.upload.tool=adb
246+
portenta_x8.upload.tool.default=adb
247+
portenta_x8.upload.vid=0x2341
248+
portenta_x8.upload.pid=0x0061
249+
portenta_x8.upload.protocol=
250+
portenta_x8.upload.transport=
251+
portenta_x8.upload.interface=0
252+
portenta_x8.upload.use_1200bps_touch=false
253+
portenta_x8.upload.wait_for_upload_port=false
254+
portenta_x8.upload.native_usb=true
255+
portenta_x8.upload.maximum_data_size=294248
256+
257+
portenta_x8.debug.tool=gdb
258+
portenta_x8.bootloader.tool=openocd
259+
portenta_x8.bootloader.tool.default=openocd
260+
portenta_x8.bootloader.config=-f target/stm32h7x_dual_bank.cfg
261+
portenta_x8.bootloader.programmer=-f interface/stlink.cfg
262+
portenta_x8.bootloader.extra_action.preflash=stm32h7x option_write 0 0x01c 0xb86aaf0
263+
portenta_x8.bootloader.file=PORTENTA_X7/STM32H747AII6_CM7.elf
264+
265+
portenta_x8.build.postbuild.cmd="{tools.imgtool.path}/{tools.imgtool.cmd}" exit
266+
267+
##############################################################
268+
216269
nano33ble.name=Arduino Nano 33 BLE
217270
nano33ble.build.core=arduino
218271
nano33ble.build.crossprefix=arm-none-eabi-

cores/arduino/Arduino.h

+11
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ extern analogin_config_t adcCurrentConfig;
112112
#define Serial3 _UART3_
113113
#define Serial4 _UART4_
114114

115+
#if defined(RPC_SERIAL)
116+
#undef Serial
117+
#if __has_include("RPC.h")
118+
#include "SerialRPC.h"
119+
#define Serial SerialRPC
120+
#else
121+
extern ErrorSerialClass ErrorSerial;
122+
#define Serial ErrorSerial
123+
#endif
124+
#endif
125+
115126
#include "overloads.h"
116127
#endif
117128

0 commit comments

Comments
 (0)