Author Topic: STM32 - SWD conflict with Activate NOE  (Read 3895 times)

0 Members and 1 Guest are viewing this topic.

Offline girishvTopic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: in
STM32 - SWD conflict with Activate NOE
« on: December 12, 2020, 08:50:10 am »
I am new to STM32 ecosystem. I am creating a breakout board for STM32L0. In CubeIDE, I configured the pinout as follows

Sys: Enable "Debug Serial Wire"
USB: Enable "Device FS"

In USB section, the "Activate NOE" is disabled with the following warning message

Conflict with SYS: "Debug Serial Wire".

I am aware of "USB NOE" and "SYS_SWDIO" sharing the same pin.

What are the implications of the above warning?
 

Offline LootMaster

  • Regular Contributor
  • *
  • Posts: 175
  • Country: ca
Re: STM32 - SWD conflict with Activate NOE
« Reply #1 on: December 12, 2020, 03:07:26 pm »
You're too bad... :palm:
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: STM32 - SWD conflict with Activate NOE
« Reply #2 on: December 12, 2020, 05:24:26 pm »
You're too bad... :palm:

He texted: "I'm new to the STM32 ecosystem" :)
And sorry for my English.
 
The following users thanked this post: newbrain

Online newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: STM32 - SWD conflict with Activate NOE
« Reply #3 on: December 12, 2020, 06:21:35 pm »
Which STM32L0 and package are you using?

Generally speaking, the warning can be safely ignored:
  • USB_NOE can be remapped somewhere else, if needed, in packages with 64 pins or more.
  • Moreover, it is not an essential pin: it just mirrors the Output Enable status of the internal physical layer driver.

So, you should still be able to use the USB peripheral (and SWD!).

You're too bad... :palm:
Because, of course, you know everything, never make mistakes, and, especially, are always ready to help others.
« Last Edit: December 12, 2020, 06:24:53 pm by newbrain »
Nandemo wa shiranai wa yo, shitteru koto dake.
 
The following users thanked this post: janoc, thm_w, girishv, S. Petrukhin

Offline girishvTopic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: in
Re: STM32 - SWD conflict with Activate NOE
« Reply #4 on: December 13, 2020, 02:39:45 am »
Which STM32L0 and package are you using?

Generally speaking, the warning can be safely ignored:
  • USB_NOE can be remapped somewhere else, if needed, in packages with 64 pins or more.
  • Moreover, it is not an essential pin: it just mirrors the Output Enable status of the internal physical layer driver.

So, you should still be able to use the USB peripheral (and SWD!).

I am using STM32L063C8T6 (LQFP-48).
 

Online newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: STM32 - SWD conflict with Activate NOE
« Reply #5 on: December 13, 2020, 06:16:30 pm »
I am using STM32L063C8T6 (LQFP-48).
So, USB_NOE is not available if you want to keep SWD active (highly recommended).
As said, this is not a big deal, and USB can be used with no problems.

Remember that CubeMX will always give warnings when some pin can not mapped.
The peripheral function can still be usable though, as in this case.
If some peripheral or function cannot possibly be configured (no alternative mapping for its essential pins), it'll appear in red.
Code can still be generated, for the other configured peripherals.
Nandemo wa shiranai wa yo, shitteru koto dake.
 
The following users thanked this post: girishv

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: STM32 - SWD conflict with Activate NOE
« Reply #6 on: December 13, 2020, 08:37:16 pm »
I am using STM32L063C8T6 (LQFP-48).
So, USB_NOE is not available if you want to keep SWD active (highly recommended).
As said, this is not a big deal, and USB can be used with no problems.

Remember that CubeMX will always give warnings when some pin can not mapped.
The peripheral function can still be usable though, as in this case.
If some peripheral or function cannot possibly be configured (no alternative mapping for its essential pins), it'll appear in red.
Code can still be generated, for the other configured peripherals.

From myself I will add. The STM does not have fuses that are controlled by the programmer as Atmel. All configuration is performed programmatically by your program. CubeMX generates the initialization source code from the checked boxes and hides it from you. If you really need to use programming pins, you can switch them in the program at any time, most often in the initialization section. This does not interfere with programming, because the programmer resets the processor, after resetting they again become the programmer's pins and are used until the firmware starts running. But you will need to connect a hardware reset wire to the programmer. One problem is that if you disable SWO in the program and use its pins, you will not be able to perform step-by-step debugging on the chip.
« Last Edit: December 13, 2020, 08:38:57 pm by S. Petrukhin »
And sorry for my English.
 
The following users thanked this post: girishv

Offline girishvTopic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: in
Re: STM32 - SWD conflict with Activate NOE
« Reply #7 on: December 14, 2020, 03:48:27 am »
I am using STM32L063C8T6 (LQFP-48).
So, USB_NOE is not available if you want to keep SWD active (highly recommended).
As said, this is not a big deal, and USB can be used with no problems.

Remember that CubeMX will always give warnings when some pin can not mapped.
The peripheral function can still be usable though, as in this case.
If some peripheral or function cannot possibly be configured (no alternative mapping for its essential pins), it'll appear in red.
Code can still be generated, for the other configured peripherals.
I almost ignored the warning. The turn around time for a board is almost 2 weeks. So, I sought help in forum.
 

Offline girishvTopic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: in
Re: STM32 - SWD conflict with Activate NOE
« Reply #8 on: December 14, 2020, 03:55:17 am »
I am using STM32L063C8T6 (LQFP-48).
So, USB_NOE is not available if you want to keep SWD active (highly recommended).
As said, this is not a big deal, and USB can be used with no problems.

Remember that CubeMX will always give warnings when some pin can not mapped.
The peripheral function can still be usable though, as in this case.
If some peripheral or function cannot possibly be configured (no alternative mapping for its essential pins), it'll appear in red.
Code can still be generated, for the other configured peripherals.

From myself I will add. The STM does not have fuses that are controlled by the programmer as Atmel. All configuration is performed programmatically by your program. CubeMX generates the initialization source code from the checked boxes and hides it from you. If you really need to use programming pins, you can switch them in the program at any time, most often in the initialization section. This does not interfere with programming, because the programmer resets the processor, after resetting they again become the programmer's pins and are used until the firmware starts running. But you will need to connect a hardware reset wire to the programmer. One problem is that if you disable SWO in the program and use its pins, you will not be able to perform step-by-step debugging on the chip.
I suppose I could use a jumper to switch to SWD_IO?
 

Online newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: STM32 - SWD conflict with Activate NOE
« Reply #9 on: December 14, 2020, 08:00:18 am »
I suppose I could use a jumper to switch to SWD_IO?
Really not worth the hassle, and that would steal another useful pin.
Unless you have a very specific requirement for using the USB_NOE signal - it would seem not, from your description - just forget about it.
Nandemo wa shiranai wa yo, shitteru koto dake.
 
The following users thanked this post: girishv

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: STM32 - SWD conflict with Activate NOE
« Reply #10 on: December 14, 2020, 08:53:27 am »
I am using STM32L063C8T6 (LQFP-48).
So, USB_NOE is not available if you want to keep SWD active (highly recommended).
As said, this is not a big deal, and USB can be used with no problems.

Remember that CubeMX will always give warnings when some pin can not mapped.
The peripheral function can still be usable though, as in this case.
If some peripheral or function cannot possibly be configured (no alternative mapping for its essential pins), it'll appear in red.
Code can still be generated, for the other configured peripherals.

From myself I will add. The STM does not have fuses that are controlled by the programmer as Atmel. All configuration is performed programmatically by your program. CubeMX generates the initialization source code from the checked boxes and hides it from you. If you really need to use programming pins, you can switch them in the program at any time, most often in the initialization section. This does not interfere with programming, because the programmer resets the processor, after resetting they again become the programmer's pins and are used until the firmware starts running. But you will need to connect a hardware reset wire to the programmer. One problem is that if you disable SWO in the program and use its pins, you will not be able to perform step-by-step debugging on the chip.
I suppose I could use a jumper to switch to SWD_IO?

I try not to use pins SWD for other purposes and use cases with enough pins. I also leave and use SWO pin. But, if you really really need it, you can safely use them as you wish. In other designs, not in this case with USB - here, you can say that you lose the extra signal and it is not needed. A jumper is not required, just connect the pin in both directions at the same time. "Jumper" is required in the program - if you start using step-by-step debugging on a chip, the code part that disables SWD and releases pins will need to be disabled.
And sorry for my English.
 

Offline girishvTopic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: in
Re: STM32 - SWD conflict with Activate NOE
« Reply #11 on: December 14, 2020, 09:24:36 am »
I try not to use pins SWD for other purposes and use cases with enough pins. I also leave and use SWO pin. But, if you really really need it, you can safely use them as you wish. In other designs, not in this case with USB - here, you can say that you lose the extra signal and it is not needed. A jumper is not required, just connect the pin in both directions at the same time. "Jumper" is required in the program - if you start using step-by-step debugging on a chip, the code part that disables SWD and releases pins will need to be disabled.
I will keep it reserved for SWD. No point in complicating things. In addition, I am not short of I/O pins.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf