Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking .pio\build\uno\firmware.elf - error #6

Open
Alex-Pennington opened this issue Jul 18, 2023 · 1 comment
Open

Linking .pio\build\uno\firmware.elf - error #6

Alex-Pennington opened this issue Jul 18, 2023 · 1 comment

Comments

@Alex-Pennington
Copy link

Alex-Pennington commented Jul 18, 2023

This is the first issue I've reported, please let me know if there's a format that should be followed and I'll reformat this post.

Processing uno (platform: atmelavr; board: uno; framework: arduino)
-----------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (4.1.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash   
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES:
 - framework-arduino-avr @ 5.1.0
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)       
Converting GPSClient.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
[nanopb] Installing Protocol Buffers dependencies
Requirement already satisfied: protobuf>=3.19.1 in c:\users\user\.platformio\penv\lib\site-packages (4.23.4)

[notice] A new release of pip is available: 23.0.1 -> 23.2
[notice] To update, run: C:\Users\USER\.platformio\penv\Scripts\python.exe -m pip install --upgrade pip
[nanopb] No generation needed.
Found 6 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Nanopb @ 0.4.7
Building in release mode
Compiling .pio\build\uno\src\GPSClient.ino.cpp.o
Compiling .pio\build\uno\libfc9\Nanopb\pb_common.c.o
Compiling .pio\build\uno\libfc9\Nanopb\pb_decode.c.o
Compiling .pio\build\uno\libfc9\Nanopb\pb_encode.c.o
Archiving .pio\build\uno\libFrameworkArduinoVariant.a
Archiving .pio\build\uno\libfc9\libNanopb.a
Compiling .pio\build\uno\FrameworkArduino\CDC.cpp.o
Compiling .pio\build\uno\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\uno\FrameworkArduino\HardwareSerial0.cpp.o
Compiling .pio\build\uno\FrameworkArduino\HardwareSerial1.cpp.o
Compiling .pio\build\uno\FrameworkArduino\HardwareSerial2.cpp.o
Compiling .pio\build\uno\FrameworkArduino\HardwareSerial3.cpp.o
Compiling .pio\build\uno\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\uno\FrameworkArduino\PluggableUSB.cpp.o
Compiling .pio\build\uno\FrameworkArduino\Print.cpp.o
Compiling .pio\build\uno\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\uno\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\uno\FrameworkArduino\USBCore.cpp.o
Compiling .pio\build\uno\FrameworkArduino\WInterrupts.c.o
Compiling .pio\build\uno\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\uno\FrameworkArduino\WString.cpp.o
Compiling .pio\build\uno\FrameworkArduino\abi.cpp.o
Compiling .pio\build\uno\FrameworkArduino\hooks.c.o
Compiling .pio\build\uno\FrameworkArduino\main.cpp.o
Compiling .pio\build\uno\FrameworkArduino\new.cpp.o
Compiling .pio\build\uno\FrameworkArduino\wiring.c.o
Compiling .pio\build\uno\FrameworkArduino\wiring_analog.c.o
Compiling .pio\build\uno\FrameworkArduino\wiring_digital.c.o
Compiling .pio\build\uno\FrameworkArduino\wiring_pulse.S.o
Compiling .pio\build\uno\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\uno\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\uno\libFrameworkArduino.a
Linking .pio\build\uno\firmware.elf
C:\Users\USER\AppData\Local\Temp\ccxbHEiH.ltrans0.ltrans.o: In function `main':
<artificial>:(.text.startup+0x104): undefined reference to `mt_serial_init(signed char, signed char)'
<artificial>:(.text.startup+0x112): undefined reference to `mt_set_debug(bool)'
<artificial>:(.text.startup+0x18a): undefined reference to `mt_loop(unsigned long)'      
<artificial>:(.text.startup+0x1b0): undefined reference to `mt_request_node_report(void (*)(mt_node_t*, mt_nr_progress_t))'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\uno\firmware.elf] Error 1
@GUVWAF
Copy link
Member

GUVWAF commented Sep 26, 2023

Can you try again with version 0.0.2? Although the Arduino Uno probably doesn't have enough RAM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants