Skip to content

[STM32] Global GPIO Reset at startup breaks debugger connection #14158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CBazille opened this issue Jan 15, 2021 · 2 comments
Closed

[STM32] Global GPIO Reset at startup breaks debugger connection #14158

CBazille opened this issue Jan 15, 2021 · 2 comments

Comments

@CBazille
Copy link

Description of defect

For STM32L433CC device on custom board, and possibly for all STM32 devices, call to GPIO_Full_Init(); added in in mbed_overrides.c leads to all GPIOs being reset, including SWD pins. This leads to the debugger losing connection to the target, leading in turn to a SIGTRAP. Target is not affected by the loss of debugger and enters main correctly.

Target(s) affected by this defect ?

STM32L433CC on custom board, but probably all targets where SWD pins are configurable as GPIOs.

Toolchain(s) (name and version) displaying this defect ?

ARM GCC 8.1.0
GNU GDB 8.1

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.6.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli 1.10.4

How is this defect reproduced ?

Create new mbed program, compile and start debug session. Connection to target should be lost with SIGTRAP.

@Copper-Bot
Copy link

Hello,

A pull request is already open to fix this issue: #14032

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 15, 2021

As it was merged, I close this as resolved. If it does not fix your issue, please update the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@Copper-Bot @0xc0170 @adbridge @CBazille and others