cpq / mdk

A bare metal SDK for the ESP32 & ESP32C3
MIT License
199 stars 26 forks source link

SHA-256 comparison failed (and LED not blinking) #7

Closed adumont closed 2 years ago

adumont commented 2 years ago

When I run make -C examples/blinky build flash monitor

It seems to fail at some point with a SHA-256 comparison failed error:

$ make -C examples/blinky build flash monitor
make: Entering directory '/home/adumont/esp32c3/mdk/examples/blinky'
make: Nothing to be done for 'build'.
/home/adumont/esp32c3/mdk/tools/esputil flash 0   ./build/firmware.bin
Using flash params 0x21f
Written ./build/firmware.bin, 1280 bytes @ 0              
/home/adumont/esp32c3/mdk/tools/esputil monitor
ESP-ROM:esp32c3-20200918
Build:Sep 18 2020
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fc88000,len:0xc0
load:0x40380400,len:0x410
SHA-256 comparison failed:
Calculated: 808377b4141e41be658a7a3283ccc87337eb7aeca2ff23288867817da5ec1e02
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x40380400
1
0
1
0
1

And the LED isn't blinking. Anything I could try?

cpq commented 2 years ago

You need to attach an external LED to pin LED1 which is pin 1, to see the blinking. In order to use a built-in RGB LED, please use another example, c3ws2812.

The SHA error you could just ignore.

adumont commented 2 years ago

Ah thanks!! Indeed example c3ws2812 works as expected!