Skip to main content
christianwaldmann9
Associate II
Nov 9, 2015 10:52 AM UTC
Question

STM32CubeMX code generation error

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
This topic has been closed for replies.

3 replies

Nesrine M_O
Associate
Nov 10, 2015 9:15 AM UTC
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
ST Employee
Nov 13, 2015 2:01 PM UTC
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
Visitor II
Oct 2, 2018 12:31 PM UTC

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