2023-03-02 07:53 PM
to start, i would like to say that i was taking Udemy Course related to Embedded C - Absolute Beginners. in the tutorial it was not clearly explain how to port the STM32 and connect it to IDE. this are the chronological order:
So im very confused. i can't progress at all. first there is no ST-Link detected in STM32CubeIDE and now to STSW-Link007. So i would like to ask. where did i go wrong? I've been doing this for 1 and a half day ever since it was delivery but nothing works. I highly appreciate any help. This is my first time interfacing with STM32 pheripheral so there might be something i missed....
Others:
in a 1 Q&A, someone said i should do this: in the Getting Started in Page 9 of this Manual i should follow the steps. but i cant exactly follow it as there is different ports in my STM32. so i do not know the equivalent of that in my VET6. additionally im not sure if this is the correct solution as well, though worth mentioning if one of the solution, if not the exact solution.
My STM32f407
Materials:
2023-03-02 10:59 PM
ST-LINK is a separate chip used for debugging. Seems that your board doesn't have it. Find the schematics of your board and try to attach a separate ST-LINK dongle. Or, easier: get a genuine STM32F4DISCOVERY or STM Nucleo board which already have it.
hth
KnarfB
2023-03-03 05:48 AM
Hello @KBerc.3 ,
At first, welcome to the community.
Could you please check this points:
I will be waiting for your feedback.
Regards,
Rim
2023-03-03 06:19 AM
on your dev-e board is no STlink, you have it to connect here:
SWD connector: gnd, swd(dio), swc (clk) ; solder pin header here, connect to some debug probe : Jlink, STlink , ...
maybe some cheap clone:
or better :
2023-03-07 03:14 AM
OMG you are going through exactly the same thing I am right now,I too have enrolled in the Embedded C course and got stuck at this same point and still not found a solution
Unlike though I have the STM32F407 Discovery board with the on-borad ST-Link/V2 but still nothing is working
I cannot proceed because for some reason my ST-Link is not detected by my laptop. It is so annoying to get stuck at the first step of my embedded journey. I have been trying stuff but nothing seems to work,
I installed the driver from the st website still i get the same error. The " Getting started" steps are working, the tilting LED response and cursor movement when I connect both cabled to the laptop but when I go to debug my Target program of a simple "Hello World " the same error shows :"No ST- LINK detected.Please connect the ST-LINK and restart the debug session"
When I do connect the board,Control panel shows the following change and this appears saying "Unknown USB Device(Device Descriptor Request Failed)" while the Board still has the running pre-loaded program of 4 LEDs and MEMS(if if push the button) meaning the power is reaching through my cable
I have been stuck here for so long and not able to proceed from the first step of the whole journey to learn Embedded C, please help.
Things I tried:I uninstalled and reinstalled the drivers multiple times(tried the ones on website too-which are the same) ,Uninstalled and reinstalled the whole IDE and also checked by installing in different drives (C & D),Checked Hardware and Devices troubleshooting,Updated Windows, Tried to provide the driver location to the above highlighted Unknown USB Device driver to the location where drivers are of STSW-LINK009 etc
but nothing is working and I have not been able to even write my first program on the board!
Is my ST-Link harware damaged/soldering error or what else is out of place? I will also try out a new cable tomorrow once i get one but I don't know how likely it is(as I read in someone else who had the same problem).
Please help. I would be very very grateful.
2023-03-07 06:52 AM
thanks for answering Rim LANDOLSI and Ascha 3. i currently ordered a different STM32 board. this time from STM32 shop. not in their shop but their website is out of stock but one of their distributer is redirecting me is to DIGI KEYS where the provider/manufacturer is STMicroelectronics too. currently on its way to my home. prbably within this weekday. it is still on shipping since so ill give update as soon as it arrive. i decided to give up this stm32 and buy a non-clone one or atleast the compatible one.
apologize for not answering asap. i was very busy outside of internet doing personal stuffs so it took time for this to enter in my notifications.
Best Regards, Keanu.
2023-03-07 07:08 AM
Do Not Panic! (C)
First, check that your ST-LINK is not damaged.
Disconnect it from the target and connect (the USB end, of course) to some other good PC.
It does not matter if ST-LINK driver is not installed there (or you don't know) - do not install anything.
Open Device Manager and look for the ST-Link there (even if driver is not installed, it will be visible under USB devices). On Linux, use sudo lsusb.
If not visible, or "Device Descriptor request failed" - try to replace the USB cable and/or connect thru a powered USB hub.
If nothing of this helped, your ST-LINK likely finished its useful life.
Otherwise, connect ST-LINK to the target and check again. Still alive? Great, move it to your work machine (where you have installed the drivers and the rest of tools).
If you see "no ST-LINK detected" now, this should be purely software issue.
This includes refusal of new ST tools to work with fake ST-LINKv2 copies.