Repository navigation
Changelog
Documentation for v2.5.2 is available at https://docs.sifli.com/projects/sdk/v2.5.2/sf32lb52x/index.html
Major Changes
- Add SF32LB57-LCD series boards (n16r8/n16r16 DPI and n16r16 QSPI) and more SF32LB57X part numbers, including support for the 57x VERSION B chip.
- Add LVGL v9 EPIC render list enhancements: outline and shadow rendering, image arcs, object rotate/zoom, rectangle background images and INDEXED_1BIT images.
- Add
hal/pulse_in(input capture) andusb_dongle(CherryUSB) examples, plus a merged LVGL v8 custom widget example suite. - Add SPI-emulated I2S slave RX driver, E0470A03 display driver, AIC8800D40-N WiFi driver and GC032A camera support on 57x via 8-bit DVP.
- Add lwIP 2.1.2 NAT support.
- Add Kconfig
configdefaultsupport with per-part defaults for 57x, and sf-pkg module-level external component dependencies. - Extend example support for the SF32LB57-LCD boards (UART, SPI, I2C EEPROM, PWM, GPIO, PDM, eZIP and LVGL demos).
- Improve crash-dump tooling with 57x capture support, Windows COM ports and SiP PSRAM dump scripts.
Change log since v2.5.1
Drivers
Fixed
- cmsis: Add LCPU RAM project build on 57x (bae1894)
- pinmux: Fix LCPU build error on 57x (cfe9e82)
- spi: Fix spi_camera and spi_dma_circular not work when DMA_SUPPORT_DYN_CHANNEL_ALLOC is not enabled (3a92466)
- audprc: Fix build error when DMA_SUPPORT_DYN_CHANNEL_ALLOC is disabled on 52x (8b1f7ae)
- ptc: Fix pin 95 cannot be used as PTC trigger source (f0f8945)
- lcd_fb: Fix tearing effect of RAMLESS LCD caused by FB manager (9a4d05c)
- cherryusb: Fix MUSB host TX/RX FIFO flush fail (9b6da8b)
- pmu: Fix aon_vos_trim and aon_vos_polar calibration load error on 57x (26ed4ca)
- pmu: Fix SA/SB pad retention for 57X (dd46587)
- aon: Reject reserved wakeup PINs on SF32LB52X (281d2e2)
- dma: Fix OrgChannelIndex is not updated (8605389)
- pinmux: Fix doxygen comment of PIN_DrivingStrengthTypeDef (0420c94)
- jpeg: Fix JPEG decoding timeout in render-list mode (f18c2f5)
- epic: Support external memory allocation interfaces (c4a1a5d)
- cherryusb: Fix EP1 channel conflict on the 52/56 series (47abf13)
- cherryusb: Fix endpoint number check in MUSB host channel mapping (3cc96d3)
- cmsis: Correct the PSRAM memory MPU config on 58x ACPU (8e1c450)
- dma: Fix stale linklist flag and GPDMA-only register access (70645b3)
- dma: Fix non-owner handle can free a just allocated channel (848542c)
- dma: Fix abort/deinit racing with channel reallocation (90fb09d)
- pmu: Minimize PMU pin wakeup de-glitch time on 57x (b7c593f)
- pwm: Do not use a DMA priority macro as NVIC priority (2397e1c)
- usb/mstorage: Fix file corruption when copying large files on macOS (d73c6a6)
- cherryusb: Re-arm the EP0 TX interrupt in musb_control_urb_init (76a7bf7)
- nor: Fix DTR is enabled when erase/write is still ongoing (237e478)
- otp: Fix otp_base address was not initialized in HAL_FLASH_PreInit (87d3f51)
- cherryusb: Fix ZLP transfer fail in host high-speed mode (025ef68)
- lcd_fb: Fix ramless single-buffer flush_done not releasing FB state (7bca0cc)
- cherryusb: Fix rt device->rx_indicate is not called for rtserial device (29de028)
- cherryusb: Fix device enumeration failure in high-speed mode (befdf01)
- sdio: Fix SDIO read failure caused by exceeding the SD controller limit (5eb4fe8)
- spi: Fix SF32LB57x SPI master clock configuration (0b05af3)
- cmsis: Rename CHG_IRQn to PMUC_IRQn on 57x (b1e70bc)
- lcdc: Correct interface clock divider calculation (d01c88d)
- cmsis: Fix external flash config is not put in RAM section on Keil build (65ebac7)
- pwm: Add PWM_CMD_GET_CLK to report the counter clock (0ee28ac)
- rgbled: Derive SK6812 pulse timing from the PWM clock (3bb3458)
- usb: Fix 57x host USB clock mode for low-speed devices (20c8662)
Changed
- psram: Read pkgid from HPSYS_CFG.IDR instead of efuse on 57x (ec52563)
- pmu: Load PMU calibration data on 57x (eddfd76)
- sys_cfg: Separate bf0_sys_cfg implementation file per chip for better maintenance (71b368f)
- rcc: Enable SYSCLK_SWLP to improve Bluetooth power consumption (d209a57)
- ptc: Add GPIO trigger and repetition support (db0e777)
- pinmux: Rename ARTITRARY FUNC macro to MATRIX FUNC to be consistent with chip spec (8ba4a35)
- jpegd: Improve JPEG dimension parsing robustness (1d701f1)
- cherryusb/rndis: Support Android RNDIS class code (0xEF/0x04/0x01) (d330394)
- cherryusb: Add network-bridge callback hook and enable gate for u2 netdev (581373c)
- epic: Support external memory allocation interfaces (b2f086a)
- dma: Program m2m transfers at the lowest priority level (ea8cab4)
- cherryusb: Improve USB stability on 58x (e0e883e)
- drv_common: Always perform SysTick compensation on the HPSYS side for 52x and 57x (5362f76)
Added
- spi_i2s_slave: Add SPI emulated I2S slave RX driver (7263bb2)
- pinmux: Add HAL_PIN_SetDS to select pin driving strength (95ff373)
- cortex: Add HAL_NVIC_SystemResetEx to select boot mode (1a326bd)
- cmsis/ptm: Add 57x PTM trigger definitions and doxygen comments (92a1c53)
Middleware
Fixed
- pm: AON/PM do not support double-edge for 57x (b9984f5)
- acpu_ctrl: Fix concurrent IPC (db559ca)
- ipc_queue: Wake LCPU for 57x IPC mailbox (bd7213a)
- lvsf: Add label to lvsf_perf obj name table (87d5700)
- lvgl_v9: Widen cache compare results (bd2d655)
- lvsf: Remove extra +4 offset in FreeType base_line to align with LVGL standard (14cae60)
- lwip: Fix NAT port allocation and adapt ipv4_nat to lwIP 2.1 (755ec3c)
- lvsf: Always build ft_get_cache_size so FreeType works when FT_CACHE_SIZE=0 (59c5c8e)
- rlottie: Fix vraster build with newer clang/libc++ (922481c)
- lvgl: Clear the snapshot buffer (7bceb0d)
- lv_drivers: Use draw_ctx->buf as render target for canvas/snapshot (4324c41)
- pm: Back up ACPU RAM during context backup on 58x (588cb61)
- ipc_queue: Store the advanced write pointer in circular_buf_putchar_force (56f1528)
- audio: Fix lc3codec compile error (5e99522)
- lvsf: Support configuration of FreeType output bit depth in v8 (676679b)
- lvgl: Fix v9 framebuffer switching before flush (9b8f1fe)
- lvgl: Fix EPIC task completion (f692dc5)
- lvgl_v9: Support the allocation pool for SRAM/PSRAM that prioritizes the configuration of V9 image file data (cdf33c4)
- freetype: Fix raster error paths (e6eb3c1)
- dfu: Fix pingpong DFU issue on 52x (1d6a6f8)
- freetype: Fix LVGL v9 integration (d92c71f)
- freetype: Fix Tiny FreeType integration with LVGL v9 (7eff389)
- lvgl_v9: Fix render-list offscreen layer submission and lifetime (b6f21a7)
- lvgl_v9: Fix the update of FPS statistics and display (3497765)
- lvgl: Fix LVGL v9 SDL build (20f9557)
- lvgl_v9/freetype: Fix glyph rendering and cache cleanup (43c6a4d)
Changed
- pm: No need to disable module clock anymore for 57 A2 (35f5564)
- lvsf: Add L1/L2 glyph caches to reduce FTC queries (34b2528)
- lwip: Manage lwIP timeouts based on netif link state (a9dee6c)
- lvgl: Unify app cache Kconfig (ab0e126)
- lwip: Enable NAT support in lwIP 2.1.2 (37e3470)
- coredump: Add SF32LB57 support (be0c10a)
- lv_drivers: Reduce bg_image parent mask snapshot and skip empty background draws (d33d696)
Added
- lvsf: Add the lvsf_textimg control (c2f0b9f)
- lvsf: Update the Keil version library file of gui_widget (0c198a2)
- lvgl: Support image arcs in EPIC render lists (7256615)
- lvgl: Support drawing rectangle background image via EPIC GPU (47a7a27)
- lvgl: Support outline and shadow rendering in EPIC NEW_API (9cf8cf7)
- lvgl: Support object transform (rotate/zoom) via EPIC offscreen layer (bd2eea0)
- lv_drivers: Support LV_IMG_CF_INDEXED_1BIT (lv_qrcode) on EPIC via L8 snapshot (7a3cded)
Bluetooth
Fixed
- Fixed NVDS overwrite issue when data structure is modified and NVDS was saved using an older structure
- Fixed BLE power abnormality of SF57x series during non-signaling test
Changed
- Sync classic BT changes from other repository
- Improved BLE 2M spurious emission performance
- bt: Support 57x VERSION B chip (367932a)
Added
- Added new scan API to filter advertisements by advertising type and corresponding advertising data (supported on SF57x and SF58x series only)
- Added AFH test support for SF57x series
- Added USB PAN bridge support
RTOS
Fixed
- kernel: Sync with RT-Thread: fix issue that could stop all timers (42212b8)
- libdl: Handle allocation failures (0ffd1a8)
Changed
- finsh: Disable echo mode by default on 57x (b209011)
Examples
Fixed
get-started/dualcore: Fix build error on 57x (bd76c0f)lvgl_v8_media: Fix build error caused by duplicate Kconfig symbol (0518a45)lvgl: Unify example app-cache config into Kconfig_mem and fix no-DFS build (f47adb0)cherryusb/host/usb_bt_bridge_l2: Fix earbud losing Internet after phone switch/reboot by re-syncing PAN (c9b5509)audio/opus: Fix recording duration drift and audio frame loss in the Opus example (7e40d83)lvgl/watch_v9: Add the 57e configuration file (c60dbc5)lvgl/watch_v9: Fix crash on board sf32lb57-lcd_n16r8_dpi (b3a51a1)audio/flac: Fix crash when sending commands repeatedly in flac example (624442e)audio/record: Fix recording failure on 57_lcd board (6822ae0)rt_device/i2s: Fix i2s build error on 57 lcd boards (0ca4965)lvgl/watch: Fix the 57 crash issue (d9a590b)lvgl/eez_studio: Fix the 57 crash issue (12a4658)lvgl/NXP_GUI_guider: Fix the 57 crash issue (01f6f20)lvgl/example_v9: Fix the 57 crash issue (5ba8840)lvgl/v9_demo: Fix the 57 crash issue (2599ee6)lvgl/v8_example: Fix the 57 crash issue (9b32e10)lvgl/v8_demo: Fix the 57 crash issue (a2a0ba5)rt_device/pdm: Fix pdm example build error on 57 lcd boards (987d019)lvgl/Square_Line: Fix the 57 crash issue (3091dad)rt_device/pwm: Fix typo in GPTIM and ATIM related examples (886e97c)lvgl/watch_v9: Fix single-step EPIC 3D drawing parameters and face drawing sequence (1b8a74a)lvgl/watch_v9: Use the 57x configuration uniformly (897cbed)lvgl/watch_v9: Remove the padding (52efe9a)ezip_v9: Allocate V9 image cache (dfc69b9)ezip: Fix image switching lifetime (e339907)ezi_v9: Fix V9 image switching (61a52f4)ezip/ezip_v9: Fix SPI-HDK SD routing (88dc19a)
Changed
rt_device/pdm: Add support of board spi-hdk_lb575ucnn6_n16 (22a29c2)rt_device/gpu/render_list_mode: Complete README (CN/EN) (3fa7f10)watch: Include ACPU project if needed (d61eb03)cherryusb/device/msc/sdcard_disk: Fix build error on 57_lcd boards (99bcaa7)cherryusb/device/audio_v1_mic: Remove UAC record log flooding (583de40)hal/can: Update hal/can example (7cd92a2)hal/gpio: Update pin assignments for the SF32LB57-LCD board (e77f0e7)hal/i2c: Update pin assignments for the SF32LB57-LCD board (46055b3)rt_device/gpu/render_list_mode: Separate LCD flushing functions to lcd.c (55f6af8)hal/tsen: Update doc to indicate 57 series support (1480199)
Added
lvsf_v8: Add merged lvsf v8 custom widget example suite (9d91a6d)usb_dongle: Add USB dongle example based on CherryUSB (fe6a57c)hal/pulse_in: Add HAL input capture example (7104526)rt_device/rgb_led: Add SF32LB57x support (a031137)ezip_v9: Enable TF cards on 57 LCD (c4fcbcd)ezip/ezip_v9: Enable TF cards on 57 boards (0f2a423)rt_device/uart: Add SF32LB57-LCD support to uart example (8d53b42)rt_device/gpio: Add SF32LB57-LCD support to GPIO example (6dfb7f4)hal/pwm: Add SF32LB57-LCD support to PWM example (4d47096)hal/uart: Add SF32LB57-LCD support to UART example (9a9321d)rt_device/pwm: Add SF32LB57-LCD support to PWM example (3e843ed)rt_device/spi: Add SF32LB57-LCD support to SPI circular example (d0a0d79)hal/spi: Add SF32LB57-LCD support to SPI polling example (3400c79)rt_device/i2c: Add SF32LB57-LCD support to EEPROM example (930ffff)hal/spi: Add SF32LB56-LCD support to SPI polling example (f4042d7)
Tools
Fixed
- patch: Fix custom HCPU_LCPU_CODE_START_ADDR doesn't take effect (9a78645)
- build: Fix ACPU code execution address on 57x (f0b7ba6)
Changed
- build: Enable 57 LCPU DSP extension for GCC (77ced58)
- flash: Add 58x sd1 Keil FLM target (2d39f8c)
- SiFli_RfTool: Upgrade to v1.6 to support 57 series (f38aa8f)
- UsartServer: Upgrade to v3.1 to support 57 series (77ca067)
- SifliTrace: Upgrade to v2.3.6 to support 57 series (4eae8e4)
- AssertDump: Upgrade to v3.2 to support 57 series (2e64f77)
- impeller: Upgrade to 3.6.5 to support 57 series (c77e536)(a9c5bf6)
- build: Support multiple ACPU images for ptab v2 (d26771a)
- build: Source Kconfig.board first to make
configdefaulttake effect (4ec2200) - crash_dump: Validate crash-dump script selection (513bf08)
Added
- sf-pkg: Support module-level external component dependencies (2024d9c)
- kconfig: Add configdefault support (b7f5dc0)
- crash_dump_analyser: Add script to dump PSRAM data for 57 chip with SiP PSRAM (af0a2d1)
- build: Package all .o into one library (5ef08ad)
- kconfig: Support configdefault for conditionally sourced modules (cc67247)
- crash_dump: Support Windows COM ports for capture-live (32e9227)
- crash_dump: Add SF32LB58 psramless capture script (bd12ed4)
BSP
Fixed
- board: Fix CFG_SUPPORT_NON_OTP cannot be selected on 57x (4dfd7ad)
- charger: Use hardware state instead of VBUS_RDY for actual charging status (9046fc2)
- board: Fix stuck on 57 NAND and SD boot boards (d9fbae4)
- board: Add missing prompts to three 57x part numbers (da325e1)
- board: Set hdiv to make default value 1 take effect after wakeup from standby on 58 board (3e56305)
- board: Fix no response of USB peripherals hotplug on 56_lcd board in USB host mode (954aa06)
- board: Fix 57 i2s build error introduced by 28fb9cb (b742805)
- board: Increase psram_data region size of 575ucnn6 board (1076272)
- board: Fix SConscript.base reference path for external board build (ced86f6)
- board: Fix main region size error of board spi-hdk_lb57bun3n6 (0adf320)
- board: Do not select the AW9523 driver on ACPU and LCPU (0ff00bb)
- board: Fix SD card detection failure on 57-lcd boards (ad4d81f)
- board: Move the 57-lcd backlight to pwmt2 channel 2 (068387f)
- board: Remap the 57-lcd QSPI panel pins for the 57 ribbon (63b5833)
Changed
- board: Add support of chip SF32LB57EYBBN6 (cc1169e)
- board: Load calibration data on 57x (d0aa058)
- board: Add support of chip SF32LB573UB766 (73b6f1e)
- board: Enable PSRAM_CACHE_WB by default on all boards (a02f009)
- board: Call HAL_PIN_SetSipFlash3 to configure SiP Flash3 pinmux (d160397)
- board: Replace SF32LB575YBBN6 with SF32LB57EYBBN6 on dpi/spi HDK (b229427)
- board: Move per-part defaults to soc/sf32lb57x/Kconfig. (f81edfa)
- board: Update dma_config and pwm_config of 57 series (28fb9cb)
- board: Raise 57-lcd QSPI clock drive strength to 12mA (fa45f0c)
- board: Enable PDM mic on 57-lcd boards (99bf8a7)
- board: Enable the audio PA on sf32lb57-lcd boards (991992d)
Added
- board: Add boards dpi-hdk_lb575ucnn6_n16_qspi and spi-hdk_lb575ucnn6_n16 (a442830)
- board: Add support of chip SF32LB57GVD776 (ae19bf1)
- board: Add part numbers SF32BPRTUN3N6 and SF32BPRTYB3N6 (373a024)
- board: Add board dpi-hdk_lb57gyd7n6_qspi (812a1eb)
- display: Add display driver for model E0470A03 (e273494)
- soc: Add SF32LB57ZUN3N6, SF32LB57ZVN3N6 and SF32LB57ZVN7N6 (71091c2)
- camera/gc032a: Camera gc032a works on 57x with DVP 8-bit (d64aef2)
- board: Add 57-lcd n16r8/n16r16 DPI and n16r16 QSPI boards (0af0d6d)
- wifi/aic8800d40-n: Add aic8800d40-n WiFi driver (de1b97a)
Docs
Fixed
- docs: Fix HAL exclude_patterns being discarded by the Drivers entry (d0fc6dd)
- docs: Fix MPI instance count and memory map per series (1454838)
- docs: Fix EFUSE bank count for 57x series (54bfdd0)
- docs: Fix ADC channel count description for 57x series (a230917)
- docs: Fix AON wakeup pin mapping per chip series (5d0a461)
- docs: Fix rt-pkg usage guide (8890e2b)
- docs: Pin CI Python version to 3.14 (a8512fe)
Changed
- docs: Prefer explicit version ranges in sf-pkg docs (faa26d0)