Wish Are there any plans for support of ATTINY85?

Discussion in 'B4R Bugs & Wishlist' started by Troberg, Nov 18, 2019.

  1. Troberg

    Troberg Well-Known Member Licensed User

    I see that the question has been up before, but it's years ago, so I though't I'd bring it up again.

    These boards are tiny, which makes them useful in many situations where size matters more than capabilities. They are also dirt cheap, which makes them useful in some situations. All in all, they fit a niche that other cards can't, and thus are very popular.

    Example: https://www.aliexpress.com/item/32581512379.html?spm=a2g0s.9042311.0.0.1f924c4dMGGUkL
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can probably get B4R to work with Attiny85. Have you tried it?
     
  3. janderkan

    janderkan Active Member Licensed User

  4. Troberg

    Troberg Well-Known Member Licensed User

    Ah, it was that simple...

    I just tried to scan, and it didn't find anything. Thanks!

    Edit: Now I've tried it, and it appears in the list and I can select it. However, it does not appear as a new entry in Serial port, just the ordinary standard COM1. The Uno and Nano appeared as separate ports.

    I selected the correct CPU and tried to run an empty project (the standard "New project in B4R) and it resulted in this:


    Looking for library 'user32'
    Adding paths from jna.library.path: null
    Trying user32.dll
    Found library 'user32' at user32.dll
    Looking for library 'shell32'
    Adding paths from jna.library.path: null
    Trying shell32.dll
    Found library 'shell32' at shell32.dll
    Looking for library 'Ole32'
    Adding paths from jna.library.path: null
    Trying Ole32.dll
    Found library 'Ole32' at Ole32.dll
    Loading configuration...
    Initializing packages...
    Preparing boards...
    Verifying...
    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\trobe\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\trobe\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\trobe\Documents\Arduino\libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal1 -ide-version=10805 -build-path Y:\Source\b4r\D3MDG6~J\Objects\bin -warnings=none -build-cache C:\Users\trobe\AppData\Local\Temp\arduino_cache_635638 -prefs=build.path=Y:\Source\b4r\D3MDG6~J\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose Y:\Source\b4r\D3MDG6~J\Objects\src\src.ino
    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\trobe\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\trobe\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\trobe\Documents\Arduino\libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal1 -ide-version=10805 -build-path Y:\Source\b4r\D3MDG6~J\Objects\bin -warnings=none -build-cache C:\Users\trobe\AppData\Local\Temp\arduino_cache_635638 -prefs=build.path=Y:\Source\b4r\D3MDG6~J\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose Y:\Source\b4r\D3MDG6~J\Objects\src\src.ino
    Using board 'ATtinyX5' from platform in folder: C:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2
    Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
    Detecting libraries used...
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/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=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\src.ino.cpp" -o "nul"
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/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=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp" -o "nul"
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/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=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RCore.cpp" -o "nul"
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/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=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RStream.cpp" -o "nul"
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/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=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\Scheduler.cpp" -o "nul"
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/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=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\b4r_main.cpp" -o "nul"
    Generating function prototypes...
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/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=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\src.ino.cpp" -o "Y:\Source\b4r\D3MDG6~J\Objects\bin\preproc\ctags_target_for_gcc_minus_e.cpp"
    "C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "Y:\Source\b4r\D3MDG6~J\Objects\bin\preproc\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=1000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\trobe\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp" -o "Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp.o"
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp: In member function 'void B4R::Serial::Initialize(ULong)':
    B4RArduino.cpp:64: error: '::Serial' has not been declared
    stream.wrappedStream = &::Serial;
    ^
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:64:27: note: suggested alternative:
    In file included from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RDefines.h:24:0,
    from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:1:
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\rCore.h:705:8: note: 'B4R::Serial'
    class Serial{
    ^
    B4RArduino.cpp:65: error: '::Serial' has not been declared
    ::Serial.begin(BaudRate);
    ^
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:65:3: note: suggested alternative:
    In file included from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RDefines.h:24:0,
    from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:1:
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\rCore.h:705:8: note: 'B4R::Serial'
    class Serial{
    ^
    B4RArduino.cpp:66: error: '::Serial' has not been declared
    while (!::Serial) {
    ^
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:66:11: note: suggested alternative:
    In file included from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RDefines.h:24:0,
    from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:1:
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\rCore.h:705:8: note: 'B4R::Serial'
    class Serial{
    ^
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp: In member function 'void B4R::Serial::Close()':
    B4RArduino.cpp:73: error: '::Serial' has not been declared
    ::Serial.end();
    ^
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:73:3: note: suggested alternative:
    In file included from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RDefines.h:24:0,
    from Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\B4RArduino.cpp:1:
    Y:\Source\b4r\D3MDG6~J\Objects\bin\sketch\rCore.h:705:8: note: 'B4R::Serial'
    class Serial{
    ^
    exit status 1
     
    Last edited: Nov 18, 2019
  5. warwound

    warwound Expert Licensed User

    The at85 has no hardware serial, therefore Serial object is not defined in the at85 definition you added to BoardsManager.

    There is probably a SoftwareSerial defined, and you'd have to modify your b4r sketch to use SoftwareSerial.
     
  6. Troberg

    Troberg Well-Known Member Licensed User

    Well, so I thought, but I even tried to disable serial altogether and comment out that line in the project, and still got that result.
     
  7. warwound

    warwound Expert Licensed User

    Are you using a Digispark module as you linked to in your first post?
    If so look here: http://digistump.com/wiki/digispark/tutorials/connecting.
    See it has an additional boards manager URL that's different from the one you are currently trying?
    Try the URL from digistump and see if that works.

    I had one of these Digispark modules a few years back and never managed to get it working with the Arduino IDE, hope you have more luck.
     
  8. Troberg

    Troberg Well-Known Member Licensed User

    A Chinese version of the digispark, as linked. Actually, the link is what I ordered from.

    I'll give it a try when I get home.

    Edit: I apologize for stupid questions. Arduino is a new world to me, I've got a lot to learn...
     
    Last edited: Nov 19, 2019
    spairo likes this.
  9. Troberg

    Troberg Well-Known Member Licensed User

    Tried that link now, didn't get that to work either, though I got a different error. Will try more later.
     
  10. thetahsk

    thetahsk Active Member Licensed User

    Last edited: Nov 28, 2019
  11. Troberg

    Troberg Well-Known Member Licensed User

    Sorry, didn't work either.
     
  12. f0raster0

    f0raster0 Active Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice