ESP compile error

For general Flowcode discussion that does not belong in the other sections.
Post Reply
MJU20
Posts: 246
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

ESP compile error

Post by MJU20 »

I've been trying to flash this ESP32 WroverB module for a few days but I always get this error..

Code: Select all

ninja: no work to do.
.

esptool.py v2.9-dev
Serial port COM6
Connecting...
.
.


A fatal error occurred: Invalid head of packet (0x65)
Adding "flash"'s dependency "all" to list of commands with default set of options.
Executing action: all (aliases: build)
Running ninja in directory d:\flowcode9\esp32\wom\wee\build
Executing "ninja all"...
Executing action: flash
Running esptool.py in directory d:\flowcode9\esp32\womd\wee\build
esptool.py failed with exit code 2
Programming Failed

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_prog.bat reported error code 0x1

Autoclose turned off


FINISHED
A fatal error occurred: Invalid head of packet (0x65)
I've changed the Flash size to 4Mbyte in idf.py menuconfig (the ESP is 4Mb), but I don't know what to try next...

In Arduino serial monitor I get this message after it boots:

Code: Select all

ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5564
load:0x40078000,len:0
load:0x40078000,len:13756
entry 0x40078fb4
[0;32mI (29) boot: ESP-IDF v3.0.3 2nd stage bootloader[0m
[0;32mI (29) boot: compile time 08:53:32[0m
[0;32mI (29) boot: Enabling RNG early entropy source...[0m
[0;32mI (34) boot: SPI Speed      : 40MHz[0m
[0;32mI (38) boot: SPI Mode       : DIO[0m
[0;32mI (42) boot: SPI Flash Size : 4MB[0m
[0;31mE (46) flash_parts: partition 3 invalid magic number 0xebeb[0m
[0;31mE (52) boot: Failed to verify partition table[0m
[0;31mE (57) boot: load partition table error![0m
user code done
What else can I do to get my Flowcode project onto the ESP32?

BenR
Matrix Staff
Posts: 1747
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 444 times
Been thanked: 604 times

Re: ESP compile error

Post by BenR »

Hello,

From a bit of Googling it could be down to a faulty ESP32 device. Do you have another device you can try and use to double check. Do you have anything conected to the ESP that could be blocking the flash pins from working properly?

MJU20
Posts: 246
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: ESP compile error

Post by MJU20 »

Thank you BenR,

Sorry for may late response but I didn't see the notification for the reply.

I found that there probably is a problem with some kind of Flash on the board.
Told the Chinese seller (via Alie..), and they paid me back the module.

Thanks again for your help!

Post Reply