logo elektroda
logo elektroda
X
logo elektroda

Cozylife DS-1211AN 3Gang Touch Switch: 1MB BL602L10 [XT-BL12][DT-BL12] - Images, Firmware & Boot

divadiow 3876 124
ADVERTISEMENT
  • ADVERTISEMENT
  • #122 21642558
    insmod
    Level 26  
    >>21642397
    If 1mb build works on 2mb, then just add CONFIG_BL602_USE_1M_FLASH define directly in sdk. One less job for workflow that way.
  • ADVERTISEMENT
  • #123 21642574
    divadiow
    Level 35  
    Hmm yeh I guess. Will check when home. I think it works fine on 2mb from memory. I wonder what the ACTUAL difference is with CONFIG_BL602_USE_1M_FLASH and if it's use on 2mb+ has any downsides
  • ADVERTISEMENT
  • #124 21642580
    insmod
    Level 26  
    >>21642574
    It compiles and uses some specific read/write/erase functions, instead of using ROM ones.
    Actually, there is no need to open a pull in SDK. Just add -DCONF_BL602_USE_1M_FLASH=1 define to CFLAGS in bouffalo.mk in app.

Topic summary

The discussion focuses on the Cozylife DS-1211AN 3-gang touch wall switch featuring a 1MB BL602L10 Wi-Fi and BLE module, manufactured by Shenzhen Dianling Intelligent Technology Co Ltd. The main challenge is adapting OpenBeken/OpenBL602 firmware, which typically targets 2MB flash BL602 chips, to the 1MB flash variant, as standard builds and tools like OpenBeken do not natively support 1MB BL602L10 devices. Key technical issues include flash memory partitioning, bootloader compatibility, EasyFlash storage initialization, and power supply stability affecting boot loops and Wi-Fi connectivity.

Significant progress was made by creating and testing custom partition table (TOML) files tailored for 1MB flash layouts, notably the partition_cfg_1M_miegapele.toml, which allocates appropriate sizes for firmware, media, PSM, and factory partitions. Firmware builds with specific SDK configurations (e.g., CONFIG_BL602_USE_1M_FLASH and CONFIG_BL602_USE_ROM_DRIVER enabled) successfully boot and run on the 1MB BL602L10, including OpenBK7231T_App builds from GitHub pull requests #1532 and #1534.

Power supply quality and wiring (shorter VCC and ground cables, decoupling capacitors) were critical for stable operation, as the module exhibited boot looping and Wi-Fi instability when powered inadequately or with noisy sources. The GPIO17 pin usage and UART download mode resistor requirements were also discussed for module replacement or debugging.

Wi-Fi connection issues were partially resolved by adjusting router PMF (Protected Management Frames) settings and using simpler passwords. The firmware supports AP mode and basic Wi-Fi functions, though some web API endpoints (e.g., /api/lfs) may be incomplete. The community shared detailed boot logs, flash memory dumps, and PCB images to aid development and testing.

Overall, the topic demonstrates successful adaptation of OpenBL602 firmware to the 1MB BL602L10 module in the Cozylife DS-1211AN switch, with custom partitioning, SDK flags, and power considerations enabling stable boot and Wi-Fi operation, while highlighting ongoing challenges in full feature support and stability.
Summary generated by the language model.
ADVERTISEMENT