SpenceKonde / megaTinyCore

Arduino core for the tinyAVR 0/1/2-series - Ones's digit 2,4,5,7 (pincount, 8,14,20,24), tens digit 0, 1, or 2 (featureset), preceded by flash in kb. Library maintainers: porting help available!
Other
544 stars 141 forks source link

megatinycore on Micropchip Xplained Pro ATtiny3217 #1018

Closed Albrechtidis01 closed 9 months ago

Albrechtidis01 commented 9 months ago

Hi Dr.Azzy,

I want to work with the Microchip Xplained Pro 3217 under the Arduino IDE 1.8.19. From megatinycore Version 2.6.8 I selected 'Official Microchip Board/Xplained Pro ATtiny3217'. If I compile, the following error is displayed:

fatal error: pins_arduino.h: No such file or directory

I checked the boards.txt file, but I can see no problem there. I assume, an other board is internally detected. But I don't know really, how the board detection works internally...
Can you help with some information here? Thanks in advance

Albrecht Frick Munich, Germany

PS: the full output is here:

Arduino: 1.8.19 (Windows 10), Board: "Official Microchip Board, Xplained Pro ATtiny3217, 20 MHz internal, 1.8V (5 MHz or less), Disabled/Disabled, EEPROM retained, Enabled (default timer), UPDI (no reset pin), 8ms, Master or Slave (saves flash and RAM), Default (doesn't print floats, 1.4k flash use), On all pins, with new implementation., Disabled (recommended), No delay before window "opens""

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\albre\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\albre\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\albre\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchip:board_name=xp3217,clock=20internal,bodvoltage=1v8,bodmode=disabled,eesave=enable,millis=enabled,resetpin=UPDI,startuptime=8,wiremode=mors,printf=default,attach=allenabled,WDTtimeout=disabled,WDTwindow=disabled -ide-version=10819 -build-path C:\Users\albre\AppData\Local\Temp\arduino_build_761045 -warnings=none -build-cache C:\Users\albre\AppData\Local\Temp\arduino_cache_856989 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\albre\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\albre\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avrdude.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.python3.path=C:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\albre\OneDrive\homegroup\ArduinoWork_ARDUINO_TEMPLATES\Xpl3217\Xpl3217.Serial.MyLibs.V00\Xpl3217.Serial.MyLibs.V00.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\albre\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\albre\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\albre\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchip:board_name=xp3217,clock=20internal,bodvoltage=1v8,bodmode=disabled,eesave=enable,millis=enabled,resetpin=UPDI,startuptime=8,wiremode=mors,printf=default,attach=allenabled,WDTtimeout=disabled,WDTwindow=disabled -ide-version=10819 -build-path C:\Users\albre\AppData\Local\Temp\arduino_build_761045 -warnings=none -build-cache C:\Users\albre\AppData\Local\Temp\arduino_cache_856989 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\albre\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\albre\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avrdude.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.python3.path=C:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\albre\OneDrive\homegroup\ArduinoWork_ARDUINO_TEMPLATES\Xpl3217\Xpl3217.Serial.MyLibs.V00\Xpl3217.Serial.MyLibs.V00.ino

Using board 'microchip' from platform in folder: C:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.8

Using core 'megatinycore' from platform in folder: C:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.8

Detecting libraries used...

"C:\Users\albre\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DUSE_TIMERD0_PWM -DARDUINO=10819 -DARDUINO_AVR_Xplained_Pro_3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.8.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=8UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB5 "-IC:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.8\cores\megatinycore/api/deprecated" "-IC:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.8\cores\megatinycore" "-IC:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.8\variants\atxy7" "C:\Users\albre\AppData\Local\Temp\arduino_build_761045\sketch\Xpl3217.Serial.MyLibs.V00.ino.cpp" -o nul

Alternatives for pins_arduino.h: []

ResolveLibrary(pins_arduino.h)

-> candidates: []

In file included from C:\Users\albre\AppData\Local\Temp\arduino_build_761045\sketch\Xpl3217.Serial.MyLibs.V00.ino.cpp:1:0:

C:\Users\albre\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.8\cores\megatinycore/Arduino.h:686:10: fatal error: pins_arduino.h: No such file or directory

include "pins_arduino.h"

      ^~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

Fehler beim Kompilieren für das Board Official Microchip Board.

SpenceKonde commented 9 months ago

This doesn't reproduce for me, does it still happen in the latest release from last night?

Does it require the sketch to have that library included? If so I need to know where the library comes from (name of arduino libraries is meaningless. There does not exist a unique mapping between library names and actual library code, because the same name, if the library is popular, will map to dozens of publically available repos - this is the dark side of github and open source. The good news is anyone can make a fork and whoever wants to can use it. The bad news is that anyone can make a fork, and nobody bothers to update readme/docs.

Everytime someone forks a library, modifies it to work for them (in github, so publically) and then links to it from their blog, 9 times out of 10, the readme is unchanged, so someone coming along doesn't realize that it's a modified version. Then someone else tries to use your code, or you try to rebuild your libraries folder after a crash from which only your code in github escaped (happened to me,though I eventually paid like half a grand to commercial data recovery because it had over 100 hours of PCB work on it that I couldn't get back and had to rev the board - but in that interim, I had the code for a project, but it had to be totally rewritten, because apparently when I started with that library I had picked a whacko version with a weird API, and couldn't find it or anything like it).

Albrechtidis01 commented 9 months ago

Hi Dr. Azzy,

Best regards

Albrecht

Von: Spence Konde (aka Dr. Azzy) @.> Gesendet: Dienstag, 10. Oktober 2023 22:58 An: SpenceKonde/megaTinyCore @.> Cc: Albrechtidis01 @.>; Assign @.> Betreff: Re: [SpenceKonde/megaTinyCore] megatinycore on Micropchip Xplained Pro ATtiny3217 (Issue #1018)

This doesn't reproduce for me, does it still happen in the latest release from last night?

Does it require the sketch to have that library included? If so I need to know where the library comes from (name of arduino libraries is meaningless. There does not exist a unique mapping between library names and actual library code, because the same name, if the library is popular, will map to dozens of publically available repos - this is the dark side of github and open source. The good news is anyone can make a fork and whoever wants to can use it. The bad news is that anyone can make a fork, and nobody bothers to update readme/docs.

Everytime someone forks a library, modifies it to work for them (in github, so publically) and then links to it from their blog, 9 times out of 10, the readme is unchanged, so someone coming along doesn't realize that it's a modified version. Then someone else tries to use your code, or you try to rebuild your libraries folder after a crash from which only your code in github escaped (happened to me,though I eventually paid like half a grand to commercial data recovery because it had over 100 hours of PCB work on it that I couldn't get back and had to rev the board - but in that interim, I had the code for a project, but it had to be totally rewritten, because apparently when I started with that library I had picked a whacko version with a weird API, and couldn't find it or anything like it).

— Reply to this email directly, view it on GitHub https://github.com/SpenceKonde/megaTinyCore/issues/1018#issuecomment-1756243903 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AZD7MBTIH2BV4G54HW4ZZ73X6WZGNAVCNFSM6AAAAAA5YVT5HCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWGI2DGOJQGM . You are receiving this because you were assigned. https://github.com/notifications/beacon/AZD7MBWMPIOVI6M55BKNMMLX6WZGNA5CNFSM6AAAAAA5YVT5HCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTIVYT36.gif Message ID: @. @.> >

SpenceKonde commented 9 months ago

Did you send that file as an email attachment? Github only takes files you attach to comments made through the web interface,

Albrechtidis01 commented 9 months ago

sorry, now the 'attached' files... arduino.Attiny3217.ok.output.txt arduino.official.microboard.error.output.txt ide msg samd board M0

Albrechtidis01 commented 9 months ago

and XplPro3217.Minimal.ino,txt

SpenceKonde commented 9 months ago

boards.txt had a typo in it that nobody had noticed (several actually), all relating to the microchip boards. I dont think they get much exercise.

Now - the issue with the nonsensical error message? I don't generate that, That issue is almost certainly unrelated to this one - and it's Arduino's bug; I can't do anything about it - you need to raise it with them, But - that's a 1.8.x version of Arduino. They;'re not releasing maint patches for that anymore, they;re on 2.2.1 now (but don't download that one, or 2.2.0 - those versions can;'t install third party hardware packages (such as this one) due to a regression in the cli/arduino-builder

Albrechtidis01 commented 9 months ago

Thanks, fix works!

Von: Spence Konde (aka Dr. Azzy) @.> Gesendet: Donnerstag, 12. Oktober 2023 08:42 An: SpenceKonde/megaTinyCore @.> Cc: Albrechtidis01 @.>; Assign @.> Betreff: Re: [SpenceKonde/megaTinyCore] megatinycore on Micropchip Xplained Pro ATtiny3217 (Issue #1018)

boards.txt had a typo in it that nobody had noticed (several actually), all relating to the microchip boards. I dont think they get much exercise.

— Reply to this email directly, view it on GitHub https://github.com/SpenceKonde/megaTinyCore/issues/1018#issuecomment-1759004457 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AZD7MBQFIUCODH2W2OLYWGDX66GKZANCNFSM6AAAAAA5YVT5HA . You are receiving this because you were assigned. https://github.com/notifications/beacon/AZD7MBRYNPX4F5OS7P6TO5DX66GKZA5CNFSM6AAAAAA5YVT5HCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTI3BDSS.gif Message ID: @. @.> >