error in Library Header File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 1:38 PM
Hi,
I created a new project using ready HAL Libraries on STM32F3, I get an weird error (expected an identifier) on the following line in the file (stm32f303xc.h):
__IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
Can anyone help?
Solved! Go to Solution.
- Labels:
-
RTC
-
STM32Cube MCU Packages
-
STM32F3 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 1:51 PM
As .h files are never compiled on their own, you should check the .c file including it and other include files too. Possibly TR is defined somwhere else as a constant or so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 1:51 PM
As .h files are never compiled on their own, you should check the .c file including it and other include files too. Possibly TR is defined somwhere else as a constant or so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 2:09 PM
Yes, you have right, RT was defined in other place too.
Thank you, solved
