Hey all, I have a few ESP-01 boards, and I just ordered 4M flash chips for them. I want to add a custom board similar to the esp01_1m. Just have a quick question on the changed needed.
Here is the esp01_1m.json file.
> {
"build": { "core": "esp8266", "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "qio", "ldscript": "esp8266.flash.1m256.ld", "mcu": "esp8266", "variant": "generic" }, "frameworks": [ "arduino", "simba" ], "name": "Espressif Generic ESP8266 ESP-01 1M", "upload": { "maximum_ram_size": 81920, "maximum_size": 1048576, "require_upload_port": true, "resetmethod": "ck", "speed": 115200 }, "url": "http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family", "vendor": "Espressif" }
I believe I need to change the “maximum_size”: 1048576 line to 4194304 as well as the “name” line to something unique.
My question lies in what to change the “ldscript”: “esp8266.flash.1m256.ld”, to?
Would this be correct?
{
"build": {
"core": "esp8266",
"extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01",
"f_cpu": "80000000L",
"f_flash": "40000000L",
"flash_mode": "qio",
"ldscript": "esp8266.flash.4m256.ld", **** Changed *****
"mcu": "esp8266",
"variant": "generic"
},
"frameworks": [
"arduino",
"simba"
],
"name": "Espressif Generic ESP8266 ESP-01 4M",
"upload": {
"maximum_ram_size": 81920,
"maximum_size": 4194304, ***** Changed ****
"require_upload_port": true,
"resetmethod": "ck",
"speed": 115200
},
"url": "http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family",
"vendor": "Espressif"
}
TIA!