Page 1 of 1

RTC DS3231 missing white space error ( Arduino Mega 2560 rev3)

Posted: Wed Dec 06, 2017 7:33 am
by zadah
Hello,

I get following compiler error on FC7 after trying DS3231 RTC module (Otherwise system works OK with i2c OLED display)

FC7 version: 7.2.1.4

C:\Users\Arska\Dropbox\FLOWCO~1>"C:\PROGRA~2\FLOWCO~2\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -funsigned-char -o "C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.elf" "C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c" -lm
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:119:24: warning: missing whitespace after the macro name
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:120:24: warning: missing whitespace after the macro name
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:120:1: warning: "MX_I2C_CAL_I2C1" redefined
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:119:1: warning: this is the location of the previous definition
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:121:24: warning: missing whitespace after the macro name
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:121:1: warning: "MX_I2C_CAL_I2C1" redefined
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:120:1: warning: this is the location of the previous definition
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:136: error: expected declaration specifiers or '...' before 'FCD_0a3a1_RTC1__ReadTime'
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:136: error: expected declaration specifiers or '...' before '(' token
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:136: warning: data definition has no type or storage class
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:140: error: expected declaration specifiers or '...' before 'FCD_0a3a1_RTC1__ReadDate'
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:140: error: expected declaration specifiers or '...' before '(' token
C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:140: warning: data definition has no type or storage class
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:413,
from C:\Users\Arska\Dropbox\FLOWCO~1\arduinotest.c:520:
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_PWM.c:105:5: warning: #warning "PWM Channel Uses Resource Timer 0"
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_PWM.c:472:3: warning: #warning "Period control register not available on target device, period will default to 255 + 1"
Error returned from [avr-gcc.exe]
Completed compilation, return = 1

Re: RTC DS3231 missing white space error ( Arduino Mega 2560 rev3)

Posted: Wed Dec 06, 2017 9:56 am
by LeighM
Could you try the updates from here....
http://www.matrixtsl.com/mmforums/viewt ... 63&t=18760

If that does not fix the issue, please post your project file (*.fcfx)

Re: RTC DS3231 missing white space error ( Arduino Mega 2560 rev3)

Posted: Wed Dec 06, 2017 10:15 am
by zadah
Hello

After updates RTC is working ok, thanks.

I also noticed that DS3231 component from FC6 is working ok in FC7. (at least on arduino?)
viewtopic.php?f=58&t=14566


How usually FC6 components are compatible with FC7? Does it depend on compiler?

Re: RTC DS3231 missing white space error ( Arduino Mega 2560 rev3)

Posted: Wed Dec 06, 2017 10:25 am
by LeighM
How usually FC6 components are compatible with FC7? Does it depend on compiler?
Yes, it would depend mainly on if there is any embedded C in the component