Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
9cc68ad
Update local build and debug configuration
xaelsouth Nov 15, 2026
ea082c6
Update SVD archive
xaelsouth Nov 15, 2026
0d4d9e7
Add W5500 SPI Ethernet driver
xaelsouth Nov 15, 2026
02b1c0f
Add WIZnet ioLibrary bindings
xaelsouth Nov 15, 2026
c38656f
Add Mbed TLS bindings
xaelsouth Nov 15, 2026
d579252
Add Anjay and AVS Commons bindings
xaelsouth Nov 15, 2026
c84b33c
Add initial TI CC13x0 platform and board support
xaelsouth Nov 15, 2026
036c562
Add TI example RT-CC1310-LAUNCHPAD
xaelsouth Nov 15, 2026
c55003e
Add STM32 Nucleo F091RC board support
xaelsouth Nov 15, 2026
35e4815
Add STM32 Nucleo L053R8 board support
xaelsouth Nov 15, 2026
d306035
Add STM32 Nucleo L476RG_MIKROE_CLICK board support
xaelsouth Nov 15, 2026
4c6c2e5
Add STM32 example RT-STM32F091RC-NUCLEO64
xaelsouth Nov 15, 2026
41024ac
Add STM32 example RT-STM32L053R8-NUCLEO64
xaelsouth Nov 15, 2026
9a1c942
Add STM32 example RT-STM32L476RG-NUCLEO64-W5500-LWIP-ANJAY-MBEDTLS
xaelsouth Nov 15, 2026
6cd0987
Add STM32 example RT-STM32L476RG-NUCLEO64-W5500-WIZNETIOLIBRARY-ANJAY…
xaelsouth Nov 15, 2026
3af2db9
Add Silicon Labs Gecko SDK submodule
xaelsouth Nov 15, 2026
b177a41
Add Silicon Labs EFR32 platform, drivers and board support
xaelsouth Nov 15, 2026
1f81b3c
Add Silicon Labs example RT-EFR32FG14P-SLWSTK6061B
xaelsouth Nov 15, 2026
91ac95d
Add Silicon Labs example RT-EFR32FG23A010F256-BRD4001A-REVA01
xaelsouth Nov 15, 2026
1476d8a
Add Silicon Labs example RT-EFR32FG23B010F512-DK2600A
xaelsouth Nov 15, 2026
c026b80
Add Silicon Labs test example BURTC_BURAM
xaelsouth Nov 15, 2026
a7b8c0c
Add Silicon Labs test example DMA
xaelsouth Nov 15, 2026
08bd83b
Add Silicon Labs test example GPIO
xaelsouth Nov 15, 2026
c15a2d7
Add Silicon Labs test example RAILLIB
xaelsouth Nov 15, 2026
4d6dee4
Add Silicon Labs test example TEMPLATE
xaelsouth Nov 15, 2026
223680b
Add Silicon Labs test example UART-SIO
xaelsouth Nov 15, 2026
bbc3bd4
Add Silicon Labs test example UART-SIO-SLOW
xaelsouth Nov 15, 2026
a154197
segger_bindings RTT: implement stream read/get from the down buffer
xaelsouth Nov 20, 2026
ddf44ab
tools: add Ozone RTOS-awareness plugin for ChibiOS/RT 21.11 (kernel 7…
xaelsouth Nov 20, 2026
f25564f
tools: fix ChibiOS Ozone plugin thread priority read
xaelsouth Nov 20, 2026
81d4d45
os/various/swo_trace: new SWO/ITM trace stream module
xaelsouth Nov 21, 2026
24fed8d
demos/STM32/RT-STM32L476RG-NUCLEO64-W5500-LWIP-ANJAY-MBEDTLS: refresh…
xaelsouth Nov 21, 2026
724b67e
SILABS EFR32FG23: fix 14 bugs found in code review
xaelsouth Nov 21, 2026
f67058c
Add i.MX23 (ARM926EJ-S) HAL port, boards and hello demo
xaelsouth Nov 21, 2026
095c901
SILABS EFR32FG23: RTC fixes, full DMA, PWM, GPT, I2C, SPI drivers
xaelsouth Nov 21, 2026
24a73ab
IMX23: APBH/APBX DMA engine + SSP SPI (PIO) driver
xaelsouth Nov 21, 2026
68ad612
SILABS EFR32FG23: add SYSRTC low-level driver (timer + alarm + capture)
xaelsouth Nov 21, 2026
7e911cd
IMX23: working I2C0 PIO master LLD, AUART SIO drivers, per-board buil…
xaelsouth Nov 21, 2026
c7940bd
Remove accidentally committed editor/test artifacts
xaelsouth Nov 21, 2026
1d36d19
IMX23: PWM LLD (5 channels, 24MHz CLK_PWM24M) for LCD backlight
xaelsouth Nov 21, 2026
e1a8558
SILABS EFR32FG23: implement ADC (IADC), DAC (VDAC), UART drivers
xaelsouth Nov 21, 2026
1410304
IMX23: CPU clock/VDDD scaler + xshell demo with timestamped log
xaelsouth Nov 21, 2026
5ac94ac
IMX23: LCDIF framebuffer driver (dotclock master, 24-bit RGB, XRGB8888)
xaelsouth Nov 21, 2026
742f2c0
IMX23: PXP mem2mem blit/CSC driver (ported from Linux imx23-pxp.c)
xaelsouth Nov 21, 2026
9c5cec9
SILABS EFR32FG23: fix IRQ handler names to use ChibiOS VectorXX symbols
xaelsouth Nov 21, 2026
cf5d50c
IMX23: mxs-builtin audio DAC playback driver + 'tone' shell command
xaelsouth Nov 21, 2026
3bb6251
SILABS EFR32FG23: add missing ADCv1 to platform.mk, smart-build for S…
xaelsouth Nov 21, 2026
5f66fad
IMX23: ENC28J60 SPI Ethernet MAC LLD + demo wiring on EVK (SSP0)
xaelsouth Nov 21, 2026
9164e44
IMX23: port README (layout, build, shell commands, NAND/LittleFS notes)
xaelsouth Nov 21, 2026
e45a988
Add ENC28J60 LLD sources (were untracked)
xaelsouth Nov 21, 2026
11c9dcd
IMX23: relicense files added on the imx23 branch to Xael South
xaelsouth Nov 21, 2026
43d2738
Add Apache 2.0 license headers (Xael South) to all imx23-branch files…
xaelsouth Nov 21, 2026
c8c342d
ENC28J60: use the RESET gpio line and the INT gpio line
xaelsouth Nov 21, 2026
ae2c357
IMX23 audio: DMA-before-RUN ordering per Linux mxs driver
xaelsouth Nov 21, 2026
8860c99
ENC28J60: SPI soft-reset only when no GPIO reset line is configured
xaelsouth Nov 21, 2026
138196e
IMX23: IRQ-driven PAL line events + MAC events for all SPI ethernets
xaelsouth Nov 21, 2026
d14a6d1
ENC28J60: rename enc28j60_hw.h to enc28j60_lld.h, move driver state i…
xaelsouth Nov 21, 2026
09c2dda
SILABS EFR32FG23: SERIAL driver, LESENSE, CRC, IrDA/M-Bus, low-power …
xaelsouth Nov 21, 2026
b822471
SILABS EFR32FG23: IrDA presets for 2400 and 9600 baud, runtime baud s…
xaelsouth Nov 21, 2026
391f0e9
IMX23: GPMI+BCH NAND driver (devices_lib/nand) + LittleFS over MTD-st…
xaelsouth Nov 21, 2026
9e19140
SILABS EFR32FG23: ICU, COMP (ACMP), QEI (PCNT) drivers
xaelsouth Nov 21, 2026
cfaf4fa
Add TLSF constant-time allocator (ext/tlsf + tlsf_bindings) and use i…
xaelsouth Nov 21, 2026
7c550a1
SILABS EFR32FG23: IrDA support for all EUSART drivers (SIO, UART, SER…
xaelsouth Nov 21, 2026
8fef553
IMX23: USB device low-level driver for the ci13xxx OTG controller
xaelsouth Nov 21, 2026
c95fb46
Add USB RNDIS gadget class (devices_lib/usb_net)
xaelsouth Nov 21, 2026
be11585
Add DMA support to SPIv1 and I2Cv1, fix IRQ dispatch and build issues
xaelsouth Nov 21, 2026
b9cdbfe
lwIP over USB RNDIS on i.MX23: netif glue, lwipopts, 750kHz ST
xaelsouth Nov 21, 2026
8d0c61c
LESENSEv1: add DMA support for result FIFO draining
xaelsouth Nov 21, 2026
b7fa28a
Add telnetd (xshell over TCP/23) and TFTP server over LittleFS
xaelsouth Nov 21, 2026
b1623af
Add RAILv1 glue driver: emlib shims + radio IRQ wrappers
xaelsouth Nov 21, 2026
65f318c
Fix USART SYNCBUSY in SERIAL driver (FG23 has no SYNCBUSY register)
xaelsouth Nov 21, 2026
af303e8
SERIAL/UART ISRs: drain/fill hardware FIFO in loops instead of 1 byte…
xaelsouth Nov 21, 2026
0644167
Add LCDv1 segment controller driver with DMA support
xaelsouth Nov 21, 2026
757ea01
HTTPS server with firmware-upload UI on altcp_tls + mbedTLS (net_serv…
xaelsouth Nov 21, 2026
96abcd9
RAILv1: add EMU_DCDCSetPFMXTimeoutMaxCtrl shim for RAIL library
xaelsouth Nov 21, 2026
4bcb2dc
Add i.MX23 DCP hardware crypto driver (imx23_dcp)
xaelsouth Nov 21, 2026
aa344cc
Consolidate emlib/raillib glue into shared ChibiOS-Contrib modules
xaelsouth Nov 21, 2026
888b456
Add crc16iec870ft3 to os/various, consolidate emlib/raillib glue
xaelsouth Nov 21, 2026
dea2f8d
Restore full emlib.mk source list, add self-guarded raillib_chibios.c
xaelsouth Nov 21, 2026
f3b4fee
lwIP shell commands (ifconfig/dhcpc/ping/arp/ntp/slip) + SLIP & PPP e…
xaelsouth Nov 21, 2026
bdfe177
Remove testhal/SILABS/EFR32FG23x0xx and emlib_binding
xaelsouth Nov 21, 2026
6ba5c93
Fix SYSTICKv3 readme for FG23, remove SYSTICKv1 from FG14P platform.mk
xaelsouth Nov 21, 2026
a027ca0
Remove orphaned SILABS LLD/common/SYSTICKv1
xaelsouth Nov 21, 2026
22f622c
Add LETIMERv1 (GPT on LETIMER0) and SYSTICKv2 (SYSRTC-based ST) for FG23
xaelsouth Nov 21, 2026
2c7f21f
SILABS FG23: BURTC as RTC calendar (BURAM-backed) + SYSRTC0 as system…
xaelsouth Nov 21, 2026
779c331
Add LVGL v9.6.0 (ext/lvgl) + i.MX23 LCDIF/PXP LVGL port layer
xaelsouth Nov 21, 2026
b5f1e3f
Merge standalone CRC algorithms into crcsw.c with ready-made configs
xaelsouth Nov 21, 2026
c797a24
Drop crc16ccitt.h / crc16iec870ft3.h wrappers and one-shot inlines
xaelsouth Nov 21, 2026
d918c48
i.MX23 ROM NAND boot writer (kobs-ng v0 port): NCB/LDLB/DBBT + SB image
xaelsouth Nov 21, 2026
d671285
httpsd: re-encrypt uploaded firmware with DCP (zero key -> device-uni…
xaelsouth Nov 21, 2026
626d833
Add AESv1 crypto LLD for EFR32FG23 (RADIOAES, raw-register, polled)
xaelsouth Nov 21, 2026
3e0b25f
i.MX23 LRADC driver + LVGL touch indev on the EVK 4.3in LCD
xaelsouth Nov 21, 2026
b072f10
romboot: dual boot slots + bootslot switch (NAND side of slot-swap)
xaelsouth Nov 21, 2026
c83b946
Add generic matrix keypad device driver (devices_lib/keypad)
xaelsouth Nov 21, 2026
abcab0f
AESv1: dual completion mode (busy-poll default, IRQ+semaphore for bulk)
xaelsouth Nov 21, 2026
cd4a1e9
Demo: 'exec <lfs path> <loadaddr> [entry_off]' shell command
xaelsouth Nov 21, 2026
5b03860
Add testhal/SILABS/EFR32FG23x0xx suite (14 tests); fix TIMERv1/LETIME…
xaelsouth Nov 21, 2026
f4da83c
exec: run the loaded payload on a dedicated 16KB thread stack
xaelsouth Nov 22, 2026
b2bf013
SILABS EFR32FG23: add clock management (HAL_LLD_USE_CLOCK_MANAGEMENT)…
xaelsouth Nov 22, 2026
ba8c637
Move SILABS xshell clock cmds and lwIP net_shell to os/various/cli
xaelsouth Nov 22, 2026
d13f3a1
cli: make clock_cmds and net_shell usable with both shell and xshell
xaelsouth Nov 22, 2026
7bc98c6
cli: runtime command-table merging (augment existing app tables)
xaelsouth Nov 22, 2026
f48b8a9
Restore SYSTICKv1 (ARM core SysTick) as optional driver at LLD/SYSTIC…
xaelsouth Nov 22, 2026
b6b40b1
testhal: add SYSTICKv1 test (core SysTick, FREERUNNING + PERIODIC)
xaelsouth Nov 22, 2026
6e24921
demo/IMX23: wire LittleFS binding to the generic nand_lfs_bd_t ops
xaelsouth Nov 22, 2026
e47e41a
demo/IMX23: move the i.MX23 LVGL port layer into the demo
xaelsouth Nov 22, 2026
5dcdc78
SILABS FG23: wire LDMA into SIO (TX) and SPI (TX/RX) LLD drivers
xaelsouth Nov 22, 2026
6df11c8
demo/IMX23: move dirent.h stub and mbedtls_platform.c into mbedtls/
xaelsouth Nov 22, 2026
2b9c38e
demo/IMX23: rename lvgl_imx23/ port layer dir to lvgl/
xaelsouth Nov 22, 2026
b16f82e
demo/IMX23: move chconf/halconf/mcuconf/lwipopts into cfg/
xaelsouth Nov 22, 2026
9db6adb
ext: convert lvgl from vendored tree to gecko-style submodule
xaelsouth Nov 22, 2026
6d1fe44
demo/IMX23: make the elftosb bootstream rule usable
xaelsouth Nov 22, 2026
bbf89e6
usb_net_lwip: derive the RNDIS netif hostname from the board name
xaelsouth Nov 22, 2026
945185d
lvgl: move the i.MX23-specific RGB565/PXP note out of the shared lv_c…
xaelsouth Nov 22, 2026
e87b9d1
net_services/httpsd: plain file upload; move DCP repack to demo 'sbtool'
xaelsouth Nov 22, 2026
62f1262
boards: rename IMX23_OLIMEX_IMX233 -> IMX233_OLINUXINO_MINI
xaelsouth Nov 22, 2026
3c377ef
imx23 SIO LLD: default framecfg 0 to 8N1+FIFO, drop net_shell #if hack
xaelsouth Nov 22, 2026
f83e524
lvgl_bindings/lv_conf.h: drop the i.MX23 mention from the generic com…
xaelsouth Nov 22, 2026
eecfe4f
devices_lib/crypto: move the DCP driver out of the i.MX23 port as mxs…
xaelsouth Nov 22, 2026
cbb0116
Add SILABS BRD2600A (EFR32FG23B010F512) board and standard RT demo
xaelsouth Nov 22, 2026
2d41031
devices_lib/display: move LCDIF+PXP out of the i.MX23 port as mxs_lcd…
xaelsouth Nov 22, 2026
3b2852f
devices_lib/audio: move audioout (DAC playback) out of the port as mx…
xaelsouth Nov 22, 2026
b166349
demo/IMX23: fix stale 'xshell' wording -> shell
xaelsouth Nov 22, 2026
db03ed9
demo/IMX23: move httpsd (HTTPS upload server) into the demo's net/ dir
xaelsouth Nov 22, 2026
d28d220
demo/IMX23: move all network services (telnetd/tftpd_lfs/httpsd/sio_s…
xaelsouth Nov 22, 2026
026cc93
demo/IMX23: add RT-IMX23-BOOTLOADER, a failsafe NAND bootloader
xaelsouth Nov 22, 2026
3a1d3eb
SILABS EFR32FG23: fix ADC/COMP/CRC/DAC/LESENSE/LETIMER/SYSTICKv2 LLDs…
xaelsouth Nov 22, 2026
0bcce86
demos/SILABS: rename RT-EFR32FG23A010F256-BRD4001A-REVA01 -> -BRD4001…
xaelsouth Nov 22, 2026
f21eef0
SILABS LESENSEv1: wait SYNCBUSY after EN_SET and before CMD writes
xaelsouth Nov 22, 2026
a2728be
SILABS: add testhal LCD test (LCDv1), wait EN_DISABLING in lcd_lld_stop
xaelsouth Nov 22, 2026
db6ee3f
SILABS EFR32FG23: add TEMPv1/KEYSCANv1/PRSv1 LLDs + testhal tests; LC…
xaelsouth Nov 23, 2026
fe216d3
SILABS TEMPv1: add quadratic correction curve (a*T^2+b*T+c)
xaelsouth Nov 23, 2026
fca8496
SILABS TEMPv1: evaluate correction in Horner schema
xaelsouth Nov 23, 2026
07d3259
SILABS TEMPv1: arbitrary-degree correction polynomial in Horner schema
xaelsouth Nov 23, 2026
94ef1e9
Add generic hal_temperature driver (upper layer) + TEMPv1 as its LLD
xaelsouth Nov 23, 2026
05bf6b3
SILABS TEMPv1: support multiple TEMPERATUREDriver objects
xaelsouth Nov 23, 2026
381241a
SILABS: add generic hal_prs crossbar driver (HAL_USE_PRS), PRSv1 LLD …
xaelsouth Nov 23, 2026
256c951
Rename generic PRS driver to SIGROUTE (PRS is a SiLabs trademark)
xaelsouth Nov 23, 2026
5153b78
(no commit message)
xaelsouth Nov 23, 2026
d34529e
SILABS FG23: add PULSECAP testhal (PRS->PCNT, BURTC window, LDMA->rin…
xaelsouth Nov 23, 2026
1305bc5
PULSECAP: PCNT overflow must not trigger DMA
xaelsouth Nov 23, 2026
5a08893
SILABS FG23: compile-time checks for EM23 vscale vs HFRCOEM23 and fla…
xaelsouth Nov 23, 2026
40c80bc
SILABS FG23: factor flash wait-state programming into efr32_set_flash…
xaelsouth Nov 23, 2026
75bbb77
SILABS FG23 port: document the mcuconf.h update rule
xaelsouth Nov 23, 2026
dc64b59
SILABS: fix the 2 remaining broken demos — audit now 35/35
xaelsouth Nov 23, 2026
12d7a11
SILABS FG23: auto-derive VSCALE from HCLK (with #ifndef override), EF…
xaelsouth Nov 23, 2026
1a325dc
SILABS EFLv1: hold VSCALE2 across program and erase, not only init
xaelsouth Nov 23, 2026
77f5d9d
SILABS EFLv1: drop the VSCALE2 wrap from efl_lld_init
xaelsouth Nov 23, 2026
e1c12bf
SILABS EFLv1: return the descriptor directly instead of a static copy
xaelsouth Nov 23, 2026
c826126
SILABS FG23: fix registry (LETIM1 is 24-bit, add missing HAS_* macros…
xaelsouth Nov 23, 2026
1d30091
testhal/SILABS: add SYSTICKv3 test (default LETIMER0 tick)
xaelsouth Nov 23, 2026
2e201aa
SILABS FG23: add SYSTICKv4 (BURTC as system tick, modeled on SYSTICKv2)
xaelsouth Nov 23, 2026
19d6e02
SILABS EFR32FG23: clock consumer registry, EM2 gate and em2 shell com…
xaelsouth Nov 23, 2026
01b45de
SILABS SIO LLD: document why RX stays FIFO/interrupt driven with EFR3…
xaelsouth Nov 23, 2026
0c57a97
SILABS: complete the efr32_registry.h capability lists for FG23 and F…
xaelsouth Nov 23, 2026
e4888d5
cli: rename the em2 command/hooks to generic lowpower
xaelsouth Nov 23, 2026
50f2f59
SILABS FG23: move EM2 entry into hal_lld.c, make cli lowpower hooks a…
xaelsouth Nov 23, 2026
ccec214
SILABS FG23 boards: document why board.c carries pal_default_config
xaelsouth Nov 23, 2026
0cd4b47
SILABS BURTCv1: replace magic BURAM offsets with a layout struct
xaelsouth Nov 24, 2026
e13206a
SILABS FG23 BURAMv1: fix shared clock-gate handling in hal_buram_lld.c
xaelsouth Nov 24, 2026
a309e8c
SILABS FG23 BURTC: resolve the ~8 Hz CNT mystery — it was the debugge…
xaelsouth Nov 24, 2026
eff94c5
BURAM: collapse BURAMD1..4 into a single 128-byte BURAMD1
xaelsouth Nov 24, 2026
2aded1a
SILABS BURTCv1: comment why each BURAM state member is volatile
xaelsouth Nov 24, 2026
ee9fde4
SILABS BURTCv1: rtcSetTime must not clear CNT when SYSTICKv4 owns BURTC
xaelsouth Nov 24, 2026
96a9269
SILABS SYSTICKv4: document why BURTC is not the default systick
xaelsouth Nov 24, 2026
cfec5bf
SILABS FG23: SYSTICKv2 (SYSRTC0) as default systick; remove SYSTICKv3…
xaelsouth Nov 24, 2026
88c8d30
SILABS FG23: add BURTC peripheral testhal; harden BURTCv1 (stable CNT…
xaelsouth Nov 24, 2026
8540bf2
SILABS FG23: COMP-driven BURTC calendar (no alarm, no CNT reads); LLD…
xaelsouth Nov 24, 2026
427522f
SILABS FG23 BURTCv1: remove alarm API entirely (EFR32_RTC_NUM_ALARMS=…
xaelsouth Nov 24, 2026
5a124e6
SILABS FG23: RTC alarm on SYSRTC CMP1 (BURTC keeps the COMP calendar …
xaelsouth Nov 24, 2026
f0e6ffa
SILABS FG23 BURTCv1: wire sub-second ms from CNT under EFR32_RTC_HAS_…
xaelsouth Nov 24, 2026
5fdccba
SILABS FG23: LETIMERv1 PRS-started one-shot window API; LESENSEv1 prs…
xaelsouth Nov 24, 2026
d1211a3
SILABS FG23 LETIMERv1: letimer_lld_window_kick() — restart a PRS wind…
xaelsouth Nov 24, 2026
517711c
SILABS FG23 LESENSEv1: set_scan_hz via PCPRESC/PCTOP (RM Fig 29.2), t…
xaelsouth Nov 24, 2026
73e5472
SILABS FG23: LESENSEv1 autonomous mode (decoder arcs/decctrl, IRQ onl…
xaelsouth Nov 24, 2026
bdea936
SILABS FG23: LESENSEv1 hit_callback (first-pulse wakeup, hit IRQ mask…
xaelsouth Nov 24, 2026
f1af51c
SILABS FG23: fix LCD clock source (LFXO) + bounded EN wait; QEI set S…
xaelsouth Nov 25, 2026
604dc3f
SILABS EUSARTv1 SIO: fix sio_lld_set_baud dispatch for USART0 (SIOD4)
xaelsouth Nov 25, 2026
64d6ec0
SILABS QEIv1: fix PCNT0 SYNCBUSY stall in external-clock mode (BRD2600A)
xaelsouth Nov 25, 2026
33de623
SILABS EFR32FG23 LLD: terminate *_fields macros with a semicolon, def…
xaelsouth Nov 25, 2026
c807957
SILABS: drop the DK2600A board dir, use BRD2600A_REVA03 everywhere
xaelsouth Nov 25, 2026
e7a009a
SILABS: remove RT-EFR32FG23B010F512-DK2600A demo
xaelsouth Nov 25, 2026
6a80ae8
SILABS EFR32FG23 LCDv1: issue CMD.LOAD after SEGD writes, make lcdCle…
xaelsouth Nov 26, 2026
181b0cf
SILABS BRD2600A board: fix LCD digit map order (index 0 = leftmost #5)
xaelsouth Nov 26, 2026
fa33b51
SILABS EFR32FG23 I2Cv1: never enable TXBL in IEN (level IRQ starves t…
xaelsouth Nov 26, 2026
c859965
SILABS BRD2600A board: document icon map translation and the P5==DEGC…
xaelsouth Nov 26, 2026
a78a65b
SILABS EFR32FG23 I2Cv1: fix master RX/repeated-start; add Si7021 sens…
xaelsouth Nov 26, 2026
070268c
SILABS EFR32FG23 LLD: use dmaStreamAllocI/FreeI in ADCv1 and SIO wher…
xaelsouth Nov 26, 2026
237db45
SILABS EFR32FG23: PAL LESENSE_CHx pin routing (LESENSEROUTE); LESENSE…
xaelsouth Nov 26, 2026
f5f7c38
SILABS EFR32FG23 LESENSE LLD: VDAC0 CH0 LESENSE-triggered DACOUT exci…
xaelsouth Nov 26, 2026
db05c62
SILABS EFR32FG23: fix LCD clock startup and frame rate on BRD2600A
xaelsouth Nov 27, 2026
e4c0c95
SILABS EFR32FG23 LESENSE LLD: allocate analog bus (ABUS/BBUS/CDBUS) f…
xaelsouth Nov 27, 2026
1d6c9ed
SILABS EFR32FG23: fix peripheral drivers and expand hardware tests
xaelsouth Nov 27, 2026
12fe46c
Improve EFR32 clock reporting and serial DMA
xaelsouth Nov 27, 2026
7365011
Add LESENSE decoder interrupt support
xaelsouth Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
#
# ChibiOS - Copyright (C) 2026 Xael South.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

*.origin
*.swp
*~
.dep
build
*.vpj
*.vpw
*.vpwhistuxml
*.vpwhistu
*.vtg
*.jdebug
*.jdebug.user
.vscode/
Testing/
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[submodule "ext/mcux-sdk"]
path = ext/mcux-sdk
url = https://github.com/NXPmicro/mcux-sdk
[submodule "ext/gecko_sdk"]
path = ext/gecko_sdk
url = https://github.com/SiliconLabs/gecko_sdk
[submodule "ext/lvgl"]
path = ext/lvgl
url = https://github.com/lvgl/lvgl
shallow = true
76 changes: 76 additions & 0 deletions demos/IMX23/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!--
ChibiOS - Copyright (C) 2026 Xael South.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

# ChibiOS/RT on NXP i.MX23 (ARM926EJ-S)

Branches: `imx23` in both `ChibiOS` (master) and `ChibiOS-Contrib` (chibios-21.11.x).

Boot model: the ROM "bootstream" (USB boot) does power + DRAM init, copies the
`.bin` to `0x40000000` and CALLs it. `__early_init()` copies the 8 exception
vectors into OCRAM at `0x0`, disables MMU/caches and clears the CP15 V bit.

## Layout

- `ChibiOS/os/common/startup/ARM/devices/IMX23/` — armparams, `__early_init`, mem map
- `ChibiOS/os/common/startup/ARM/compilers/GCC/{mk/startup_imx23.mk,ld/IMX23.ld}` —
the linker script is cpp-preprocessed with the board's `board.h`
- `ChibiOS-Contrib/os/hal/ports/IMX23/IMX23xx/` — platform:
- `imx23.h` all register maps, `icoll.*` interrupt controller (+ `icoll_tramp.S`)
- `hal_lld`, `hal_st_lld` (TIMROT 32kHz), `hal_pal_lld` (pinctrl),
`hal_sio_lld` (DUART PL011 + AUART0/1), `hal_spi_lld` (SSP0/1, PIO),
`hal_i2c_lld` (I2C0 PIO master), `hal_pwm_lld` (5 ch, 24MHz),
`imx23_dma` (APBH/APBX CCW engine),
`imx23_clock` (CPU 480/240/120 MHz + VDDD scaling),
`imx23_lradc`, `imx23_gpmi_nand` + `imx23_romboot` (NAND + ROM boot writer)
- MXS-family blocks moved to devices_lib: `crypto/mxs_dcp`,
`display/mxs_lcdif`+`mxs_pxp`, `audio/mxs_audioout`, `nand/*`
- `ChibiOS-Contrib/os/hal/boards/IMX233_OLINUXINO_MINI/` — 64MB, `IMX23_RAM_SIZE 0x4000000`
- `ChibiOS-Contrib/os/hal/boards/IMX23_EVK/` — 128MB, LCD panel + ENC28J60 defines
- `ChibiOS-Contrib/os/various/devices_lib/ethernet/enc28j60_lld.c` — SPI MAC LLD
- `ChibiOS-Contrib/demos/IMX23/RT-IMX23-HELLO/` — demo with shell on the DUART
- `ChibiOS-Contrib/demos/IMX23/RT-IMX23-BOOTLOADER/` — failsafe NAND bootloader (see its README.md)

RAM size: one `#define IMX23_RAM_SIZE` in the board's `board.h`
(`0x4000000` OLIMEX / `0x8000000` EVK); `heap_end` is 0x44000000 / 0x48000000.
OCRAM (32KB at 0x0) is a second linker region (`ram1`) for vectors/stacks.

## Build

```sh
export PATH=/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/bin:$PATH
cd ChibiOS-Contrib/demos/IMX23/RT-IMX23-HELLO
make -j8 BOARD=IMX233_OLINUXINO_MINI # or BOARD=IMX23_EVK
# -> build/<BOARD>/ch.bin (load at 0x40000000 via bootstream)
```

## Demo shell commands (DUART, 115200 8N1)

- `freq [0|1|2]` — CPU profile 480/240/120 MHz (+VDDD scale)
- `backlight <0-100>` — EVK LCD backlight (PWM2, GPIO_1_28)
- `pxp` — PXP blit test on the EVK framebuffer
- `tone [hz] [ms]` — sine on the mxs-builtin DAC
- `mac` — ENC28J60 link status (EVK)
- `info`, `systime`, `mem`, `echo` — built-in
- Log lines are prefixed with `[sec.msec]` timestamps.

## NAND / filesystem recommendation

Use **LittleFS** (`os/various/littlefs_bindings`) on top of the contrib
`hal_nand` block API — but insert a thin MTD-style **bad-block-skipping block
device** between hal_nand (GPMI+BCH via APBH DMA) and LittleFS: LittleFS only
wear-levels good blocks, bad blocks must be skipped one level below (that is
not a "transcribe" method — it is standard MTD bad-block management reading
the manufacturer's bad-block marks in the spare area).
200 changes: 200 additions & 0 deletions demos/IMX23/RT-IMX23-BOOTLOADER/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
#
# ChibiOS - Copyright (C) 2026 Xael South.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
# Build settings
##############################################################################

# Project name.
PROJECT = ch

# Board selection: IMX233_OLINUXINO_MINI (64MB) or IMX23_EVK (128MB).
# The board's board.h defines IMX23_RAM_SIZE, which sizes the memory map.
BOARD ?= IMX233_OLINUXINO_MINI

# Imported source files and paths.
CHIBIOS := ../../../../ChibiOS
CHIBIOS_CONTRIB := $(CHIBIOS)/../ChibiOS-Contrib

# Licensing files.
include $(CHIBIOS)/os/license/license.mk

# Startup files (i.MX23 device: armparams.h, __early_init, ld script).
include $(CHIBIOS)/os/common/startup/ARM/compilers/GCC/mk/startup_imx23.mk

# HAL-OSAL files (the Contrib hal.mk includes the main one).
include $(CHIBIOS_CONTRIB)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk

# HAL platform (i.MX23) and board.
include $(CHIBIOS_CONTRIB)/os/hal/ports/IMX23/IMX23xx/platform.mk
include $(CHIBIOS_CONTRIB)/os/hal/boards/$(BOARD)/board.mk

# RTOS files.
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/mk/port_generic.mk

# Other files.
include $(CHIBIOS)/tools/mk/autobuild.mk

# HAL streams lib (chprintf) and shell on the debug serial.
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
include $(CHIBIOS)/os/various/shell/shell.mk

# MXS DCP hardware crypto (devices_lib/crypto) — used by dcp/sbtool cmds.
include $(CHIBIOS_CONTRIB)/os/various/devices_lib/crypto/mxs_dcp.mk


# Generic NAND support (chip DB + LittleFS binding, devices_lib/nand).
# The i.MX23 GPMI+BCH controller driver and the ROM boot writer are part of
# the port (os/hal/ports/IMX23/IMX23xx, see platform.mk).
include $(CHIBIOS_CONTRIB)/os/various/devices_lib/nand/nand.mk

# LittleFS itself.
ALLCSRC += $(CHIBIOS)/ext/littlefs/lfs.c \
$(CHIBIOS)/ext/littlefs/lfs_util.c
ALLINC += $(CHIBIOS)/ext/littlefs

# TLSF constant-time allocator (used by littlefs via USE_TLSF_HEAP).
# Newlib syscall stubs (tlsf error paths call printf -> newlib stdio).
include $(CHIBIOS_CONTRIB)/os/various/tlsf_bindings/tlsf.mk
include $(CHIBIOS)/os/various/newlib_bindings/newlib.mk


##############################################################################
# Project, sources and paths
##############################################################################

# Define linker script file here.
# IMX23.ld is preprocessed by the C preprocessor so that the board.h
# #defines (IMX23_RAM_SIZE etc.) configure the memory regions.
LDSCRIPT = $(BUILDDIR)/IMX23.ld

# C sources that can be compiled in ARM or THUMB mode.
CSRC = $(ALLCSRC) \
main.c \


# C++ sources.
CPPSRC = $(ALLCPPSRC)

# C sources compiled in ARM mode.
ACSRC =

# C++ sources compiled in ARM mode.
ACPPSRC =

# C sources compiled in THUMB mode.
TCSRC =

# C++ sources compiled in THUMB mode.
TCPPSRC =

# List ASM source files here.
ASMSRC = $(ALLASMSRC)

# List ASM with preprocessor source files here.
ASMXSRC = $(ALLXASMSRC)

# Configuration files directory (chconf.h, halconf.h, mcuconf.h, lwipopts.h,
# mbedtls_config.h).
CONFDIR = cfg

# Inclusion directories.
INCDIR = $(CONFDIR) $(ALLINC)

##############################################################################
# Compiler settings
##############################################################################

# ARM926EJ-S: ARMv5TE, ARM mode, soft float (no FPU).
MCU = arm926ej-s

TRGT = arm-none-eabi-
CC = $(TRGT)gcc
CPPC = $(TRGT)g++
LD = $(TRGT)gcc
CP = $(TRGT)objcopy
AS = $(TRGT)gcc -x assembler-with-cpp
AR = $(TRGT)ar
OD = $(TRGT)objdump
SZ = $(TRGT)size
HEX = $(CP) -O ihex
BIN = $(CP) -O binary

# Build global options.
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mfloat-abi=soft
USE_COPT =
USE_CPPOPT = -fno-rtti
USE_LINK_GC = yes
USE_LDOPT =
USE_LTO = no
USE_THUMB = no
USE_VERBOSE_COMPILE = no
USE_SMART_BUILD = yes

# Stack sizes (bytes) for the ARM exception stacks.
USE_SYSTEM_STACKSIZE = 0x800
USE_PROCESS_STACKSIZE = 0x800
USE_IRQ_STACKSIZE = 0x400
USE_FIQ_STACKSIZE = 0x100
USE_ABT_STACKSIZE = 0x100
USE_UND_STACKSIZE = 0x100
USE_SVC_STACKSIZE = 0x100

# ARM-specific options here.
AOPT =
TOPT = -marm -DTHUMB
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
CPPWARN = -Wall -Wextra -Wundef
UADEFS =
UDEFS = -DSHELL_CMD_TEST_ENABLED=FALSE -DLFS_THREADSAFE=0 -DLFS_NO_DEBUG=1 -DLFS_NO_WARN=1 -DLFS_CONFIG=nand_lfs_config.h -DUSE_TLSF_HEAP=1
UINCDIR =
ULIBDIR =
ULIBS =

RULESPATH = $(CHIBIOS)/os/common/startup/ARM/compilers/GCC

##############################################################################
# Build rules
##############################################################################

# BUILDDIR is normally set by rules.mk; define it early for LDSCRIPT below.
ifeq ($(BUILDDIR),)
BUILDDIR = build/$(BOARD)
endif

include $(RULESPATH)/rules.mk

##############################################################################
# Linker script preprocessing: board.h #defines -> memory layout.
# NOTE: this rule must stay after the rules.mk include so that "all" remains
# the default goal.
##############################################################################

IMX23_DEV_DIR = $(CHIBIOS)/os/common/startup/ARM/devices/IMX23

$(BUILDDIR)/IMX23.ld: $(STARTUPLD)/IMX23.ld $(BOARDINC)/board.h
@echo "Preprocessing linker script for board $(BOARD)"
@mkdir -p $(BUILDDIR)
$(TRGT)gcc -E -P -x c -D__IMX23_LDSCRIPT__ \
-I$(BOARDINC) -I$(IMX23_DEV_DIR) \
$(STARTUPLD)/IMX23.ld -o $@

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

# The bootloader .sb is produced from the RT-IMX23-HELLO demo (which has
# tools/ and bootlets/), then written to NAND with its "nand bootwrite".
41 changes: 41 additions & 0 deletions demos/IMX23/RT-IMX23-BOOTLOADER/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# RT-IMX23-BOOTLOADER — failsafe NAND bootloader demo

Two-level failsafe boot for the i.MX23 EVK:

1. **ROM level** — the BootROM loads the bootloader's `.sb` bootstream from
the NAND boot area (NCB/LDLB/DBBT + SB image, written by the
`RT-IMX23-HELLO` demo's `nand bootwrite /bootloader.sb` command; build
the `.sb` in `RT-IMX23-HELLO` with `make elftosb BOARD=IMX23_EVK`, it has
`tools/` + `bootlets/`). Dual bootstream slots (blocks 24..39 / 40..47)
are handled there via `nand bootslot`.
2. **Bootloader level (this demo)** — runs at 0x40000000, mounts the NAND
LittleFS volume, reads the active slot from `/boot/slot`, loads
`/boot/app<slot>.bin` to `0x41000000`, verifies its SHA-256 with the
DCP (`mxs_dcp_sha256`) against `/boot/app<slot>.sha256`, and jumps.
On failure it tries the other slot; if both fail it stays in the shell.

App images are flat binaries linked at `0x41000000`
(`arm-none-eabi-objcopy -O binary app.elf app.bin`).

## Shell commands (DUART, 115200 8N1)

info NAND/LFS/slot status
mount [format] mount (or format+mount) LFS
ls [path] list LFS
slot [0|1] show / set active slot
install <lfs-image.bin> [lfs-sha.txt] copy image into the INACTIVE slot
and verify the written copy
boot boot active slot now (fallback)

## Usage

# on the HELLO demo (has tools/bootlets):
make elftosb BOARD=IMX23_EVK # -> build/IMX23_EVK/ch.sb (rename bootloader.sb)
nand bootwrite /bootloader.sb # write ROM boot area
# upload an app image + its sha256 (hex, 64 chars) to LFS (TFTP/HTTPS),
# then in the bootloader shell:
install /update.bin /update.sha256 # writes /boot/app<other>.bin{,.sha256}
slot 1 # activate it
boot # or just reset

Build: `make -j8 BOARD=IMX23_EVK` (or `BOARD=IMX233_OLINUXINO_MINI`).
Loading