Comments (4)
SWCLCK is driven low here, the 2 second delay could be added there? hal.delay_ms(2000, NULL);
from stm32f1xx.
Yes, that works as advertised. SWDIO (PA13) is still driven low. I don't see a reference to that pin anywhere. It seems like driving it low is a default action.
from stm32f1xx.
It seems like driving it low is a default action.
It is high level on my boards running grblHAL - with different board maps. I do not have a SKR board so cannot easily debug - must be bad code somewhere. Related to the TMC issue?
from stm32f1xx.
The problem is the bootloader. Once the bootloader is removed (overwritten), you can connect and debug.
For me, ST-Link devices (official and clones) did not "want" to connect, no matter what I tried.
I tried de-initting the pins, and then also setting SWD enable and/or JTAG enable in AFIO_MAPR. For what it's worth, I placed the following code in board_init() in btt_skr_mini_e3_2.0.c:
#ifdef RELEASE_SWD_PINS
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_14|GPIO_PIN_13);
// __HAL_AFIO_REMAP_SWJ_NOJTAG();
__HAL_AFIO_REMAP_SWJ_ENABLE();
#endif
I also removed C30, the reset timing cap, to try to improve the reset timing with "connect_under_reset" options.
Before I could learn what else the problem could be, I tried a Segger J-Link. It connected immediately, the bootloader was gone, and I was debugging.
Mind you, the board does not support SWD and USB communication at the same time. (Unless you modify the board. I connected GPIO PB5 to the gate of U7 to pull D+ high, and modified the code in board_init() appropriately.)
from stm32f1xx.
Related Issues (20)
- Usb not working on 103RC HOT 30
- Port restrictions for 5-axis? HOT 2
- STM32CubeIDE Build Project failed with 5 errors. HOT 2
- Creality 4.2.2 stm32f103ret6 support HOT 6
- safety door enabled but not stopping the program HOT 2
- machine suddenly stops while working HOT 2
- how to compiling stm32f103c8t6 HOT 2
- Questions about grblhal using timers for outputting pulses HOT 2
- Z probe wiring diagram for skr mini e3 v2 HOT 7
- Please, help check and suggest modifications CNC3040 map file. HOT 16
- no usb com port HOT 4
- USB is not working on stm32f103RCT6. HOT 4
- Motor Stepper buzzes using A4988 and drv 8825 HOT 4
- error:7 - A settings read failed. Auto-restoring affected settings to default values. HOT 7
- Build fails, not enough flash HOT 3
- MiniGerbil 2 board map HOT 1
- STM32F103RCT6 : bad linker file
- Y & Z TMC2209s not being properly init'ed on BTT SKR Mini E3 V2.0 HOT 5
- E-stop/alarm issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stm32f1xx.