You can chat about native SDK questions and issues here.

User avatar
By jbsimon000
#94972 I am trying to run code generated via the ESP8266 RTOS SDK on an ESP8285.
I am using a simple "Hello World" example. The code runs using the Arduino IDE (1.8.19) on ubuntu linux.
Using the ESP8266 SDK on ubuntu, I get a "csum err"

Arduino IDE Code:

Code: Select allvoid setup() {
  Serial.println("Hello World!");
}
void loop() {
}


ESP SDK code (from ESP8266_RTOS_SDK/examples/get-started/hello_world)

Code: Select all#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"


void app_main()
{
    printf("Hello world!\n");

    /* Print chip information */
    esp_chip_info_t chip_info;
    esp_chip_info(&chip_info);
    printf("This is ESP8266 chip with %d CPU cores, WiFi, ",
            chip_info.cores);

    printf("silicon revision %d, ", chip_info.revision);

    printf("%dMB %s flash\n", spi_flash_get_chip_size() / (1024 * 1024),
            (chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded" : "external");

    for (int i = 10; i >= 0; i--) {
        printf("Restarting in %d seconds...\n", i);
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }
    printf("Restarting now.\n");
    fflush(stdout);
    esp_restart();
}





ESP8266 SDK on Ubuntu Linux : Hello world downloads, but get the following on the console when it tries to start.

Code: Select allboot mode:(3,6)

load 0x401000
 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 7044, room 16
0x40100000: lwip_getsockopt_impl at /home/dada/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:3127
 (inlined by) lwip_getsockopt_callback at /home/dada/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:2942

tail 4
chksum 0xef
load 0x00000000, len 0, room 4
tail 0
chksum 0xef
ho 12 tail 0 room 4
load 0x00000000, len 0, room 12
tail 0
chksum 0xef
csum 0xef
csum err
ets_main.c
User avatar
By jbsimon000
#94974 While flashing, I am seeing this:

esptool.py v2.4.0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
MAC: 7c:87:ce:9c:96:79
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 10432 bytes to 7025...
Wrote 10432 bytes (7025 compressed) at 0x00000000 in 1.0 seconds (effective 86.8 kbit/s)...
Hash of data verified.
Compressed 169232 bytes to 108505...
Wrote 169232 bytes (108505 compressed) at 0x00010000 in 14.8 seconds (effective 91.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 83...
Wrote 3072 bytes (83 compressed) at 0x00008000 in 0.0 seconds (effective 1289.0 kbit/s)...
Hash of data verified.