Page 1 of 1

uploading error: exit status 2 , NO XMC flash detected!

Posted: Mon Sep 11, 2023 11:06 am
by nstylianou
Hello everyone,

I recently designed a PCB based on the ESP32 processor, specifically the ESP-WROOM-32 XXN16, and it worked perfectly.
Now, I'm in need of an additional board with the exact same features, wiring, components, and everything identical, except for the processor, which is now the ESP32-WROOM-32 XX0H28.

The problem is that I'm unable to upload code to the ESP32 with the new controller XX0H28 .

I have the following error messages:
=>In the Arduino IDE, I receive the error code: "Failed uploading: uploading error: exit status 2".
=>In the flash_download_tool_3.9.5, I receive the error code: "NO XMC flash detected!"

Does anyone know how I can deal with the above problem?

Re: uploading error: exit status 2 , NO XMC flash detected!

Posted: Tue Sep 12, 2023 5:25 am
by ESP_Sprite
Do you have schematics?
Can you measure voltages? Stable 3.3V, EN is high after startup?
If you start a serial terminal program to the serial port (115200, no parity, 8 data bits, 1 stop bit) and reset the cpu, do you get any text?

Re: uploading error: exit status 2 , NO XMC flash detected!

Posted: Tue Sep 12, 2023 6:15 am
by lbernstone
What version of arduino-esp32 do you have in Arduino IDE?
A simple test I recommend is finding esptool (it is an exe on windows, a py elsewhere), and running esptool chip_id and esptool flash_id from the command line. This should ensure that the version of esptool you are using recognizes the chip and flash on the device. If not, upgrade to a more recent version of esptool.

Re: uploading error: exit status 2 , NO XMC flash detected!

Posted: Tue Sep 12, 2023 11:18 am
by nstylianou
I have attached a photo of the schematics, and I replaced the XX0H28 with the XXN16, which resolved the issue. Therefore, it appears that the problem lies with the XX0H28 component rather than the schematics.

Regarding the recommended test using esptool, we continue to encounter the same problem. We receive a 'WARNING: Failed to communicate with the flash chip.' error.

Based on the current information what else do you suggest I try?

Re: uploading error: exit status 2 , NO XMC flash detected!

Posted: Wed Sep 13, 2023 2:59 am
by ESP_Sprite
I doubt that one module is broken and the other isn't. They're exactly the same model; it's generally more common that something in your circuit is not implemented correctly making the chips work marginally.

For instance: IO12 is a bootstrap pin that selects the flash voltage. Are you sure that has the proper voltage (see chip/module datasheet) on startup?