H755: Need to erase full chip flash memory after every powerloss to the board
Hello i'm new to STM32, i'm doing school project on in. Basically the plan is to read oil temperature from CAN bus in car, and display the temperature on analog clock using servo. I have the H755ZI-Q board for this. I know it's bit overkill for what i'm doing but i'm fine with it.
I've did a test code for inter core communication test. Since i want to receive the CAN info on M4. Calculate the PWM signal on M7 and then the M4 will update the PWM signal. Now it just send some numbers and displays it via uart on pc console for checking the data. But as soon as i wanted to implement the servo i started to have some issues. Basically i enabled the TIM2 with PWM generation on M4, and then the board didn't want to communicate via the STLINK. I've got error: failed to start GDB server (No device found on target). So I've erased the flash memory by bridging the BOOT0 and VDD and erasing it in CubeProgrammer. And then i have to run different project first, before mine for it to event program the board (i use STM32H7_IPC_OpenAMP from you guys). But as soon as i disconnect and connect the usb something must happend with the flash memory because, then i have to do this whole procedure again. Otherwise i get error: failed to execute MI command (load C:\\...Can-Communication_CM4.elf Error finishing flash operation)
Also don't know why i can't change SupplySource to PWM_DIRECT_SMPS_SUPPLY, i have it currently set to PWR_LDO_SUPPLY

APB1 timer clock runs at 240MHz

