<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Troubleshooting  Core2forAWS: ATECC608 secure element initialization error!]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying to use my new M5stack Core 2 for AWS following these workshops: <a href="https://edukit.workshop.aws/en/getting-started.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://edukit.workshop.aws/en/getting-started.html</a>.</p>
<p dir="auto">I have tested the ESP RainMaker Agent and cloud connected “blinky". However, when the code is building on my M5Stack I get an abort message and the screen of my device remains white. The error I get is:</p>
<p dir="auto">␛[0;31mE (22572) Core2forAWS: ATECC608 secure element initialization error!␛[0m</p>
<p dir="auto">abort() was called at PC 0x400d51c3 on core 0***</p>
<p dir="auto">Does any one have had dis problem or knows how to troubleshoot?</p>
<p dir="auto">Here I paste the terminal output.</p>
<p dir="auto">pio run --environment core2foraws --target upload --target monitor</p>
<p dir="auto">Processing core2foraws (platform: espressif32@3.2.1; framework: espidf; board: m5stack-core2)<br />
Verbose mode can be enabled via <code>-v, --verbose</code> option<br />
CONFIGURATION: <a href="https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html</a><br />
PLATFORM: Espressif 32 (3.2.1) &gt; M5Stack Core2<br />
HARDWARE: ESP32 240MHz, 6.25MB RAM, 16MB Flash<br />
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)<br />
PACKAGES:</p>
<ul>
<li>framework-espidf @ 3.40201.210513 (4.2.1)</li>
<li>tool-cmake @ 3.16.4</li>
<li>tool-esptoolpy @ 1.30000.201119 (3.0.0)</li>
<li>tool-mkspiffs @ 2.230.0 (2.30)</li>
<li>tool-ninja @ 1.9.0</li>
<li>toolchain-esp32ulp @ 1.22851.191205 (2.28.51)</li>
<li>toolchain-xtensa32 @ 2.80400.210211 (8.4.0)<br />
Reading CMake configuration...<br />
LDF: Library Dependency Finder -&gt; <a href="https://bit.ly/configure-pio-ldf" target="_blank" rel="noopener noreferrer nofollow ugc">https://bit.ly/configure-pio-ldf</a><br />
LDF Modes: Finder ~ chain, Compatibility ~ soft<br />
Found 0 compatible libraries<br />
Scanning dependencies...<br />
No dependencies<br />
Building in release mode<br />
Linking .pio/build/core2foraws/firmware.elf<br />
Retrieving maximum program size .pio/build/core2foraws/firmware.elf<br />
Checking size .pio/build/core2foraws/firmware.elf<br />
Advanced Memory Usage is available via "PlatformIO Home &gt; Project Inspect"<br />
RAM:   [          ]   0.9% (used 56112 bytes from 6553600 bytes)<br />
Flash: [==        ]  15.5% (used 1014972 bytes from 6553600 bytes)<br />
Configuring upload protocol...<br />
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa<br />
CURRENT: upload_protocol = esptool<br />
Looking for upload port...<br />
Auto-detected: /dev/cu.SLAB_USBtoUART<br />
Uploading .pio/build/core2foraws/firmware.bin<br />
<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a> v3.0<br />
Serial port /dev/cu.SLAB_USBtoUART<br />
Connecting....<br />
Chip is ESP32-D0WDQ6-V3 (revision 3)<br />
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None<br />
Crystal is 40MHz<br />
MAC: 30:c6:f7:1d:11:c0<br />
Uploading stub...<br />
Running stub...<br />
Stub running...<br />
Changing baud rate to 2000000<br />
Changed.<br />
Configuring flash size...<br />
Auto-detected Flash size: 16MB<br />
Compressed 25184 bytes to 15298...<br />
Writing at 0x00001000... (100 %)<br />
Wrote 25184 bytes (15298 compressed) at 0x00001000 in 0.1 seconds (effective 1597.1 kbit/s)...<br />
Hash of data verified.<br />
Compressed 3072 bytes to 148...<br />
Writing at 0x00008000... (100 %)<br />
Wrote 3072 bytes (148 compressed) at 0x00008000 in 0.0 seconds (effective 2284.7 kbit/s)...<br />
Hash of data verified.<br />
Compressed 1015088 bytes to 638561...<br />
Writing at 0x00010000... (2 %)<br />
Writing at 0x00014000... (5 %)<br />
Writing at 0x00018000... (7 %)<br />
Writing at 0x0001c000... (10 %)<br />
Writing at 0x00020000... (12 %)<br />
Writing at 0x00024000... (15 %)<br />
Writing at 0x00028000... (17 %)<br />
Writing at 0x0002c000... (20 %)<br />
Writing at 0x00030000... (23 %)<br />
Writing at 0x00034000... (25 %)<br />
Writing at 0x00038000... (28 %)<br />
Writing at 0x0003c000... (30 %)<br />
Writing at 0x00040000... (33 %)<br />
Writing at 0x00044000... (35 %)<br />
Writing at 0x00048000... (38 %)<br />
Writing at 0x0004c000... (41 %)<br />
Writing at 0x00050000... (43 %)<br />
Writing at 0x00054000... (46 %)<br />
Writing at 0x00058000... (48 %)<br />
Writing at 0x0005c000... (51 %)<br />
Writing at 0x00060000... (53 %)<br />
Writing at 0x00064000... (56 %)<br />
Writing at 0x00068000... (58 %)<br />
Writing at 0x0006c000... (61 %)<br />
Writing at 0x00070000... (64 %)<br />
Writing at 0x00074000... (66 %)<br />
Writing at 0x00078000... (69 %)<br />
Writing at 0x0007c000... (71 %)<br />
Writing at 0x00080000... (74 %)<br />
Writing at 0x00084000... (76 %)<br />
Writing at 0x00088000... (79 %)<br />
Writing at 0x0008c000... (82 %)<br />
Writing at 0x00090000... (84 %)<br />
Writing at 0x00094000... (87 %)<br />
Writing at 0x00098000... (89 %)<br />
Writing at 0x0009c000... (92 %)<br />
Writing at 0x000a0000... (94 %)<br />
Writing at 0x000a4000... (97 %)<br />
Writing at 0x000a8000... (100 %)<br />
Wrote 1015088 bytes (638561 compressed) at 0x00010000 in 10.1 seconds (effective 807.7 kbit/s)...<br />
Hash of data verified.</li>
</ul>
<p dir="auto">Leaving...<br />
Hard resetting via RTS pin...<br />
======================================================= [SUCCESS] Took 37.79 seconds =======================================================<br />
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time<br />
--- More details at <a href="https://bit.ly/pio-monitor-filters" target="_blank" rel="noopener noreferrer nofollow ugc">https://bit.ly/pio-monitor-filters</a><br />
--- Miniterm on /dev/cu.SLAB_USBtoUART  115200,8,N,1 ---<br />
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---<br />
␛[0;32mI (1055) spiram: SPI SRAM memory test OK␛[0m<br />
␛[0;32mI (1056) heap_init: Initializing. RAM available for dynamic allocation:␛[0m<br />
␛[0;32mI (1056) heap_init: At 3FFAE6E0 len 0000F480 (61 KiB): DRAM␛[0m<br />
␛[0;32mI (1062) heap_init: At 3FFCB690 len 00014970 (82 KiB): DRAM␛[0m<br />
␛[0;32mI (1068) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m<br />
␛[0;32mI (1075) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m<br />
␛[0;32mI (1081) heap_init: At 40093A30 len 0000C5D0 (49 KiB): IRAM␛[0m<br />
␛[0;32mI (1088) cpu_start: Pro cpu start user code␛[0m<br />
␛[0;32mI (1092) spiram: Adding pool of 4082K of external SPI memory to heap allocator␛[0m<br />
␛[0;32mI (1113) spi_flash: detected chip: generic␛[0m<br />
␛[0;32mI (1114) spi_flash: flash io: dio␛[0m<br />
␛[0;32mI (1114) cpu_start: Starting scheduler on PRO CPU.␛[0m<br />
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m<br />
␛[0;32mI (1122) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations␛[0m<br />
␛[0;32mI (1342) ILI9341: Initialization.␛[0m<br />
␛[0;32mI (1542) ILI9341: Display orientation: LANDSCAPE␛[0m<br />
␛[0;32mI (1542) ILI9341: 0x36 command value: 0x08␛[0m<br />
␛[0;32mI (1542) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:3 ␛[0m<br />
␛[0;32mI (1552) atecc608: Seeding the random number generator...␛[0m<br />
␛[0;32mI (1552) atecc608: ok␛[0m<br />
components/esp-cryptoauthlib/cryptoauthlib/lib/calib/calib_read.c:103:f0:calib_read_zone - execution failed<br />
components/esp-cryptoauthlib/cryptoauthlib/lib/calib/calib_read.c:619:f0:calib_read_zone - falied<br />
␛[0;32mI (22562) atecc608: Initializing ATECC608 secure element␛[0m<br />
␛[0;32mI (22572) atecc608: <em>FAILED</em> atcab_init returned f0␛[0m<br />
␛[0;31mE (22572) Core2forAWS: ATECC608 secure element initialization error!␛[0m</p>
<p dir="auto">abort() was called at PC 0x400d51c3 on core 0</p>
<p dir="auto">Backtrace:0x4008bad7:0x3ffb1e20 0x4008c181:0x3ffb1e40 0x40090306:0x3ffb1e60 0x400d51c3:0x3ffb1ed0 0x400d270b:0x3ffb1f10 0x400fe605:0x3ffb1f40 0x4008c189:0x3ffb1f70</p>
<p dir="auto">ELF file SHA256: 38b4676c834503a7</p>
<p dir="auto">Rebooting...</p>
]]></description><link>https://community.m5stack.com/topic/4342/troubleshooting-core2foraws-atecc608-secure-element-initialization-error</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 19:53:35 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4342.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Jun 2022 14:49:49 GMT</pubDate><ttl>60</ttl></channel></rss>