Closed pvvx closed 3 years ago
I tested TLSR8253F512ET32 (Ai-Thinker BT-01..04 modules). https://docs.ai-thinker.com/blue_tooth All have 64 kilobytes of SRAM. Inside the crystal 8258 (?)
ATC_MiThermometer uses a large 'Wasteful SRAM Area' and in firmware. Real end 'retention data' address 0x4400. Aligned(256). 0x4400..0x8000 = 'Wasteful SRAM Area' and data into Flash.
Reduce firmware size for flash and load speed. Set IC-cache start address 0x4400. cstartup_825x.zip
Thank you for that.
It is a bit above my head right now as i am fully into another topic but will ger back to it
Building Reduced firmware size https://github.com/pvvx/ATC_MiThermometer
AN_19011501-C5_Telink Kite BLE SDK Developer Handbook.pdf https://yadi.sk/i/FsMuapzANxT78Q
cstartup_8258:
stack end -> 64k!
? https://github.com/atc1441/ATC_MiThermometer/blob/master/ATC_Thermometer/makefile#L45
ifeq ($(RETENTION_RAM_SIZE), 32KB)
else
LS_FLAGS := $(TEL_PATH)/components/boot/boot_16k_retn_8251_8253_8258.link
endif
SDK Ai-Thinker: BOOT_FLAG := -DMCU_STARTUP_8258_RET_16K https://github.com/Ai-Thinker-Open/Telink_825X_SDK/blob/master/make/boot.mk#L19
? BOOT_FLAG := -DMCU_STARTUP_8251_RET_16K https://github.com/Ai-Thinker-Open/Telink_825X_SDK/blob/master/components/boot/8251/cstartup_8251_RET_16K.S#L23