Skip to content

Instantly share code, notes, and snippets.

@Bouni
Created November 27, 2024 07:24
Show Gist options
  • Save Bouni/91faac2e020908181d5e02089400a9d4 to your computer and use it in GitHub Desktop.
Save Bouni/91faac2e020908181d5e02089400a9d4 to your computer and use it in GitHub Desktop.
Attiny1616 PB5 problem
pio run -v -j1
Processing udpi (upload_flags: --tool, uart, --device, $BOARD_MCU, --uart, $UPLOAD_PORT, --clk, $UPLOAD_SPEED; upload_command: pymcuprog write --erase $UPLOAD_FLAGS --filename $SOURCE; platform: atmelmegaavr; board: ATtiny1616; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/atmelmegaavr/ATtiny1616.html
PLATFORM: Atmel megaAVR (1.9.0) > ATtiny1616
HARDWARE: ATTINY1616 16MHz, 2KB RAM, 16KB Flash
PACKAGES:
- framework-arduino-megaavr-megatinycore @ 2.6.7
- toolchain-atmelavr @ 3.70300.220127 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 15 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
avr-g++ -o .pio\build\udpi\src\main.cpp.o -c -std=gnu++17 -fpermissive -fno-exceptions -fno-threadsafe-statics -flto -Wno-sized-deallocation -Wno-error=narrowing -mmcu=attiny1616 -Os -w -ffunction-sections -fdata-sections -flto -mrelax -DPLATFORMIO=60116 -DARDUINO_attinyxy6 -DMILLIS_USE_TIMERD0 -DUARTBAUD5V -DF_CPU=16000000L -DARDUINO_ARCH_MEGAAVR -DARDUINO=10808 -DCLOCK_SOURCE=0 -DMEGATINYCORE=\"2.6.7\" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=7UL -DMEGATINYCORE_RELEASED=1 -DCORE_ATTACH_ALL -DTWI_MORS -Iinclude -Isrc -IC:\Users\user7\.platformio\packages\framework-arduino-megaavr-megatinycore\cores\megatinycore\api\deprecated -IC:\Users\user7\.platformio\packages\framework-arduino-megaavr-megatinycore\cores\megatinycore -IC:\Users\user7\.platformio\packages\framework-arduino-megaavr-megatinycore\variants\txy6 src\main.cpp
src\main.cpp: In function 'void setup()':
src\main.cpp:4:14: error: 'PIN_B5' was not declared in this scope
#define TEST PIN_B5
^
src\main.cpp:39:11: note: in expansion of macro 'TEST'
pinMode(TEST, OUTPUT);
^~~~
src\main.cpp:4:14: note: suggested alternative: 'PIN_PB5'
#define TEST PIN_B5
^
src\main.cpp:39:11: note: in expansion of macro 'TEST'
pinMode(TEST, OUTPUT);
^~~~
src\main.cpp: In function 'void loop()':
src\main.cpp:4:14: error: 'PIN_B5' was not declared in this scope
#define TEST PIN_B5
^
src\main.cpp:191:16: note: in expansion of macro 'TEST'
digitalWrite(TEST, HIGH);
^~~~
src\main.cpp:4:14: note: suggested alternative: 'PIN_PB5'
#define TEST PIN_B5
^
src\main.cpp:191:16: note: in expansion of macro 'TEST'
digitalWrite(TEST, HIGH);
^~~~
*** [.pio\build\udpi\src\main.cpp.o] Error 1
==================================================================================================== [FAILED] Took 0.91 seconds ====================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment