flipperdevices / flipperzero-firmware

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

USB: Fix file writing hang regression for big files #3622

Closed Willy-JL closed 3 weeks ago

Willy-JL commented 2 months ago

What's new

Verification

Checklist (For Reviewer)

skotopes commented 2 months ago

https://github.com/flipperdevices/flipperzero-firmware/pull/3358 actually fixes two problems:

So what you doing here is breaking first one. I'd rather see proper fix that is finding root cause of single endpoint cdc crash.

Willy-JL commented 2 months ago

I see, thanks for clearing that up. It's the crucial piece of information that wasn't specified anywhere (atleast as far as I could see).

I'll try to find out more but it is really difficult to debug, there are no weird logs or crashes usually, just stops working. It almost feels like random memory corruption.

skotopes commented 3 weeks ago

Correct fix that properly covers all cases in #3705