2024-09-06 02:53 AM
Hi.
I did "HSE on-board oscillator from X3 crystal (not provided)" on um1974-stm32.
But stlink doesn't recognize my board. Why?
I used an ats49 8Mhz 18pF crystal since there is no recommended crystal. C37 and C38 have 18pF attached.
HSE on-board oscillator from X3 crystal (not provided)
– SB148 and SB163 OFF
– SB8 and SB9 ON
– C37 and C38 soldered with 4.3 pF capacitors
– SB112 and SB149 OFF
Solved! Go to Solution.
2024-09-08 07:34 PM
I cut the STlink board from Nucleo-F722ZE board.
I connected the cut STLINK board to the nucleo board and SWD.
To connect swd, I connected 2 (JTCK), 3 (GND), and 4 (JTMS) of the SWD connector to 13(PA13), 15(PA14), and 19(GND) of the CN11 connector of the nucleo board.
SWD con. 2(JTCK) - CN11 con. 15(PA14, TCK)
SWD con. 3(GND) - CN11 con. 19(GND) <--- Common Ground between boards.
SWD con. 4(JTMS) - CN11 con. 13(PA13, TMS)
The power source for the nucleo board was 5V input from the outside using 6 (E5V) and 8 (GND) of CN11.
And the cut stlink board was connected to the PC via USB.
And for the "HSE on-board oscillator from X3 crystal(not provided)" that is not provided,
I processed it as follows.
X3 soldered with 8MHz crystal.
SB8 and SB9 ON.
C37 and C38 soldered with 18pF cap.
SB148, 149, 163 OFF.
SB112 was not processed separately as it was on the stlink board.
I've confirmed that stlink with this connection works fine on other PCs.
I don't know
But it's working fine now.
After not recognizing stlink after the first program, I tried setting it to "HSE not used". Then I changed the setting to “HSE on-board oscillator from X3” again.
Now stlink is recognized well.
I guess I did something wrong.
Thank you to everyone who helped.
2024-09-06 02:59 AM
STM32F7 not powered, not running?
2024-09-06 03:05 AM
I turned it on and tested it, but it's the same.
The below message is CubeIDE error messages.
STMicroelectronics ST-LINK GDB server. Version 7.8.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Target no device found
Error in initializing ST-LINK device.
Reason: No device found on target.
2024-09-06 05:18 AM
Hi.
I'm pretty sure that board is dead.
I have another board that is identical so I tested it further.
As above, I added the 8MHz oscillator and capacitor according to the manual.
And I set the RCC and clock configuration as follows:
And I checked the program download and operation through stlink.
But when I downloaded again via stlink, my cubeIDE did not recognize stlink.(It does not mean that the nucleo board is not recognized.)
I disconnected the 8MHz oscillator again, and cubeIDE recognized the nucleo board via stlink.
Why is stlink not recognized when I operate the 8MHz oscillator?
Does the HSE frequency affect the SWD frequency? Help me!!!
2024-09-06 05:19 AM
The issue is not related to the oscillator. It doesn't need an oscillator to connect.
How confident are we that those connections are solid and correct? Hard for me to see on the board where the wires are attached.
2024-09-06 05:28 AM
I checked again all modified point on the Nucleo board.
I proceeded according to the manual(um1974-stm32).
------------------------------------------
- HSE on-board oscillator from X3 crystal (not provided): for typical frequencies and
its capacitors and resistors, refer to the STM32 microcontroller datasheet and to the
Oscillator design guide for STM8S, STM8A and STM32 microcontrollers Application
note (AN2867) for the oscillator design guide. The X3 crystal has the following
characteristics: 8 MHz, 8 pF, 20 ppm. It is recommended to use NX3225GD-8.000MEXS00A-
CG04874 manufactured by NIHON DEMPA KOGYO CO., LTD. The
configuration must be:
– SB148 and SB163 OFF
– SB8 and SB9 ON
– C37 and C38 soldered with 4.3 pF capacitors
– SB112 and SB149 OFF
------------------------------------------
I downloaded the code to run HSE via stlink with the 8M oscillator not running. And when I tried to download again, cubeIDE did not recognize the stlink.
2024-09-06 06:01 AM
See if you can connect with standalone STM32CubeProgrammer. Try holding BOOT0 high during reset.
2024-09-06 06:57 AM
Ok, but what's actually wired up here? Describe, don't just post pictures.
Common Ground between board pieces?
2024-09-07 03:04 PM
Do yourself a favor, get a new ST-LINK V3 MINIE.
2024-09-08 07:34 PM
I cut the STlink board from Nucleo-F722ZE board.
I connected the cut STLINK board to the nucleo board and SWD.
To connect swd, I connected 2 (JTCK), 3 (GND), and 4 (JTMS) of the SWD connector to 13(PA13), 15(PA14), and 19(GND) of the CN11 connector of the nucleo board.
SWD con. 2(JTCK) - CN11 con. 15(PA14, TCK)
SWD con. 3(GND) - CN11 con. 19(GND) <--- Common Ground between boards.
SWD con. 4(JTMS) - CN11 con. 13(PA13, TMS)
The power source for the nucleo board was 5V input from the outside using 6 (E5V) and 8 (GND) of CN11.
And the cut stlink board was connected to the PC via USB.
And for the "HSE on-board oscillator from X3 crystal(not provided)" that is not provided,
I processed it as follows.
X3 soldered with 8MHz crystal.
SB8 and SB9 ON.
C37 and C38 soldered with 18pF cap.
SB148, 149, 163 OFF.
SB112 was not processed separately as it was on the stlink board.
I've confirmed that stlink with this connection works fine on other PCs.
I don't know
But it's working fine now.
After not recognizing stlink after the first program, I tried setting it to "HSE not used". Then I changed the setting to “HSE on-board oscillator from X3” again.
Now stlink is recognized well.
I guess I did something wrong.
Thank you to everyone who helped.