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

nstylianou
Posts: 4
Joined: Thu Apr 06, 2023 8:01 am

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

Postby nstylianou » Mon Sep 11, 2023 11:06 am

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?
Attachments
IMG_20230908_165312.jpg
IMG_20230908_165312.jpg (1.07 MiB) Viewed 8997 times

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Tue Sep 12, 2023 5:25 am

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?

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

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

Postby lbernstone » Tue Sep 12, 2023 6:15 am

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.

nstylianou
Posts: 4
Joined: Thu Apr 06, 2023 8:01 am

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

Postby nstylianou » Tue Sep 12, 2023 11:18 am

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?
Attachments
IMG-13d99d8e20567b01b40478306fd6df78-V.jpg
IMG-13d99d8e20567b01b40478306fd6df78-V.jpg (71.56 KiB) Viewed 8840 times
IMG-82766d9c92d80a35c073ca61359ece30-V.jpg
IMG-82766d9c92d80a35c073ca61359ece30-V.jpg (162.52 KiB) Viewed 8840 times
IMG-b71a3b6d7ac73332aff2d0f03b7d3f56-V.jpg
IMG-b71a3b6d7ac73332aff2d0f03b7d3f56-V.jpg (99.92 KiB) Viewed 8840 times

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed Sep 13, 2023 2:59 am

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?

Who is online

Users browsing this forum: No registered users and 85 guests