2023-05-17 12:37 AM - edited 2023-11-20 05:16 AM
Hi guys, I am using Nucleo-F446RE board in cubeide (version 1.12.1), with basically every step was by defalut when I created new project, a problem occured when I tried to debug, as it showed " Error finishing flash operation " , anyone got any ideas? Thanks
2023-05-17 12:55 AM
Did it happen after your prog. crashed? If so, try rebooting. Sometimes old processes are still active after a crash.hth
KnarfB
2023-05-17 01:16 AM
Hi, it is a brand new dev board which I just unpacked, so I guess maybe there is no old processes or prog. in there? And is it related to the debugger probe? as by defalut degugger uses ST-LINK GDB sever. And most of the tutorials on youtube skip this debug configurarion by defalut, so I am a little bit confused about that.
2023-05-17 01:17 AM
Hi, it is a brand new dev board which I just unpacked, so I guess maybe there is no old processes or prog. in there? And is it related to the debugger probe? as by defalut degugger uses ST-LINK GDB sever. And most of the tutorials on youtube skip this debug configurarion by defalut, so I am a little bit confused about that.
2023-05-17 01:44 AM
Connect the board to the CubeProgrammer and look at the OptionBytes (OB) setting, if there isnt a limitation of writing to Flash or disable debug. I would also recommend upgrading the FW in ST-Link.
2023-05-17 02:00 AM
No, I meant processes on the PC related to the debugger (gdb).
2023-05-17 02:11 AM - edited 2023-11-20 05:17 AM
Hi, I have updated firmware version to V2J42M27, and in CubeProgrammer, when I tried to erase full chip flash memory, it has error saying "Mass erase operation failed. Please verify flash protection", whereas in OB, all the boxes for write protection are checked ,meaning protection are not active.
2023-05-17 02:20 AM
Ah. I just restart the laptop, still not working.:grinning_face_with_sweat:
2023-05-17 03:15 AM
Try do it under reset.