cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: STM32H7x7_CM7.svd and STM32H7x7_CM4.svd file bug

aaslan
Associate II

Here is simple bug. Generated header with SVDConv and STM32H7x7_CM4.svd file. Output header file can not be compiled. Added information below.

Version info:

 * @file    /home/mehmet/Downloads/STM32H7x7_CM4.h

 * @brief   CMSIS HeaderFile

 * @version 1.0

 * @date    10. August 2019

 * @note    Generated by SVDConv V3.3.27 on Saturday, 10.08.2019 19:39:26

 *          from File 'STM32H7x7_CM4.svd',

Compiled error:

In file included from main.c:1:
STM32H7x7_CM4.h:23405:22: error: bit-field ‘CNT’ has invalid type
       __IOM uint32_t CNT[31]    : 1;            /*!< [31..31] Value depends on IUFREMAP in TIMx_CR1.                           */
                      ^~~
STM32H7x7_CM4.h:24351:22: error: bit-field ‘CNT’ has invalid type
       __IOM uint32_t CNT[31]    : 1;            /*!< [31..31] UIFCPY                                                           */
                      ^~~

Problem:

$ grep -nr 'CNT\[31\]' .
 
./STM32H7_svd_V1.5/STM32H7x7_CM7.svd:65247:             <name>CNT[31]</name>
 
./STM32H7_svd_V1.5/STM32H7x7_CM7.svd:68344:             <name>CNT[31]</name>
 
./STM32H7_svd_V1.5/STM32H7x7_CM4.svd:65247:             <name>CNT[31]</name>
 
./STM32H7_svd_V1.5/STM32H7x7_CM4.svd:68344:             <name>CNT[31]</name>

Solution:

Those CNT[31] names should be changed.

Best Regards

1 REPLY 1
Imen.D
ST Employee

Hello,

Thank you for your bug report.

I raised this internally for fix.

Best Regards,

Imen

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