2022-04-21 03:40 AM
After using the MCU with no problem for weeks, i was trying to test a FDCAN application together with a raspberry pi, after that day, it's been having problems, it fails to connect to cube programmer, and it fails to run code that used to work perfectly.
Details about the errors I get:
I get different errors on different situations:
"no ST-link detected, Please connect ..."
If I change the debug configuration Reset behaviour I get:
"Failed to start GDB server, no device found on target"
If I try to connect from STMcubeProgrammer it can't unless I follow these steps:
turn the MCU on while pressing reset,
close the window that prompts in my screen showing the contents,
Click connect,
Release RESET.
This allows me to MASS erase.
I go back to the IDE and it allows me to upload code to debug but it shows this warning:
"Break at address "0xfffffffe" with no debug information available, or outside of program code."
if I click "open disassembly" it goes to this line:
"080002dc: bl 0x8000a18 <HAL_Init>"
After this, if I try to do "step over" or any other instruction or upload more code, it fails again (no ST-link detected).
I have tried changing the debug configuration, and reinstalling the IDE.
2022-04-25 11:35 AM
Hi,
Please provide more details.
2022-04-26 02:11 AM
Hello Mattias, thanks for the help
Before I answer the questions, I have new information:
I installed the CubeIDE in a coworker's PC and everything worked fine in there. That leads me to believe that the problem is in some IDE configuration and not in the board itself. Just reinstalling th IDE doesn't fix it for me though.
¿Is there a way to return the IDE to factory setting, or to completely erasing it before reinstalling?
¿Any suggestion is a big help?
Thaks,
Mario
2022-04-27 02:45 AM
I am wondering if this problem is not at all related to running the FDCAN demo. Maybe just a coincidence?!
Maybe something in your PC environment has changed?
Could you temporarily disable any anti-virus / firewall? And try debug?
I also don't think the problem is inside the IDE itself since you say that also CubeProgrammer does not work as intended. The common denominator would be drivers for the ST-LINK. Maybe try to re-install those?
A "factory reset" in CubeIDE would be the equivalent of re-installing CubeIDE and starting in a new workspace. And you already tried re-installing.
Could you try to select debug with OpenOCD instead of ST-LINK GDB server instead? That could give us some more clues...