When using I2C or RTS, the DS3231 gives errors when compiling
Device STM32F051x8
TEST_Relo_STM32F051C8T6.c:277:24: error: unknown type name 'FCD_0a3a1_RTC1__ReadTime'
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadTime, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:277:50: error: expected declaration specifiers or '...' before '(' token
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadTime, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:281:24: error: unknown type name 'FCD_0a3a1_RTC1__ReadDate'
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadDate, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:281:50: error: expected declaration specifiers or '...' before '(' token
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadDate, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:298:69: error: 'FCVsz_01211_Buffer_Char__DATA' undeclared here (not in a function)
__attribute__((far)) MX_GLOBAL MX_UINT8 FCV_01211_Buffer_Char__DATA[FCVsz_01211_Buffer_Char__DATA];
Error(s) in build
C:\Program Files (x86)\Flowcode 7\compilers\STARM\batch\stm32comp.bat notificado código de error 1
ARM STM32 I2C
Moderator: Benj
-
- Posts: 47
- Joined: Sun Apr 05, 2009 2:39 pm
- Been thanked: 1 time
- Contact:
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: ARM STM32 I2C
Hi,
Thanks, looks like a bug in the RTC component, we'll look into it.
edit: Looks like Ben has already done some fixes on this component, please replace your component file with the one attached.
Thanks, looks like a bug in the RTC component, we'll look into it.
edit: Looks like Ben has already done some fixes on this component, please replace your component file with the one attached.
- Attachments
-
- RTC.fcpx
- (9.77 KiB) Downloaded 244 times
-
- Posts: 47
- Joined: Sun Apr 05, 2009 2:39 pm
- Been thanked: 1 time
- Contact:
Re: ARM STM32 RTC
Hi LeighM
I saw that there was not enough restart after Slave adress.
The speed does not correspond to the specified 400 kbit, is 40 kbit
I saw that there was not enough restart after Slave adress.
The speed does not correspond to the specified 400 kbit, is 40 kbit