firmware icon indicating copy to clipboard operation
firmware copied to clipboard

CYD 2 USB 16mb flash and 8mb flash help

Open LuFFeTz opened this issue 4 months ago • 2 comments

i have CYD 2usb 8mb and 16mb flash version, i tried compiling custom 8mb 16mb but firmware wont run, in order to flash a 4mb firmware that i have and to swap easily somehow to other 3mb plus firmware which the 4mb version is limited of, is there a way or a guide to make it? thank you and more power, ive tried the NM cyd c5 and i like it so much having a large space to flash with no storage issue.

LuFFeTz avatar Jul 12 '26 13:07 LuFFeTz

ive tried the NM cyd c5 and i like it so much having a large space to flash with no storage issue.

It won't work, because it is a different MCU

How to, and applies to Launcher as well

https://github.com/BruceDevices/firmware/blob/ac869d3d99ba222fd2fe7f76b707e4929385bd4c/boards/CYD-2432S028/CYD-2432S028.ini#L15-L19

You need to change this line board_build.partitions = custom_4Mb_full.csv, depending on the flash size of your ESP32 following the examples below

For 16Mb flash

board_build.partitions = custom_16Mb.csv
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216

For 8Mb flash

board_build.partitions = custom_8Mb.csv
board_upload.flash_size = 8MB
board_upload.maximum_size = 8388608

You need to remove the ${env_4mb.build_flags} line

bmorcelli avatar Jul 13 '26 11:07 bmorcelli

More power tou you

LuFFeTz avatar Jul 21 '26 16:07 LuFFeTz