cancel
Showing results for 
Search instead for 
Did you mean: 

Incompatibility between X-CUBE-TOUCHGFX and X-CUBE-SMBUS

PatriciaQ
Associate II

Hello!

I'm using an STM32u5a9 with a user interface and SMBus enabled battery and charger board.

CubeMX does not allow me to include both the X-CUBE-TOUCHGFX and X-CUBE-SMBUS libraries. I'm guessing there is some conflict with the I2C or how the HAL handles it?  if I choose X-CUBE-TOUCHGFX first then try to choose X-CUBE-SMBus, CubeMX reports "This component cannot be selected: this application cannot be selected while the application from pack STMicrolectronics.X-CUBE-Touchgfx is selected":

 

I'm wondering is there a way to get around this and use both libraries? It's my first time working with SMBus but I should also be able to configure an i2c bus separate from the one used for touchgfx to handle the smbus communication just without the HAL.

 

Appreciate anyone's input! Thank you!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @PatriciaQ;

 

I think you facing the same issue reported here:  Why the X-cube-AI and X-cube-touchgfx cannot be used at the same time?

The restriction about applications comes from a simple generated code consideration: an application is meant to be the root of the execution (excluding the main function).
This means that the generated function defines the execution of the selected application. In that sense, it is meant to be the last call of the main method, and must not give hand back to the main function.Two applications cannot be called, as this means generating calls in the main function, and then the second call is never reached.

If you need both applications to be called, take a look at UM1718 Rev 47 Section "B.3.12 CMSIS packs selection limitation" for some solution proposed.

 

I hope this help you.

Thank you.

Kaouthar 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
KDJEM.1
ST Employee

Hello @PatriciaQ;

 

I think you facing the same issue reported here:  Why the X-cube-AI and X-cube-touchgfx cannot be used at the same time?

The restriction about applications comes from a simple generated code consideration: an application is meant to be the root of the execution (excluding the main function).
This means that the generated function defines the execution of the selected application. In that sense, it is meant to be the last call of the main method, and must not give hand back to the main function.Two applications cannot be called, as this means generating calls in the main function, and then the second call is never reached.

If you need both applications to be called, take a look at UM1718 Rev 47 Section "B.3.12 CMSIS packs selection limitation" for some solution proposed.

 

I hope this help you.

Thank you.

Kaouthar 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.