ARM STM32 I2C

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

ARM STM32 I2C

Post 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

User avatar
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

Post 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.
Attachments
RTC.fcpx
(9.77 KiB) Downloaded 244 times

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: ARM STM32 RTC

Post 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

User avatar
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

Post by LeighM »

OK, thanks, we will try and look into it

Post Reply