tvbgone Caitsinth firmware 1.2 missing hex file

Get help and show off your TV-B-Gone kit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

The download of Caitsinth firmware 1.2 doesn't include hex file. Has anyone an idea where to get?
It would be great if Adafruit support team can provide it.

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by mikeysklar »

There is a hex file in the TV-B-Gone-kit/firmware github repo.

User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

Sure, but it's not the hex file for firmware of caitsinth. It's not possible to compile caitsinth code using Arduino IDE without changes and I'm unable to do. Has anybody ported the caitsinth FW to Arduino IDE? (Remark: caitsinth is incorrect, correct is without "n" but that name is automaticly transferred into "BANNED").

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by mikeysklar »

Unfortunate about the BANNED spelling adding additional confusion here.

I take it your interest in the caitsinth version is the looping support that he had added?

I tried to compile the code on my MacOS box using their provided Makefile with the source and pointing it at the AVR tools installed by the Arduino IDE. There are some minor casting issues, but are easily worked around by following the patch from this post.

// Modify Makefile DIRAVR path

Code: Select all

#DIRAVR = c:/winavr
DIRAVR = /Users/<user>/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7
// path to compiler

Code: Select all

$ export PATH=$PATH:/Users/<user>/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7
hex file attached as zip.

Code: Select all

$ make

-------- begin --------
avr-gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or BANNED FOR A PARTICULAR PURPOSE.


Size before:
tvbgone.elf  :
section                     size      addr
.text                       5232         0
.data                          2   8388704
.bss                           4   8388706
turbo:BANNED-custom mikeysklar$ make
set -e; avr-gcc -MM -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=util.lst  -std=gnu99 -DNA_CODES util.c \
        | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > util.d; \
        [ -s util.d ] || rm -f util.d
set -e; avr-gcc -MM -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=WORLDcodes.lst  -std=gnu99 -DNA_CODES WORLDcodes.c \
        | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > WORLDcodes.d; \
        [ -s WORLDcodes.d ] || rm -f WORLDcodes.d
set -e; avr-gcc -MM -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=main.lst  -std=gnu99 -DNA_CODES main.c \
        | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > main.d; \
        [ -s main.d ] || rm -f main.d

-------- begin --------
avr-gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or BANNED FOR A PARTICULAR PURPOSE.


Compiling: main.c
avr-gcc -c -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=main.lst  -std=gnu99 -DNA_CODES main.c -o main.o
In file included from main.c:21:0:
main.c: In function 'main':
main.c:289:49: warning: passing argument 1 of 'putnum_uh' makes integer from pointer without a cast [-Wint-conversion]
       DEBUGP(putstring("\n\rAddr: "); putnum_uh(code_ptr));
                                                 ^
main.h:15:37: note: in definition of macro 'DEBUGP'
 #define DEBUGP(x) if (DEBUG == 1) { x ; }
                                     ^
In file included from main.c:22:0:
util.h:11:6: note: expected 'uint16_t {aka unsigned int}' but argument is of type 'const char *'
 void putnum_uh(uint16_t n);
      ^~~~~~~~~

Compiling: WORLDcodes.c
avr-gcc -c -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=WORLDcodes.lst  -std=gnu99 -DNA_CODES WORLDcodes.c -o WORLDcodes.o

Compiling: util.c
avr-gcc -c -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=util.lst  -std=gnu99 -DNA_CODES util.c -o util.o

Linking: tvbgone.elf
avr-gcc -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=main.o  -std=gnu99 -DNA_CODES main.o WORLDcodes.o util.o   --output tvbgone.elf -Wl,-Map=tvbgone.map,--cref -lm

Creating load file for Flash: tvbgone.hex
avr-objcopy -O ihex  -R .eeprom tvbgone.elf tvbgone.hex

Creating load file for EEPROM: tvbgone.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
        --change-section-lma .eeprom=0 -O ihex  tvbgone.elf tvbgone.eep
avr-objcopy: --change-section-lma .eeprom=0x0000000000000000 never used

Creating Extended Listing: tvbgone.lss
avr-objdump -h -S tvbgone.elf > tvbgone.lss

Creating Symbol Table: tvbgone.sym
avr-nm -n tvbgone.elf > tvbgone.sym

Size after:
tvbgone.elf  :
section                     size      addr
.text                       5232         0
.data                          2   8388704
.bss                           4   8388706
.comment                      17         0
.note.gnu.avr.deviceinfo      60         0
.debug_aranges               184         0
.debug_info                 8434         0
.debug_abbrev               1877         0
.debug_line                 1689         0
.debug_frame                 248         0
.debug_str                  4350         0
.debug_loc                  1543         0
.debug_ranges                 72         0
Total                      23712  



Errors: none
-------- end --------


Attachments
caitsith-patch.zip
(1 KiB) Downloaded 99 times
caitsinth-20230831.zip
(5.85 KiB) Downloaded 107 times

User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

If I do the patch with Caitsinth (-n) original sketch an try to compile (Arduino IDE 1.8.19) I get the error duplicate 'const'.

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by mikeysklar »

I’ve included the compiled hex file so you can use that and not have to build it manually.

I wouldn’t expect the code to build with through the IDE since there is an included Makefile.

You will likely need to build the way I have shown running Make from the command line.

User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

Unfortunately it didn't work for me. Nearly every command in command line produces an error. I'm not very familiar with that way to compile so I like it more using Arduino IDE. Maybe I didn't notice an important detail and maybe you can point me to the solution. The error message is:

Code: Select all

In file included from /Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Arduino.h:28:0,
                 from /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_333870/sketch/BANNED_firmwarev12.ino.cpp:1:
BANNED_firmwarev12:90:14: error: duplicate 'const'
 extern const PGM_P * const NApowerCodes[] PROGMEM;
              ^
BANNED_firmwarev12:91:14: error: duplicate 'const'
 extern const PGM_P * const EUpowerCodes[] PROGMEM;
              ^
In file included from /Users/hasch/Documents/Arduino/BANNED_firmwarev12/BANNED_firmwarev12.ino:21:0:
/Users/hasch/Documents/Arduino/BANNED_firmwarev12/BANNED_firmwarev12.ino: In function 'int main()':
/Users/hasch/Documents/Arduino/BANNED_firmwarev12/BANNED_firmwarev12.ino:294:57: warning: invalid conversion from 'const char*' to 'uint16_t {aka unsigned int}' [-fpermissive]
       DEBUGP(putstring("\n\rAddr: "); putnum_uh(code_ptr));
                                                         ^
/Users/hasch/Documents/Arduino/BANNED_firmwarev12/main.h:15:37: note: in definition of macro 'DEBUGP'
 #define DEBUGP(x) if (DEBUG == 1) { x ; }
                                     ^
In file included from /Users/hasch/Documents/Arduino/BANNED_firmwarev12/BANNED_firmwarev12.ino:22:0:
/Users/hasch/Documents/Arduino/BANNED_firmwarev12/util.h:11:6: note:   initializing argument 1 of 'void putnum_uh(uint16_t)'
 void putnum_uh(uint16_t n);
      ^~~~~~~~~
In file included from /Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Arduino.h:28:0,
                 from /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_333870/sketch/BANNED_firmwarev12.ino.cpp:1:
BANNED_firmwarev12:316:13: error: duplicate 'const'
       const PGM_P time_ptr = (PGM_P)pgm_read_word(code_ptr);
             ^
exit status 1
duplicate 'const'
I saw the hex file but the code seems not to work as I expected. So I have to look at it and do changes. Then I have to compile again.

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by mikeysklar »

Try the source I used. This is the version that compiled for me.

I'm running this against avr-gcc 7.3.0.

See attached.
caitsith-src-modified.zip
(147.48 KiB) Downloaded 112 times

User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

I tried BANNED-src-modified.zip but the error message is the same.

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by mikeysklar »

What version of avr-gcc is being used?

Is it coming from the 1.8.19 version of the Arduino IDE?

User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

Yes, it's coming from 1.8.19 of Arduino IDE and it's 7.3.0.

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by mikeysklar »

Can you post the full output from the time you run the make command output?

I just tried the same zip file I uploaded here BANNED-src-modified.zip on a different system (Ubuntu x86_64) and the code compiled with only a PATH addition to find avr-gcc.

Code: Select all

$ export PATH=/home/sklarm/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin:$PATH
$ make
set -e; avr-gcc -MM -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-
adhlns=util.lst  -std=gnu99 -DNA_CODES util.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > util.d; \
[ -s util.d ] || rm -f util.d
set -e; avr-gcc -MM -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-
adhlns=WORLDcodes.lst  -std=gnu99 -DNA_CODES WORLDcodes.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > WORLDcodes.d; \
[ -s WORLDcodes.d ] || rm -f WORLDcodes.d
set -e; avr-gcc -MM -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-
adhlns=main.lst  -std=gnu99 -DNA_CODES main.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > main.d; \
[ -s main.d ] || rm -f main.d

-------- begin --------
avr-gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or BANNED FOR A PARTICULAR PURPOSE.


Compiling: main.c
avr-gcc -c -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=ma
in.lst  -std=gnu99 -DNA_CODES main.c -o main.o
In file included from main.c:21:0:
main.c: In function 'main':
main.c:289:49: warning: passing argument 1 of 'putnum_uh' makes integer from pointer without a cast [-Wint-conversion]
       DEBUGP(putstring("\n\rAddr: "); putnum_uh(code_ptr));
                                                 ^
main.h:15:37: note: in definition of macro 'DEBUGP'
 #define DEBUGP(x) if (DEBUG == 1) { x ; }
                                     ^
In file included from main.c:22:0:
util.h:11:6: note: expected 'uint16_t {aka unsigned int}' but argument is of type 'const char *'
 void putnum_uh(uint16_t n);
      ^~~~~~~~~
      
Compiling: WORLDcodes.c
avr-gcc -c -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=WORLDcodes.lst  -std=gnu99 -DNA_CODES WORLDcodes.c -o WORLDcodes.o

Compiling: util.c
avr-gcc -c -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=util.lst  -std=gnu99 -DNA_CODES util.c -o util.o

Linking: tvbgone.elf
avr-gcc -mmcu=attiny85 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=main.o  -std=gnu99 -DNA_CODES main.o WORLDcodes.o util.o   --output tvbgone.elf -Wl,-Map=tvbgone.map,--cref -lm

Creating load file for Flash: tvbgone.hex
avr-objcopy -O ihex  -R .eeprom tvbgone.elf tvbgone.hex

Creating load file for EEPROM: tvbgone.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex  tvbgone.elf tvbgone.eep
avr-objcopy: --change-section-lma .eeprom=0x0000000000000000 never used

Creating Extended Listing: tvbgone.lss
avr-objdump -h -S tvbgone.elf > tvbgone.lss

Creating Symbol Table: tvbgone.sym
avr-nm -n tvbgone.elf > tvbgone.sym

Size after:
tvbgone.elf  :
section                     size      addr
.text                       5232         0
.data                          2   8388704
.bss                           4   8388706
.comment                      17         0
.note.gnu.avr.deviceinfo      60         0
.debug_aranges               184         0
.debug_info                 8425         0
.debug_abbrev               1877         0
.debug_line                 1653         0
.debug_frame                 248         0
.debug_str                  4349         0
.debug_loc                  1543         0
.debug_ranges                 72         0
Total                      23666



Errors: none
-------- end --------


User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

Here is the whole output of Arduino IDE 1.8.19 while compiling:

Code: Select all

Arduino: 1.8.19 (Mac OS X), Board: "ATtiny, ATtiny85, 8 MHz (external)"

/Applications/Arduino 1.8.19.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino 1.8.19.app/Contents/Java/hardware -hardware /Users/hasch/Library/Arduino15/packages -hardware /Users/hasch/Documents/Arduino/hardware -tools /Applications/Arduino 1.8.19.app/Contents/Java/tools-builder -tools /Applications/Arduino 1.8.19.app/Contents/Java/hardware/tools/avr -tools /Users/hasch/Library/Arduino15/packages -built-in-libraries /Applications/Arduino 1.8.19.app/Contents/Java/libraries -libraries /Users/hasch/Documents/Arduino/libraries -fqbn=ATtiny:avr:attiny:cpu=attiny85,clock=external8 -vid-pid=0000_0000 -ide-version=10819 -build-path /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502 -warnings=all -build-cache /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_cache_152858 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /Users/hasch/Documents/Arduino/BANNED-custom/BANNED-custom.ino
/Applications/Arduino 1.8.19.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino 1.8.19.app/Contents/Java/hardware -hardware /Users/hasch/Library/Arduino15/packages -hardware /Users/hasch/Documents/Arduino/hardware -tools /Applications/Arduino 1.8.19.app/Contents/Java/tools-builder -tools /Applications/Arduino 1.8.19.app/Contents/Java/hardware/tools/avr -tools /Users/hasch/Library/Arduino15/packages -built-in-libraries /Applications/Arduino 1.8.19.app/Contents/Java/libraries -libraries /Users/hasch/Documents/Arduino/libraries -fqbn=ATtiny:avr:attiny:cpu=attiny85,clock=external8 -vid-pid=0000_0000 -ide-version=10819 -build-path /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502 -warnings=all -build-cache /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_cache_152858 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/hasch/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /Users/hasch/Documents/Arduino/BANNED-custom/BANNED-custom.ino
Using board 'attiny' from platform in folder: /Users/hasch/Documents/Arduino/hardware/ATtiny/avr
Using core 'arduino' from platform in folder: /Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5
Detecting libraries used...
/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/hasch/Documents/Arduino/hardware/ATtiny/avr/variants/tiny8 /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/BANNED-custom.ino.cpp -o /dev/null
/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/hasch/Documents/Arduino/hardware/ATtiny/avr/variants/tiny8 /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/WORLDcodes.c -o /dev/null
/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/hasch/Documents/Arduino/hardware/ATtiny/avr/variants/tiny8 /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/util.c -o /dev/null
Generating function prototypes...
/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/hasch/Documents/Arduino/hardware/ATtiny/avr/variants/tiny8 /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/BANNED-custom.ino.cpp -o /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/preproc/ctags_target_for_gcc_minus_e.cpp
"/Applications/Arduino 1.8.19.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/preproc/ctags_target_for_gcc_minus_e.cpp
Sketch wird kompiliert...
/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/hasch/Documents/Arduino/hardware/ATtiny/avr/variants/tiny8 /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/util.c -o /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/util.c.o
/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/hasch/Documents/Arduino/hardware/ATtiny/avr/variants/tiny8 /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/WORLDcodes.c -o /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/WORLDcodes.c.o
/Users/hasch/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/hasch/Documents/Arduino/hardware/ATtiny/avr/variants/tiny8 /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/BANNED-custom.ino.cpp -o /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/BANNED-custom.ino.cpp.o
In file included from /Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Arduino.h:28:0,
                 from /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/BANNED-custom.ino.cpp:1:
BANNED-custom:86:14: error: duplicate 'const'
 extern const PGM_P * const NApowerCodes[] PROGMEM;
              ^
BANNED-custom:87:14: error: duplicate 'const'
 extern const PGM_P * const EUpowerCodes[] PROGMEM;
              ^
In file included from /Users/hasch/Documents/Arduino/BANNED-custom/BANNED-custom.ino:21:0:
/Users/hasch/Documents/Arduino/BANNED-custom/BANNED-custom.ino: In function 'int main()':
/Users/hasch/Documents/Arduino/BANNED-custom/BANNED-custom.ino:289:57: warning: invalid conversion from 'const char*' to 'uint16_t {aka unsigned int}' [-fpermissive]
       DEBUGP(putstring("\n\rAddr: "); putnum_uh(code_ptr));
                                                         ^
/Users/hasch/Documents/Arduino/BANNED-custom/main.h:15:37: note: in definition of macro 'DEBUGP'
 #define DEBUGP(x) if (DEBUG == 1) { x ; }
                                     ^
In file included from /Users/hasch/Documents/Arduino/BANNED-custom/BANNED-custom.ino:22:0:
/Users/hasch/Documents/Arduino/BANNED-custom/util.h:11:6: note:   initializing argument 1 of 'void putnum_uh(uint16_t)'
 void putnum_uh(uint16_t n);
      ^~~~~~~~~
In file included from /Users/hasch/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Arduino.h:28:0,
                 from /var/folders/xd/qt0vz41n66n1cmpbn4d75n_r0000gn/T/arduino_build_652502/sketch/BANNED-custom.ino.cpp:1:
BANNED-custom:311:13: error: duplicate 'const'
       const PGM_P time_ptr = (PGM_P)pgm_read_word(code_ptr);
             ^
exit status 1
duplicate 'const'

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by mikeysklar »

Do not use the IDE directly only access avr-gcc from the command-line.

Code: Select all

$ export PATH=/home/sklarm/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin:$PATH
$ make

User avatar
hasch
 
Posts: 16
Joined: Sun Sep 15, 2013 9:58 am

Re: tvbgone Caitsinth firmware 1.2 missing hex file

Post by hasch »

-bash: /usr/local/bin/make: Bad CPU type in executable

Locked
Please be positive and constructive with your questions and comments.

Return to “TV-B-Gone Kit”