Read chapter Debug Support in reference manual.
In unprogrammed device all optional SWD pin pairs have SWD function, also in reset state before user configuration has been established. This way, you have always access to SWD. To actually use SWD, one SWD pin pair must be wired to a debug connector, in most board designs, it will be used exclusively for this purpose and not configured as GPIO.
Read chapter Debug Support in reference manual.
In unprogrammed device all optional SWD pin pairs have SWD function, also in reset state before user configuration has been established. This way, you have always access to SWD. To actually use SWD, one SWD pin pair must be wired to a debug connector, in most board designs, it will be used exclusively for this purpose and not configured as GPIO.
it should be an easy task to do an internet search for "what´s the difference between SWD and JTAG" ... maybe also add "STM32."
STM provides a lot of documents (applicatio notes) to explain SWD and JTAG.
If you do an internet search about this topic you also will find youtube videos for more "visual learning".
Please spend the time to go through some of them ... and if there are any questions left: please refer to these documents. (Provide links and tell chapter, page, time stamp...)
When DEBUGGING: then performing a RESET initializes a lot of registers and will restart the microcontroller. .. like after power down
But for sure you may step through your code .. thus not for every SWD communication a RESET is used. Then you rather use HALT (without modifying registers) and RESUME the code processing (as if no debug happenend). In this case any alternative use of the SWD pins may cause problems.
Please spend the time to go through some of them ... and if there are any questions left: please refer to these documents. (Provide links and tell chapter, page, time stamp...)
the most origine information is in the manufacturer´s documentation.I was searching for youtube videos or rather the visualization. It was basics how SWD communication works.
I was rather looking for information about how SWD is able to connect with MCU when it is under RESET.
Did you do so?Read chapter Debug Support in reference manual.
Did you do so?
We don´t even know which exact STM32 you are using ... but you should know. So go the manufacturer, to the exact microcontroller site, press the [documentation] link, press the [Reference manual] link. There you are. Open it, go to the [Debug Support] chapter and read ..
..so you could program it using JTAG?Although on the unprogrammed MCU I could program it using JTAG
..so you could program it using JTAG?
The STM32L031G6U6?
I took the effort to search for the microcontroller´s datasheet (since you did not provide a link) ... then I did a simple search for "JTAG" ... but there is no JTAG.
.. and it takes you 8 posts and about 1 day to tell us which microcontroller you use .. for us to validate what you tell us...
If you don´t even read the datasheet ... I won´t be the one reading it for you.
It´s your job. And it´s nothing special .. since every designer needs to read it.
not I ... YOU are the first to read the datasheet ... and if necessary the additional documentsI thought this is what you've needed.
not I ... YOU are the first to read the datasheet ... and if necessary the additional documents
You have read about SWD ...But since you've said nothing about what I've read about SWD
and you did program your microcontroller using JTAG ..
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?