cancel
Showing results for 
Search instead for 
Did you mean: 

Conflicts with STM32G474VET6

PRODNAV
Associate II

Hey all, 

I have a project with a STM32G474VET6. I have designed the PCB and wanted to check if everything is okay. I have setup the pins in STM32cubeIDE just to see if all pins match functions. 

 

I now get errors on the following: 

- I2C4 (conflict with Sys debug and PD11)
- Debug serial wire (Conflict with PE2, PE3, PE4, PE5, PE6 & FDCAN3). 

My questions are: Why do i get these conflict, and what problems will it make?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions

In generally, the warnings in STM32CubeMX to inform you about some features can't be enabled due to a pin conflict. So, you can ignore these warnings as long as the tool allows you to configure the peripheral that you need.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

4 REPLIES 4
TDK
Super User

Yellow exclamation points do not indicate errors or things that need fixed. They indicate that some or additional features cannot be enabled due to pins in use.

If you feel a post has answered your question, please click "Accept as Solution".
Imen.D
ST Employee

Hello @PRODNAV ,

This is due to peripheral pin remapping. You can remap I2C4 to use different pins. For example: use PD12 (I2C4_SCL) and PD13 (I2C4_SDA) instead of PD11. So, Debug (SWD) uses PD11.

Remap FDCAN3 to use different pins. You can use PB3 (FDCAN3_TX) and PB4 (FDCAN3_RX) instead of PE4 and PE5.

I recommend using STM32CubeMX to configure your pins and peripherals. It will show you all possible pin mappings and highlight conflicts in real time. 

You can refer to the STM32G474 datasheet and reference manual to check more the pin multiplexing and remapping options for each peripheral and consider the check of Alternate Functions.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

I have downloaded MX. It basically is the same as STM32cubeIDE's settings screen. I have set I2C4 to I2C2 so that solves PD11. I also was able to remap FDCAN. 

But still the Debug Serial Wire gives a yellow warning for PE2, PE3, PE4, PE5, PE6. I assume it should be possible to use those pins? 

In generally, the warnings in STM32CubeMX to inform you about some features can't be enabled due to a pin conflict. So, you can ignore these warnings as long as the tool allows you to configure the peripheral that you need.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen