Skip to content

Commit c8fe41d

Browse files
committed
Add support for Quectel M56 2G GSM Module
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 8d00360 commit c8fe41d

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

boards.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,39 @@ quectelmc20.upload.maximum_ram_size=96256
140140
quectelmc20.upload.speed=460800
141141
quectelmc20.upload.require_upload_port=true
142142
quectelmc20.upload.wait_for_upload_port=true
143+
144+
# Quectel M56
145+
quectelm56.name=Quectel M56
146+
147+
# build
148+
quectelm56.build.core=siwigsm
149+
quectelm56.build.cpu=arm9ejs
150+
quectelm56.build.f_cpu=260000000
151+
quectelm56.build.board=QUECTEL_M56TEA
152+
quectelm56.build.mcu=mt6261
153+
quectelm56.build.variant=s20u
154+
quectelm56.build.extra_flags=-DPLATFORM_M56=1
155+
quectelm56.build.ldscript=linkerscript.ld
156+
quectelm56.menu.debug.Release=Release
157+
quectelm56.menu.debug.Release.build.build_type=
158+
quectelm56.menu.debug.Debug=Debug
159+
quectelm56.menu.debug.Debug.build.build_type=_debug
160+
quectelm56.menu.stdio.ttys0=Uart0 (/dev/ttyS0)
161+
quectelm56.menu.stdio.ttys0.build.stdio_port=/dev/ttyS0
162+
quectelm56.menu.stdio.ttys1=Uart1 (/dev/ttyS1)
163+
quectelm56.menu.stdio.ttys1.build.stdio_port=/dev/ttyS1
164+
quectelm56.menu.stdio.ttys2=Uart2 (/dev/ttyS2)
165+
quectelm56.menu.stdio.ttys2.build.stdio_port=/dev/ttyS2
166+
quectelm56.menu.stdio.ttyusb=USB Uart (/dev/ttyUSB0)
167+
quectelm56.menu.stdio.ttyusb.build.stdio_port=/dev/ttyUSB0
168+
169+
# upload
170+
quectelm56.bootloader.tool=siwiflasher
171+
quectelm56.upload.tool=siwiflasher
172+
quectelm56.upload.protocol=siwiflasher
173+
quectelm56.upload.maximum_size=262144
174+
quectelm56.upload.maximum_ram_size=96256
175+
quectelm56.upload.speed=460800
176+
quectelm56.upload.require_upload_port=true
177+
quectelm56.upload.wait_for_upload_port=true
178+

cores/siwigsm/HardwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
HardwareSerial Serial(UART0);
1616
HardwareSerial Serial1(UART1);
1717
HardwareSerial Serial2(UART2);
18-
#if defined(PLATFORM_S20U)
18+
#if defined(PLATFORM_S20U) || defined(PLATFORM_M56)
1919
HardwareSerial USBSerial(USBUART);
2020
#endif
2121
HardwareSerial BTSerial(BTSPPHOST);

0 commit comments

Comments
 (0)