Page 1 of 1

ARM STM32 I2C

Posted: Thu May 11, 2017 9:34 am
by volodymyr0604
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

Re: ARM STM32 I2C

Posted: Thu May 11, 2017 9:55 am
by LeighM
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.

Re: ARM STM32 RTC

Posted: Wed May 17, 2017 5:58 am
by volodymyr0604
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

Re: ARM STM32 I2C

Posted: Wed May 17, 2017 8:55 am
by LeighM
OK, thanks, we will try and look into it