2024-11-22 05:11 AM
Hi
I am trying to use a Nucleo-F103 board with STM32CubeIDE (v1.16.1) on Windows 11.
I have installed/uninstalled the IDE several times over the past few days but every time I get stopped at the beginning of the programming process (the code compiles OK).
The message I have is "Launching : performing pre-launch check" and that's where it stops. I occasionally get a message "Termination of previous launch did not complete successfully" but that doesn't help much.
I know the board works as I can program it on my personal computer (running Windows 11 and the same toolchain installed today) but I would like to use my work computer for this task.
The code is generated by STM32CubeMX and is just a simple LED flasher to confirm the programming process.
It feels like it should be a very simple fix but I can't work out what is missing.
I have tried a lot of different settings in the configuration for debug and run but again, nothing has changed in the behaviour.
It should work out of the box (as on my other PC) but doesn't. The major difference is that the work PC probably has more restrictions but even so, everything is good up to the point of programming. No logs seem to be generated even when requested in the configuration.
Thanks in advance for any suggestions.
Max
2024-11-22 07:06 AM
Work computers often are plagued with all kinds of "security", "data leak prevention" and especially "USB control" crарware. Ask your IT how to get rid of it, if possible.
2024-11-22 07:12 AM
Hi Pavel
Agreed but the IT department is not much help. Been there already, tried to do that.
This is a relatively simple problem - everything looks normal up to the point of actually running. Just feels like something has been misplaced or an option not checked.
Ideally I need some form of log to show what has happened and where it stops. I'm not sure I'm getting anything at all so it feels like the whole process is not starting.
Where should I look for a log of what's happening and does it need to be enabled?
Cheers
Max
2024-11-22 07:49 AM
The log should be in the debug terminal view of CubeIDE when debugging starts. For more info about the debugger see the CubeIDE GDB server document, UM2576 ch.3
2024-11-22 08:17 AM
Hi Pavel
Thanks for the interest and help so far.
There is nothing in the console. I have just checked with the other PC and that has output from the moment I press the button. The work PC has nothing.
I have tried using the STM32CubeProgrammer CLI and that works as expected. Tried using the STM32CubeProgrammer GUI and that works too - both on the work PC.
I don't think the USB is the problem as the IDE can scan for the STLink and find it.
In the progress pane, under the launch progress bar, there are a lot of messages about what look like downloads but they're so quick I can't read them. This only happens after the IDE is restarted.
Cheers
Max