STM32F469 Weird Half-Executing old program stuck
I'm still struggling to get STM32F469 to run TouchGFX. Something REALLY weird happened yesterday, and I wasn't able to recover Disco board since.
I have 2 projects in STM32CubeIDE:
Project 1 turns on the screen and has some GUI - I backed up that project to always have something with working screen.
Project 2 is extension of Project 1, was a copy of project 1, which I developed further, also turns on display and has working GUI.
In my project 2, I have attached external flash loader and ticked the box "initialize". Ticking that box seems to have killed my disco board (before I ticked that box, I had no problems even with external loader, everything worked correctly. I don't exactly know what initialize does, it's not explained anywhere, so I figured whatever it initializes, I need it. But it bricked my disco board). How? No clue. This is what happened after that:
Weird thing 1: No matter what project I flash, I get blank screen. Known working project with GUI - project 1 - Also shows black screen. GPIO are initialized tho, there is backlight, which is GPIO activated.
Weird thing 2: I have unticked the initialize and disabled the external flash loader altogether - neither project produced picture nevertheless.
Weird thing 3: In known working project 1, I added blinking LED before LCD initialization. Flashed it - it blinked and produced no picture afterwards. Then I flashed project 2, which doesn't have blinking LED before LCD initialization. I flashed project 2 and...saw LED BLINK! Program was verified by the loader! I uploaded new program, but it executes old program!
Weird thing 4: whenever I program the MCU, I need to manually physically reset it every time (either reset button or power cycle), which was not the case before everything suddenly went to hell.
Googling yielded no results no matter how I worded the situation.
I have tried to update ST-Link Firmware. Didn't help.
Does anyone have any suggestion about what I broke this time, how, and how to fix it?
