Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This is embarrassing
#1
OK don't beat me up here. I'm brand new to this world and whilst I don't consider myself an idiot just getting the simple things - like resetting the bloody chip on the cartridge of the DaVinci 1.0 is giving me grey hairs. 20 years ago I did programming at Uni but I confess my skills have not been used since and now that I have an Arduino Uno with which to reset my cartridges, the compiler is spitting out an error message that is going to take me three weeks to figure out that it's the wrong program path c/o Windows 10.

If I post it here (as per below) my apologies if this is not the correct or appropriate place. My logic is that given the code comes from a reputable source, namely here, it is the logical starting point for trouble shooting.

So here it is.

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\User\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10606 -build-path "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\User\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10606 -build-path "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\preproc\ctags_target.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\preproc\ctags_target.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp" -o "C:\Users\User\AppData\Local\Temp\build23df61c4728d9802790c8f6a7ce1d1ad.tmp\sketch\sketch_nov13c.ino.cpp.o"
sketch_nov13c:32: error: 'volatileboolean' does not name a type

lSerial++;

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'void IncrementSerial(unsigned char*, long int, long int)':

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino:33:46: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]

sprintf((char *)szTempBuffer,"%04d",lSerial);

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'void set_bus(boolean)':

sketch_nov13c:74: error: 'void set_bus(boolean)' was declared 'extern' and later 'static' [-fpermissive]

static void set_bus(boolean state) {

^

sketch_nov13c:28: error: previous declaration of 'void set_bus(boolean)' [-fpermissive]

{

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'boolean read_bus()':

sketch_nov13c:78: error: 'boolean read_bus()' was declared 'extern' and later 'static' [-fpermissive]

static boolean read_bus(void) {

^

sketch_nov13c:29: error: previous declaration of 'boolean read_bus()' [-fpermissive]

unsigned char szTempBuffer[20] = {0};

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'void unio_inter_command_gap()':

sketch_nov13c:81: error: 'void unio_inter_command_gap()' was declared 'extern' and later 'static' [-fpermissive]

static void unio_inter_command_gap(void) {

^

sketch_nov13c:30: error: previous declaration of 'void unio_inter_command_gap()' [-fpermissive]

memcpy(szTempBuffer,&cArray[lAddress],lSize);

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'void unio_standby_pulse()':

sketch_nov13c:86: error: 'void unio_standby_pulse()' was declared 'extern' and later 'static' [-fpermissive]

static void unio_standby_pulse(void) {

^

sketch_nov13c:31: error: previous declaration of 'void unio_standby_pulse()' [-fpermissive]

long lSerial = atol((char *)szTempBuffer);

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: At global scope:

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino:94:40: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

static volatile boolean rwbit(boolean w) {

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'boolean read_bit()':

sketch_nov13c:107: error: 'boolean read_bit()' was declared 'extern' and later 'static' [-fpermissive]

static boolean read_bit(void) {

^

sketch_nov13c:33: error: previous declaration of 'boolean read_bit()' [-fpermissive]

sprintf((char *)szTempBuffer,"%04d",lSerial);

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'boolean send_byte(byte, boolean)':

sketch_nov13c:115: error: 'boolean send_byte(byte, boolean)' was declared 'extern' and later 'static' [-fpermissive]

static boolean send_byte(byte b, boolean mak) {

^

sketch_nov13c:34: error: previous declaration of 'boolean send_byte(byte, boolean)' [-fpermissive]

memcpy(&cArray[lAddress],szTempBuffer,lSize);

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'boolean read_byte(byte*, boolean)':

sketch_nov13c:124: error: 'boolean read_byte(byte*, boolean)' was declared 'extern' and later 'static' [-fpermissive]

static boolean read_byte(byte *b, boolean mak) {

^

sketch_nov13c:35: error: previous declaration of 'boolean read_byte(byte*, boolean)' [-fpermissive]

}

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'boolean unio_send(const byte*, word, boolean)':

sketch_nov13c:136: error: 'boolean unio_send(const byte*, word, boolean)' was declared 'extern' and later 'static' [-fpermissive]

static boolean unio_send(const byte *data,word length,boolean end) {

^

sketch_nov13c:36: error: previous declaration of 'boolean unio_send(const byte*, word, boolean)' [-fpermissive]



^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'boolean unio_read(byte*, word)':

sketch_nov13c:143: error: 'boolean unio_read(byte*, word)' was declared 'extern' and later 'static' [-fpermissive]

static boolean unio_read(byte *data,word length) {

^

sketch_nov13c:37: error: previous declaration of 'boolean unio_read(byte*, word)' [-fpermissive]

class NanodeUNIO {

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'void unio_start_header()':

sketch_nov13c:150: error: 'void unio_start_header()' was declared 'extern' and later 'static' [-fpermissive]

static void unio_start_header(void) {

^

sketch_nov13c:38: error: previous declaration of 'void unio_start_header()' [-fpermissive]

private:

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'void status(boolean)':

sketch_nov13c:277: error: 'void status(boolean)' was declared 'extern' and later 'static' [-fpermissive]

static void status(boolean r)

^

sketch_nov13c:39: error: previous declaration of 'void status(boolean)' [-fpermissive]

byte addr;

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: In function 'void dump_eeprom(word, word)':

sketch_nov13c:283: error: 'void dump_eeprom(word, word)' was declared 'extern' and later 'static' [-fpermissive]

static void dump_eeprom(word address,word length)

^

sketch_nov13c:40: error: previous declaration of 'void dump_eeprom(word, word)' [-fpermissive]

public:

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino: At global scope:

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino:326:32: warning: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]

char x[] = {0xc0,0xd4,0x01,0x00}; //120m

^

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino:326:32: warning: narrowing conversion of '212' from 'int' to 'char' inside { } [-Wnarrowing]

C:\Users\User\Documents\Arduino\sketch_nov13c\sketch_nov13c.ino:331:23: warning: narrowing conversion of '210' from 'int' to 'char' inside { } [-Wnarrowing]

char et[] = {0xd2,0x00}; // 210 C

^

exit status 1
'volatileboolean' does not name a type
Reply
#2
Errr. that looks like a crap load more than I thought. It's the last line that cuts to the chase.
Reply
#3
Same error was posted recently, turned out to be arduino version .
https://forum.voltivo.com/showthread.php?tid=8994
Reply
#4
Spot on. Downgraded and it works like a charm!

Many thanks all!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)