Hi,
setup:
- PCBA incl. GigaGevice GD32F307VC
- J-Link Compact: SWD Interface
- Windows 10
- DLL Version: v7.80c
When I reconfigure the SWD Pins to normal GPIOs in the firmware right after bootup I'm having the issue that I'm not able to connect to the controller through SWD interface anymore by using jlink.exe:
1. connect [ENTER]
2. GD32F307VC [ENTER]
3. S [ENTER] // using SWD Interface
4. [ENTER] // using default speed: 4000 kHz
=> Failed to power up DAP
=> CPU cannot be halted
I've already tried to set the reset type to ALL available options after "connect under reset" did not work.
Additionally I've decreased the interface speed to a way lower value (< 1000 kHz) - still no luck.
Digging further into this issue I've found out that it's possible to establish a connection when using speed 0 / auto (seen that when connecting with the default settings of jmem.exe it worked).
I know I already have a workaround for this issue (which took some time to find) - still it would be important to know what is done differently when using "speed auto" in the DLLs?
I also want to make sure that I'm using the correct way to connect in our own J-Link applications (bought the J-Link SDK last year...).
Thanks!
Daniel
setup:
- PCBA incl. GigaGevice GD32F307VC
- J-Link Compact: SWD Interface
- Windows 10
- DLL Version: v7.80c
When I reconfigure the SWD Pins to normal GPIOs in the firmware right after bootup I'm having the issue that I'm not able to connect to the controller through SWD interface anymore by using jlink.exe:
1. connect [ENTER]
2. GD32F307VC [ENTER]
3. S [ENTER] // using SWD Interface
4. [ENTER] // using default speed: 4000 kHz
=> Failed to power up DAP
=> CPU cannot be halted
I've already tried to set the reset type to ALL available options after "connect under reset" did not work.
Additionally I've decreased the interface speed to a way lower value (< 1000 kHz) - still no luck.
Digging further into this issue I've found out that it's possible to establish a connection when using speed 0 / auto (seen that when connecting with the default settings of jmem.exe it worked).
I know I already have a workaround for this issue (which took some time to find) - still it would be important to know what is done differently when using "speed auto" in the DLLs?
I also want to make sure that I'm using the correct way to connect in our own J-Link applications (bought the J-Link SDK last year...).
Thanks!
Daniel