Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ef07fa0
Fix Challenge/Outdoor Carrier port
manchoz Aug 3, 2020
d52b924
ADD SPIFBlockDevice support
manchoz Aug 3, 2020
cf1d07e
Reorder pins for subsequent analogs numbering
manchoz Sep 25, 2020
22348a2
Fix NUM_DIGITAL_PINS AND NUM_ANALOG_INPUTS
manchoz Sep 25, 2020
ab9dbfc
Fix I2Cs after pins renumbering
manchoz Sep 25, 2020
bac55af
Yet another pin defines fix
manchoz Sep 29, 2020
1a121d7
Add defines for SerialMKR1 and SerialMKR2
manchoz Sep 30, 2020
5c3321c
[OUTDOOR_CARRIER] Rebase Core and mbed-os
manchoz Oct 2, 2020
32d2104
Rename Outdoor Carrier -> Edge Control
manchoz Oct 2, 2020
9df8556
[Edge Control] Update bootloader
manchoz Oct 5, 2020
103f137
Fix FLASHIAP and SPIF headers regression
manchoz Oct 5, 2020
c51a6ca
[EC] Missing board rename
manchoz Oct 5, 2020
513f01f
Fix Challenge/Outdoor Carrier port
manchoz Aug 3, 2020
98a5aa4
Reorder pins for subsequent analogs numbering
manchoz Sep 25, 2020
c14a776
Fix NUM_DIGITAL_PINS AND NUM_ANALOG_INPUTS
manchoz Sep 25, 2020
0f04e08
Fix I2Cs after pins renumbering
manchoz Sep 25, 2020
f2adfac
Yet another pin defines fix
manchoz Sep 29, 2020
7e838d8
Add defines for SerialMKR1 and SerialMKR2
manchoz Sep 30, 2020
e14f2f9
[OUTDOOR_CARRIER] Rebase Core and mbed-os
manchoz Oct 2, 2020
83ad653
Rename Outdoor Carrier -> Edge Control
manchoz Oct 2, 2020
f12687d
Fix FLASHIAP and SPIF headers regression
manchoz Oct 5, 2020
a10b21c
[EC] Add QSPIF support
manchoz Nov 17, 2020
db1cde0
Use YAML list for the compile-sketches sketch-paths input
per1234 Oct 5, 2020
1bd82af
Add Edge Control board to CI workflow
per1234 Oct 6, 2020
beff7ea
Add SERIAL_PORT_HARDWARE1 for Edge Control
manchoz Feb 12, 2021
bf21141
Rename SD pins and add Mbed-friendly defines
manchoz Feb 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ jobs:

env:
# sketch paths to compile (recursive) compatible with all boards
UNIVERSAL_SKETCH_PATHS: '"libraries/Scheduler"'
UNIVERSAL_SKETCH_PATHS: |
- extras/arduino-examples/examples/01.Basics/Fade
- extras/arduino-examples/examples/02.Digital/DigitalInputPullup
- extras/arduino-examples/examples/03.Analog/AnalogInput
- extras/arduino-examples/examples/04.Communication/MultiSerial

strategy:
fail-fast: false
Expand All @@ -34,18 +38,40 @@ jobs:
- fqbn: arduino:mbed:nano33ble
- fqbn: arduino:mbed:envie_m4
- fqbn: arduino:mbed:envie_m7
- fqbn: arduino:mbed:edge_control

# compile only the examples compatible with each board
include:
- board:
fqbn: arduino:mbed:nano33ble
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
additional-sketch-paths: |
- libraries/PDM
- libraries/Scheduler
- libraries/ThreadDebug
- board:
fqbn: arduino:mbed:edge_control
additional-sketch-paths: |
- libraries/ThreadDebug
- board:
fqbn: arduino:mbed:envie_m4
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_Video"'
additional-sketch-paths: |
- libraries/doom
- libraries/KernelDebug
- libraries/Portenta_SDCARD
- libraries/Portenta_Video
- libraries/Scheduler
- board:
fqbn: arduino:mbed:envie_m7
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" "libraries/ThreadDebug" "libraries/USBHOST" "libraries/WiFi"'
additional-sketch-paths: |
- libraries/doom
- libraries/KernelDebug
- libraries/Portenta_SDCARD
- libraries/Portenta_System
- libraries/Portenta_Video
- libraries/Scheduler
- libraries/ThreadDebug
- libraries/USBHOST
- libraries/WiFi

steps:
- name: Checkout repository
Expand All @@ -61,6 +87,12 @@ jobs:
- name: Install ArduinoCore-API
run: mv "$GITHUB_WORKSPACE/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"

- name: Checkout built-in examples
uses: actions/checkout@v2
with:
repository: arduino/arduino-examples
path: extras/arduino-examples

- name: Compile examples
uses: arduino/actions/libraries/compile-examples@master
with:
Expand All @@ -72,7 +104,9 @@ jobs:
# Overwrite the Board Manager installation with the local platform
- source-path: "./"
name: "arduino:mbed"
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
${{ matrix.additional-sketch-paths }}
verbose: 'false'
enable-size-deltas-report: true

Expand Down
42 changes: 42 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
##############################################################

edge_control.name=Arduino Edge Control
edge_control.build.core=arduino
edge_control.build.crossprefix=arm-none-eabi-
edge_control.build.compiler_path={runtime.tools.arm-none-eabi-gcc.path}/bin/

edge_control.build.variant=EDGE_CONTROL
edge_control.build.mcu=cortex-m4
edge_control.build.extra_flags=
edge_control.build.architecture=cortex-m4
edge_control.build.fpu=fpv4-sp-d16
edge_control.build.float-abi=softfp
edge_control.build.board=EDGE_CONTROL
edge_control.build.ldscript=linker_script.ld
edge_control.compiler.mbed.arch.define=-DARDUINO_ARCH_NRF52840
edge_control.compiler.mbed.defines={build.variant.path}/defines.txt
edge_control.compiler.mbed.ldflags={build.variant.path}/ldflags.txt
edge_control.compiler.mbed.cflags={build.variant.path}/cflags.txt
edge_control.compiler.mbed.cxxflags={build.variant.path}/cxxflags.txt
edge_control.compiler.mbed.includes={build.variant.path}/includes.txt
edge_control.compiler.mbed.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
edge_control.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"
edge_control.vid.0=0x2341
edge_control.pid.0=0x005d
edge_control.vid.1=0x2341
edge_control.pid.1=0x805d

edge_control.upload.tool=bossac
edge_control.upload.protocol=
edge_control.upload.use_1200bps_touch=true
edge_control.upload.wait_for_upload_port=true
edge_control.upload.native_usb=true
edge_control.upload.maximum_size=983040
edge_control.upload.maximum_data_size=262144

edge_control.bootloader.tool=openocd
edge_control.bootloader.extra_action.preflash=echo INFO:removed_mass-erase
edge_control.bootloader.config=-f target/nrf52.cfg
edge_control.bootloader.programmer=-f interface/cmsis-dap.cfg
edge_control.bootloader.file=EDGE_CONTROL/bootloader.hex

##############################################################

envie_m7.name=Arduino Portenta H7 (M7 core)
envie_m7.build.core=arduino
envie_m7.build.crossprefix=arm-none-eabi-
Expand Down
Binary file added bootloaders/EDGE_CONTROL/bootloader.bin
Binary file not shown.
Binary file added bootloaders/EDGE_CONTROL/bootloader.elf
Binary file not shown.
Loading