2019-08-10 09:53 AM
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
2019-08-16 08:29 AM
Hello,
Thank you for your bug report.
I raised this internally for fix.
Best Regards,
Imen