Author Topic: Please confirm my header debug  (Read 1197 times)

0 Members and 1 Guest are viewing this topic.

Offline lawrence11Topic starter

  • Frequent Contributor
  • **
  • Posts: 321
  • Country: ca
Please confirm my header debug
« on: September 29, 2019, 05:54:28 am »
This good? Yay or Nay? These are pins with these acronyms attached to pins on Cubemx.

thx. ST-Link V3 mini swd header will be coming in.
« Last Edit: September 29, 2019, 05:56:02 am by lawrence11 »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Please confirm my header debug
« Reply #1 on: September 29, 2019, 06:07:15 am »
You don't need SWO for basic programming and debugging.  Other resistors are also optional for a basic configuration.
Alex
 

Offline lawrence11Topic starter

  • Frequent Contributor
  • **
  • Posts: 321
  • Country: ca
Re: Please confirm my header debug
« Reply #2 on: September 29, 2019, 02:25:21 pm »
This pin is not needed anyways.

So there will be debugging.

See any mistakes?
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14471
  • Country: fr
Re: Please confirm my header debug
« Reply #3 on: September 29, 2019, 03:23:29 pm »
SWO is basically an async serial output (from MCU -> whatever you want). I find it pretty handy for development, but it's indeed not required, it's just a plus.

Your wiring looks correct, I  checked the official Cortex debug connector for the pin-out.
The series resistors are probably already part of your debug probe, so you don't need to add them to your cable. (And if not, it's not a huge deal here. They are mainly to calm down EMI.)
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Please confirm my header debug
« Reply #4 on: September 29, 2019, 03:30:12 pm »
Yes, you still need the rest of the pins. But don't put any resistors, it would be a waste of time.
Alex
 

Offline lawrence11Topic starter

  • Frequent Contributor
  • **
  • Posts: 321
  • Country: ca
Re: Please confirm my header debug
« Reply #5 on: September 29, 2019, 03:53:18 pm »
SWO is basically an async serial output (from MCU -> whatever you want). I find it pretty handy for development, but it's indeed not required, it's just a plus.

Your wiring looks correct, I  checked the official Cortex debug connector for the pin-out.
The series resistors are probably already part of your debug probe, so you don't need to add them to your cable. (And if not, it's not a huge deal here. They are mainly to calm down EMI.)

But isnt SWDIO bi-directionnal?

Shouldnt resistor be close as possible to the "talking chip" ?

Thus I wold need a resistors on SWO and SWDIO as shown to satisfy the requirements?

Also, the internal pull-ups are said to be "weak", and can sometimes catch noise and its recommended, when possible, to add them. For me its possible, so I add them.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Please confirm my header debug
« Reply #6 on: September 29, 2019, 03:55:26 pm »
Pull-ups, sure, keep them. But for the series termination - you will not get anywhere close to the clocks where it actually matters.  Here they are for current limiting, but again, this is not necessary. Don't overthink it.
Alex
 

Offline lawrence11Topic starter

  • Frequent Contributor
  • **
  • Posts: 321
  • Country: ca
Re: Please confirm my header debug
« Reply #7 on: September 29, 2019, 04:01:50 pm »
Pull-ups, sure, keep them. But for the series termination - you will not get anywhere close to the clocks where it actually matters.  Here they are for current limiting, but again, this is not necessary. Don't overthink it.

AHA, but I think I can clock out SWO at 24mhz? if I remember correctly. Wouldnt 24 mhz through a 6 inch long ribbon  be at thos speed limits?

I have the mother load, the st-link V3.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Please confirm my header debug
« Reply #8 on: September 29, 2019, 04:04:42 pm »
Yes, and 24 MHz for reasonably short wires will not be a problem. Also, for pure programming SWD clock does not matter. It will not increase the speed of programming, since the slowest part of the chain is Flash memory. For debugging higher clock will make a difference, but again, don't overthink  it.
Alex
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14471
  • Country: fr
Re: Please confirm my header debug
« Reply #9 on: September 29, 2019, 04:25:04 pm »
You'll be using an ST-Link V3 won't you? It should have already everything required on it. You just need to make an adapter cable. Nothing else IMO.

As to clock rate, SWD on small MCUs will never be meant to be clocked at such high speeds. The typical max rates are in the order of 1Mbps to 2MBps or so... same for SWO.

Call me when you can use SWD @24MHz on an STM32 MCU, especially with a ST-Link probe? ;D

The clock rate of SWD and SWO signals is absolutely NOT the system clock rate.
« Last Edit: September 29, 2019, 04:26:35 pm by SiliconWizard »
 

Offline lawrence11Topic starter

  • Frequent Contributor
  • **
  • Posts: 321
  • Country: ca
Re: Please confirm my header debug
« Reply #10 on: September 29, 2019, 07:01:50 pm »
OK guys,  you win, you win.

No series resistor, but only pullups

Basically my circuit, but replace 33ohm resistor by a trace. Got it.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf