Skip to content

Commit 10a48f5

Browse files
Addition (3rd_party_board): Add board support for Autosport Labs ESP32-CAN-X2 development board (espressif#9683)
* add board support for Autosport Labs ESP32-CAN-X2 development board * change(board-support): Add board support for Autosport Labs ESP32-CAN-X2 development board * change(board-support) - remove entries that are already globally defined * change(board-support) rename board name * change(board-support) switch ASL-CAN-X2 to ASL_CAN_X2 * change(board-support) fix formatting, correct USB VID/PID to match our own product * Update variants/aslcanx2/pins_arduino.h Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com> * Update variants/aslcanx2/pins_arduino.h Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com> --------- Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
1 parent d8e1374 commit 10a48f5

File tree

3 files changed

+274
-0
lines changed

3 files changed

+274
-0
lines changed

Diff for: boards.txt

+202
Original file line numberDiff line numberDiff line change
@@ -36444,3 +36444,205 @@ weact_studio_esp32c3.menu.EraseFlash.all=Enabled
3644436444
weact_studio_esp32c3.menu.EraseFlash.all.upload.erase_cmd=-e
3644536445

3644636446
##############################################################
36447+
36448+
aslcanx2.name=AutosportLabs ESP-CAN-X2
36449+
aslcanx2.vid.0=0x303a
36450+
aslcanx2.pid.0=0x1001
36451+
36452+
aslcanx2.bootloader.tool=esptool_py
36453+
aslcanx2.bootloader.tool.default=esptool_py
36454+
36455+
aslcanx2.upload.tool=esptool_py
36456+
aslcanx2.upload.tool.default=esptool_py
36457+
aslcanx2.upload.tool.network=esp_ota
36458+
36459+
aslcanx2.upload.maximum_size=1310720
36460+
aslcanx2.upload.maximum_data_size=327680
36461+
aslcanx2.upload.flags=
36462+
aslcanx2.upload.extra_flags=
36463+
aslcanx2.upload.use_1200bps_touch=false
36464+
aslcanx2.upload.wait_for_upload_port=false
36465+
36466+
aslcanx2.serial.disableDTR=false
36467+
aslcanx2.serial.disableRTS=false
36468+
36469+
aslcanx2.build.tarch=xtensa
36470+
aslcanx2.build.bootloader_addr=0x0
36471+
aslcanx2.build.target=esp32s3
36472+
aslcanx2.build.mcu=esp32s3
36473+
aslcanx2.build.core=esp32
36474+
aslcanx2.build.variant=aslcanx2
36475+
aslcanx2.build.board=ASL_CAN_X2
36476+
36477+
aslcanx2.build.usb_mode=1
36478+
aslcanx2.build.cdc_on_boot=0
36479+
aslcanx2.build.msc_on_boot=0
36480+
aslcanx2.build.dfu_on_boot=0
36481+
aslcanx2.build.f_cpu=240000000L
36482+
aslcanx2.build.flash_size=8MB
36483+
aslcanx2.build.flash_freq=80m
36484+
aslcanx2.build.flash_mode=dio
36485+
aslcanx2.build.boot=qio
36486+
aslcanx2.build.boot_freq=80m
36487+
aslcanx2.build.partitions=default_8MB
36488+
aslcanx2.build.defines=
36489+
aslcanx2.build.loop_core=
36490+
aslcanx2.build.event_core=
36491+
aslcanx2.build.psram_type=qspi
36492+
aslcanx2.build.memory_type={build.boot}_{build.psram_type}
36493+
36494+
## IDE 2.0 Seems to not update the value
36495+
aslcanx2.menu.JTAGAdapter.default=Disabled
36496+
aslcanx2.menu.JTAGAdapter.default.build.copy_jtag_files=0
36497+
aslcanx2.menu.JTAGAdapter.builtin=Integrated USB JTAG
36498+
aslcanx2.menu.JTAGAdapter.builtin.build.openocdscript=esp32s3-builtin.cfg
36499+
aslcanx2.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
36500+
aslcanx2.menu.JTAGAdapter.external=FTDI Adapter
36501+
aslcanx2.menu.JTAGAdapter.external.build.openocdscript=esp32s3-ftdi.cfg
36502+
aslcanx2.menu.JTAGAdapter.external.build.copy_jtag_files=1
36503+
aslcanx2.menu.JTAGAdapter.bridge=ESP USB Bridge
36504+
aslcanx2.menu.JTAGAdapter.bridge.build.openocdscript=esp32s3-bridge.cfg
36505+
aslcanx2.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
36506+
36507+
aslcanx2.menu.PSRAM.disabled=Disabled
36508+
aslcanx2.menu.PSRAM.disabled.build.defines=
36509+
aslcanx2.menu.PSRAM.disabled.build.psram_type=qspi
36510+
aslcanx2.menu.PSRAM.opi=OPI PSRAM
36511+
aslcanx2.menu.PSRAM.opi.build.defines=-DBOARD_HAS_PSRAM
36512+
aslcanx2.menu.PSRAM.opi.build.psram_type=opi
36513+
36514+
aslcanx2.menu.FlashMode.qio=QIO 80MHz
36515+
aslcanx2.menu.FlashMode.qio.build.flash_mode=dio
36516+
aslcanx2.menu.FlashMode.qio.build.boot=qio
36517+
aslcanx2.menu.FlashMode.qio.build.boot_freq=80m
36518+
aslcanx2.menu.FlashMode.qio.build.flash_freq=80m
36519+
aslcanx2.menu.FlashMode.qio120=QIO 120MHz
36520+
aslcanx2.menu.FlashMode.qio120.build.flash_mode=dio
36521+
aslcanx2.menu.FlashMode.qio120.build.boot=qio
36522+
aslcanx2.menu.FlashMode.qio120.build.boot_freq=120m
36523+
aslcanx2.menu.FlashMode.qio120.build.flash_freq=80m
36524+
aslcanx2.menu.FlashMode.dio=DIO 80MHz
36525+
aslcanx2.menu.FlashMode.dio.build.flash_mode=dio
36526+
aslcanx2.menu.FlashMode.dio.build.boot=dio
36527+
aslcanx2.menu.FlashMode.dio.build.boot_freq=80m
36528+
aslcanx2.menu.FlashMode.dio.build.flash_freq=80m
36529+
aslcanx2.menu.FlashMode.opi=OPI 80MHz
36530+
aslcanx2.menu.FlashMode.opi.build.flash_mode=dout
36531+
aslcanx2.menu.FlashMode.opi.build.boot=opi
36532+
aslcanx2.menu.FlashMode.opi.build.boot_freq=80m
36533+
aslcanx2.menu.FlashMode.opi.build.flash_freq=80m
36534+
36535+
aslcanx2.menu.LoopCore.1=Core 1
36536+
aslcanx2.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
36537+
aslcanx2.menu.LoopCore.0=Core 0
36538+
aslcanx2.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
36539+
36540+
aslcanx2.menu.EventsCore.1=Core 1
36541+
aslcanx2.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
36542+
aslcanx2.menu.EventsCore.0=Core 0
36543+
aslcanx2.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
36544+
36545+
aslcanx2.menu.USBMode.hwcdc=Hardware CDC and JTAG
36546+
aslcanx2.menu.USBMode.hwcdc.build.usb_mode=1
36547+
aslcanx2.menu.USBMode.default=USB-OTG (TinyUSB)
36548+
aslcanx2.menu.USBMode.default.build.usb_mode=0
36549+
36550+
aslcanx2.menu.CDCOnBoot.default=Enabled
36551+
aslcanx2.menu.CDCOnBoot.default.build.cdc_on_boot=1
36552+
aslcanx2.menu.CDCOnBoot.cdc=Disabled
36553+
aslcanx2.menu.CDCOnBoot.cdc.build.cdc_on_boot=0
36554+
36555+
aslcanx2.menu.MSCOnBoot.default=Disabled
36556+
aslcanx2.menu.MSCOnBoot.default.build.msc_on_boot=0
36557+
aslcanx2.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
36558+
aslcanx2.menu.MSCOnBoot.msc.build.msc_on_boot=1
36559+
36560+
aslcanx2.menu.DFUOnBoot.default=Disabled
36561+
aslcanx2.menu.DFUOnBoot.default.build.dfu_on_boot=0
36562+
aslcanx2.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
36563+
aslcanx2.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
36564+
36565+
aslcanx2.menu.UploadMode.default=UART0 / Hardware CDC
36566+
aslcanx2.menu.UploadMode.default.upload.use_1200bps_touch=false
36567+
aslcanx2.menu.UploadMode.default.upload.wait_for_upload_port=false
36568+
aslcanx2.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
36569+
aslcanx2.menu.UploadMode.cdc.upload.use_1200bps_touch=true
36570+
aslcanx2.menu.UploadMode.cdc.upload.wait_for_upload_port=true
36571+
36572+
aslcanx2.menu.PartitionScheme.default=Default with spiffs (3MB APP/1.5MB SPIFFS)
36573+
aslcanx2.menu.PartitionScheme.default.build.partitions=default_8MB
36574+
aslcanx2.menu.PartitionScheme.default.upload.maximum_size=3342336
36575+
aslcanx2.menu.PartitionScheme.defaultffat=Default with ffat (3MB APP/1.5MB FATFS)
36576+
aslcanx2.menu.PartitionScheme.defaultffat.build.partitions=default_8MB_ffat
36577+
aslcanx2.menu.PartitionScheme.defaultffat.upload.maximum_size=3342336
36578+
aslcanx2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
36579+
aslcanx2.menu.PartitionScheme.minimal.build.partitions=minimal
36580+
aslcanx2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
36581+
aslcanx2.menu.PartitionScheme.no_ota.build.partitions=no_ota
36582+
aslcanx2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
36583+
aslcanx2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
36584+
aslcanx2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
36585+
aslcanx2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
36586+
aslcanx2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
36587+
aslcanx2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
36588+
aslcanx2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
36589+
aslcanx2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
36590+
aslcanx2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
36591+
aslcanx2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
36592+
aslcanx2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
36593+
aslcanx2.menu.PartitionScheme.huge_app.build.partitions=huge_app
36594+
aslcanx2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
36595+
aslcanx2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
36596+
aslcanx2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
36597+
aslcanx2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
36598+
aslcanx2.menu.PartitionScheme.rainmaker=RainMaker
36599+
aslcanx2.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
36600+
aslcanx2.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
36601+
36602+
aslcanx2.menu.CPUFreq.240=240MHz (WiFi)
36603+
aslcanx2.menu.CPUFreq.240.build.f_cpu=240000000L
36604+
aslcanx2.menu.CPUFreq.160=160MHz (WiFi)
36605+
aslcanx2.menu.CPUFreq.160.build.f_cpu=160000000L
36606+
aslcanx2.menu.CPUFreq.80=80MHz (WiFi)
36607+
aslcanx2.menu.CPUFreq.80.build.f_cpu=80000000L
36608+
aslcanx2.menu.CPUFreq.40=40MHz
36609+
aslcanx2.menu.CPUFreq.40.build.f_cpu=40000000L
36610+
aslcanx2.menu.CPUFreq.20=20MHz
36611+
aslcanx2.menu.CPUFreq.20.build.f_cpu=20000000L
36612+
aslcanx2.menu.CPUFreq.10=10MHz
36613+
aslcanx2.menu.CPUFreq.10.build.f_cpu=10000000L
36614+
36615+
aslcanx2.menu.UploadSpeed.921600=921600
36616+
aslcanx2.menu.UploadSpeed.921600.upload.speed=921600
36617+
aslcanx2.menu.UploadSpeed.115200=115200
36618+
aslcanx2.menu.UploadSpeed.115200.upload.speed=115200
36619+
aslcanx2.menu.UploadSpeed.256000.windows=256000
36620+
aslcanx2.menu.UploadSpeed.256000.upload.speed=256000
36621+
aslcanx2.menu.UploadSpeed.230400.windows.upload.speed=256000
36622+
aslcanx2.menu.UploadSpeed.230400=230400
36623+
aslcanx2.menu.UploadSpeed.230400.upload.speed=230400
36624+
aslcanx2.menu.UploadSpeed.460800.linux=460800
36625+
aslcanx2.menu.UploadSpeed.460800.macosx=460800
36626+
aslcanx2.menu.UploadSpeed.460800.upload.speed=460800
36627+
aslcanx2.menu.UploadSpeed.512000.windows=512000
36628+
aslcanx2.menu.UploadSpeed.512000.upload.speed=512000
36629+
36630+
aslcanx2.menu.DebugLevel.none=None
36631+
aslcanx2.menu.DebugLevel.none.build.code_debug=0
36632+
aslcanx2.menu.DebugLevel.error=Error
36633+
aslcanx2.menu.DebugLevel.error.build.code_debug=1
36634+
aslcanx2.menu.DebugLevel.warn=Warn
36635+
aslcanx2.menu.DebugLevel.warn.build.code_debug=2
36636+
aslcanx2.menu.DebugLevel.info=Info
36637+
aslcanx2.menu.DebugLevel.info.build.code_debug=3
36638+
aslcanx2.menu.DebugLevel.debug=Debug
36639+
aslcanx2.menu.DebugLevel.debug.build.code_debug=4
36640+
aslcanx2.menu.DebugLevel.verbose=Verbose
36641+
aslcanx2.menu.DebugLevel.verbose.build.code_debug=5
36642+
36643+
aslcanx2.menu.EraseFlash.none=Disabled
36644+
aslcanx2.menu.EraseFlash.none.upload.erase_cmd=
36645+
aslcanx2.menu.EraseFlash.all=Enabled
36646+
aslcanx2.menu.EraseFlash.all.upload.erase_cmd=-e
36647+
36648+
##############################################################

Diff for: variants/aslcanx2/default_8MB_ffat.csv

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Name, Type, SubType, Offset, Size, Flags
2+
nvs, data, nvs, 0x9000, 0x5000,
3+
otadata, data, ota, 0xe000, 0x2000,
4+
app0, app, ota_0, 0x10000, 0x330000,
5+
app1, app, ota_1, 0x340000,0x330000,
6+
ffat, data, fat, 0x670000,0x180000,
7+
coredump, data, coredump,0x7F0000,0x10000,

Diff for: variants/aslcanx2/pins_arduino.h

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
#define USB_VID 0x16D0
8+
#define USB_PID 0x07F2
9+
10+
static const uint8_t LED_BUILTIN = 2;
11+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
12+
#define LED_BUILTIN LED_BUILTIN
13+
14+
static const uint8_t CAN1_RX = 6;
15+
static const uint8_t CAN1_TX = 7;
16+
17+
static const uint8_t SS = -1;
18+
static const uint8_t CS = 10;
19+
static const uint8_t MOSI = 11;
20+
static const uint8_t MISO = 13;
21+
static const uint8_t SCK = 12;
22+
23+
static const uint8_t TX = 43;
24+
static const uint8_t RX = 44;
25+
26+
static const uint8_t SDA = 8;
27+
static const uint8_t SCL = 9;
28+
29+
static const uint8_t A0 = 1;
30+
static const uint8_t A1 = 2;
31+
static const uint8_t A2 = 3;
32+
static const uint8_t A3 = 4;
33+
static const uint8_t A4 = 5;
34+
static const uint8_t A5 = 6;
35+
static const uint8_t A6 = 7;
36+
static const uint8_t A7 = 8;
37+
static const uint8_t A8 = 9;
38+
static const uint8_t A9 = 10;
39+
static const uint8_t A10 = 11;
40+
static const uint8_t A11 = 12;
41+
static const uint8_t A12 = 13;
42+
static const uint8_t A13 = 14;
43+
static const uint8_t A14 = 15;
44+
static const uint8_t A15 = 16;
45+
static const uint8_t A16 = 17;
46+
static const uint8_t A17 = 18;
47+
static const uint8_t A18 = 19;
48+
static const uint8_t A19 = 20;
49+
50+
static const uint8_t T1 = 1;
51+
static const uint8_t T2 = 2;
52+
static const uint8_t T3 = 3;
53+
static const uint8_t T4 = 4;
54+
static const uint8_t T5 = 5;
55+
static const uint8_t T6 = 6;
56+
static const uint8_t T7 = 7;
57+
static const uint8_t T8 = 8;
58+
static const uint8_t T9 = 9;
59+
static const uint8_t T10 = 10;
60+
static const uint8_t T11 = 11;
61+
static const uint8_t T12 = 12;
62+
static const uint8_t T13 = 13;
63+
static const uint8_t T14 = 14;
64+
65+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)