flipperdevices / flipperzero-firmware

Flipper Zero firmware source code
https://flipperzero.one
GNU General Public License v3.0
12.95k stars 2.74k forks source link

USB-UART Bridge error: Flipper Zero crashed. #4008

Open EstebanFuentealba opened 5 days ago

EstebanFuentealba commented 5 days ago

Describe the bug.

Hi,

I have a board (MALVEKE) where I’ve always flashed its firmware using the Flipper Zero’s USB-UART Bridge.

Previously, I was using firmware version 0.105.0, and everything worked perfectly.

Recently, I updated to version 1.1.2 and tried flashing the firmware to my boards, but now I’m encountering errors.

I’ve tested with several MALVEKE boards I used previously for development and troubleshooting. I even swapped the USB cable to rule out any issues with it, but I’m still frequently seeing errors like the following:

Captura de pantalla 2024-11-18 a la(s) 7 05 21 p  m

Video: https://www.youtube.com/watch?v=FLeudK6qEv4

Captura de pantalla 2024-11-18 a la(s) 7 05 05 p  m

IMG_20241118_195551

Video: https://www.youtube.com/watch?v=RtA6t9S1A90

Reproduction

  1. Connect the module to the Flipper Zero.
  2. Navigate to GPIO > USB-UART Bridge.
  3. Put the board into boot mode.
  4. Flash the firmware.

Target

GPIO

Logs

No response

Anything else?

No response

EstebanFuentealba commented 5 days ago

I downgraded to version 0.105.0, and the error no longer occurs.

kbembedded commented 4 days ago

To add some context, additional testing, and other references, here are links to some conversations in flipper discord: https://discord.com/channels/740930220399525928/967843558520418384/1308199204719431731 https://discord.com/channels/740930220399525928/967843558520418384/1308520453848961094 https://discord.com/channels/740930220399525928/765282833744265246/1308166431896244264

EDIT: My apologies, I misremembered and thought the 3rd link was also experiencing a crash.

GangsterFox commented 4 days ago

Adding some context to the third link above. The issue there which I am facing is the lack of data accuracy and data loss at higher baud rates using the UART to USB Bridge, similar to this issue and shouldn't be focused on in this issue.

valievdmitrii commented 3 days ago

i have this issue too. by steps: 1) open gpio -> uart-bridge 2) conect (for ex. openwrt board to uart) 3) open putty and open connect (speed transfer 115200) 4) input "dmesg" 5) after 20-30 lines putty show message - comport is out --> flipper is die.

FW ver: 1.1.2 HW 12.F7B9C6

APF-MRoger commented 3 days ago

Adding to this, trying to flash a ESP32 board over UART using the Flipper in USB-UART mode (so USB to PC and 13/14 to the ESP32), the flipper crashes. Sometimes right at the flashing start, sometimes at the baudrate change to higher speed for the actual bulk of the flashing.

doomwastaken commented 2 days ago

Greetings, we will verify it and if issue is there, will add it to test cases / create a ticket for it. Will update on it later

AeneasChristodoulou commented 2 days ago

Adding to this, trying to flash a ESP32 board over UART using the Flipper in USB-UART mode (so USB to PC and 13/14 to the ESP32), the flipper crashes. Sometimes right at the flashing start, sometimes at the baudrate change to higher speed for the actual bulk of the flashing.

I am experiencig the exact same issues, reading values from UART (e.g. Serial output) works with my ESPs, but if you want to flash the firmware or sometimes even on Baudrate change, the Flipper will crash with differing Error messages including hard fault and "MPU Fault, possible stack overflow"