Coder Social home page Coder Social logo

debugserial's Introduction

debugserial's People

Contributors

nerdralph avatar pdenes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

debugserial's Issues

Does not work with of ATTinyCore 1.5.2 / Attiny25, HEX and DEC already reserved

In file included from ../Library/Arduino15/packages/ATTinyCore/hardware/avr/1.5.2/cores/tiny/Stream.h:26:0,
from ../Library/Arduino15/packages/ATTinyCore/hardware/avr/1.5.2/cores/tiny/TinySoftwareSerial.h:5,
from ../Library/Arduino15/packages/ATTinyCore/hardware/avr/1.5.2/cores/tiny/Arduino.h:249,
from ../sketch/print.ino.cpp:1:
...
...Library/Arduino15/packages/ATTinyCore/hardware/avr/1.5.2/cores/tiny/Print.h:33:13: error: expected unqualified-id before numeric constant #define DEC 10

debugSerial.h
108: enum _base {DEC = 10, HEX = 16};
....
had to replace it to
enum _base {DEK = 10, HEKS = 16};
....

Build error on ATTiny88 + ATTinyCore 1.5.2

Cannot build my project for ATTiny88 (8MHz internal) with TX on pin PC1

looks like there are some #define problems.

FQBN: ATTinyCore:avr:attinyx8:bod=2v7
Using board 'attinyx8' from platform in folder: C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2
Using core 'tiny' from platform in folder: C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2

Detecting libraries used...
C:\Users\####\AppData\Local\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 -flto -w -x c++ -E -CC -mmcu=attiny88 -DF_CPU=8000000L -DCLOCK_SOURCE=0 -DARDUINO=10607 -DARDUINO_AVR_ATTINYX8 -DARDUINO_ARCH_AVR -DNEOPIXELPORT=PORTA -IC:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny -IC:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\variants\tinyX8 C:\Users\####\AppData\Local\Temp\arduino\sketches\26988AED817C64171E9EDF3044746FB7\sketch\TEST.ino.cpp -o nul
Generating function prototypes...
C:\Users\####\AppData\Local\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 -flto -w -x c++ -E -CC -mmcu=attiny88 -DF_CPU=8000000L -DCLOCK_SOURCE=0 -DARDUINO=10607 -DARDUINO_AVR_ATTINYX8 -DARDUINO_ARCH_AVR -DNEOPIXELPORT=PORTA -IC:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny -IC:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\variants\tinyX8 C:\Users\####\AppData\Local\Temp\arduino\sketches\26988AED817C64171E9EDF3044746FB7\sketch\TEST.ino.cpp -o C:\Users\####\AppData\Local\Temp\1578754442\sketch_merged.cpp
C:\Users\####\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\####\AppData\Local\Temp\1578754442\sketch_merged.cpp
Compilation du croquis...
"C:\\Users\\####\\AppData\\Local\\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 -MMD -flto -mmcu=attiny88 -DF_CPU=8000000L -DCLOCK_SOURCE=0 -DARDUINO=10607 -DARDUINO_AVR_ATTINYX8 -DARDUINO_ARCH_AVR -DNEOPIXELPORT=PORTA "-IC:\\Users\\####\\AppData\\Local\\Arduino15\\packages\\ATTinyCore\\hardware\\avr\\1.5.2\\cores\\tiny" "-IC:\\Users\\####\\AppData\\Local\\Arduino15\\packages\\ATTinyCore\\hardware\\avr\\1.5.2\\variants\\tinyX8" "C:\\Users\\####\\AppData\\Local\\Temp\\arduino\\sketches\\26988AED817C64171E9EDF3044746FB7\\sketch\\TEST.ino.cpp" -o "C:\\Users\\####\\AppData\\Local\\Temp\\arduino\\sketches\\26988AED817C64171E9EDF3044746FB7\\sketch\\TEST.ino.cpp.o"
In file included from D:\####\####\_####\####\Firmware\TEST\TEST.ino:3:0:
D:\####\####\_####\####\Firmware\TEST\debugSerial.h:23:0: warning: "bit" redefined
 #define bit(io)     BIT(io)
 
In file included from C:\Users\####\AppData\Local\Temp\arduino\sketches\26988AED817C64171E9EDF3044746FB7\sketch\TEST.ino.cpp:1:0:
C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny/Arduino.h:101:0: note: this is the location of the previous definition
 #define bit(b) (1UL << (b))
 
In file included from C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny/Stream.h:26:0,
                 from C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny/TinySoftwareSerial.h:5,
                 from C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny/Arduino.h:249,
                 from C:\Users\####\AppData\Local\Temp\arduino\sketches\26988AED817C64171E9EDF3044746FB7\sketch\TEST.ino.cpp:1:
C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny/Print.h:33:13: error: expected identifier before numeric constant
 #define DEC 10
             ^
D:\####\####\_####\####\Firmware\TEST\debugSerial.h:108:13: note: in expansion of macro 'DEC'
 enum _base {DEC = 10, HEX = 16};
             ^~~
C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny/Print.h:33:13: error: expected '}' before numeric constant
 #define DEC 10
             ^
D:\####\####\_####\####\Firmware\TEST\debugSerial.h:108:13: note: in expansion of macro 'DEC'
 enum _base {DEC = 10, HEX = 16};
             ^~~
C:\Users\####\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\cores\tiny/Print.h:33:13: error: expected unqualified-id before numeric constant
 #define DEC 10
             ^
D:\####\####\_####\####\Firmware\TEST\debugSerial.h:108:13: note: in expansion of macro 'DEC'
 enum _base {DEC = 10, HEX = 16};
             ^~~
In file included from D:\####\####\_####\####\Firmware\TEST\TEST.ino:3:0:
D:\####\####\_####\####\Firmware\TEST\debugSerial.h:108:31: error: expected declaration before '}' token
 enum _base {DEC = 10, HEX = 16};
                               ^

exit status 1

Compilation error: expected declaration before '}' token

Any idea ?

I was hoping to replace the overkill SoftwareSerial library with your, I just wnat to log some events :(

Thanks for the job.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.