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:
void setup() {
Serial.println("Hello World!");
}
void loop() {
}
ESP SDK code (from ESP8266_RTOS_SDK/examples/get-started/hello_world)
#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.
boot 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