AnsweredAssumed Answered

CubeMX does not allow user defines that are not number or string

Question asked by pavel a on Jan 8, 2018
Latest reply on Jan 8, 2018 by pavel a

Suppose that a hardware developer wants to pass in a Cube file some info for a fellow programmer.

For example tell which UART or GPIO pin to use: 

#define RS232_UART  USART4

#define LED_PIN  (GPIOB, 10)

 

But Cube won't allow this. It understands only literal numbers and quoted strings.

It will allow #define RS232_UART "USART4" - but this is completely useless for the purpose.

How hard would be enabling any user definition text in the Cube code generator?

 

Regards,

 - pa

Outcomes