I know that the flash size of esp-12f is 32Mbit, which should be 4MB. According the document https://www.espressif.com/sites/default ... ide_en.pdf, the addresses to flash bins should be as follows:
blank.bin: 0x3FB000 & 0x3FE000
esp_init_data_default.bin: 0x3FC000
blinky-0x00000.bin: 0x00000
blinky-0x10000.bin: 0x10000
In the tool ESP8266 DOWNLOAD TOOL V3.8.5, I set the bins and addresses as above, as well as the following settings. Then clicked the "START" button and waited for "FINISH". It showed the flash successful. But after I re-plug the nodeMCU or pushed the RST button, the onboard blue LED light blinked fast for once then became quiet.
CrystalFreq: 26M
SPI SPEED: 40MHz
SPI MODE: QIO
FLASH SIZE: 32Mbit
COM: COM3
BAUD: 115200
I'm able to flash the combined bins, the address is set to 0x0, provided by the producer. The onboard LED light can be successfully lit up.
Additionally, I've tried to have the simplest code as below, which only prints the SDK version, flashed again. Unfortunately, I got no luck.
#include "ets_sys.h"
#include "osapi.h"
#include "gpio.h"
#include "os_type.h"
void user_init() {
os_printf("SDK version: %s\n", system_get_sdk_version());
}
I tried the addresses from the official document and other posts online, but all failed. So can anyone help me with this?