cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX code generation error

christianwaldmann9
Associate II
Posted on November 09, 2015 at 11:52

When generating MX_Device.h with CubeMX for a STM32F407 device, the following pin names are illegal, because there is minus sign in the name:

/* Pin PA13 */

&sharpdefine MX_SYS_JTMS-SWDIO_Pin                   PA13

/* Pin PA14 */

&sharpdefine MX_SYS_JTCK-SWCLK_Pin                   PA14

/* Pin PB3 */

&sharpdefine MX_SYS_JTDO-SWO_Pin                     PB3

Please update the STM32F4xx_DPF to correct this issue. 

(For your information: In the SoftPack for the STM32F7xxx_DFP this error is already corrected.)

#stm32cube-bug-mx_device.h
3 REPLIES 3
Nesrine M_O
Lead II
Posted on November 10, 2015 at 10:15

Hi waldmann.christian,

Thank you for your feedback. The issue has been reported internally.

-Syrine-

stm32cube-t
Senior III
Posted on November 13, 2015 at 15:01

Dear user,

Can you please provide the template file you used to generate such MX_Device file?

DFP provide for an RTE_Device.h file that does not have this issue.

Can you please indicate the DFP pack version you're referring to and attach the erroneous MX_Device file you may have retrieved from Keil DFP pack.

Thank you for your feedback.
NLync
Associate

Why hasn't this been resolved yet? It has been almost 3 years since this was posted!

I have seen this on multiple projects with different processors.

DFP = Keil\STM32H7xx_DFP\2.2.0

See generated file attached.

Also happens with Keil\STM32F4xx_DFP\2.13.0