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

Problem at upload to Arduino Nano #2

Open
Hitower78 opened this issue Apr 2, 2020 · 5 comments
Open

Problem at upload to Arduino Nano #2

Hitower78 opened this issue Apr 2, 2020 · 5 comments

Comments

@Hitower78
Copy link

Hi There,

i get this error:
Arduino: 1.8.12 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

C:\Users\Daniel\AppData\Local\Temp\cc8OaQ1P.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_TPM2NeoPixel.ino.cpp.o.1882':

:(.text.startup+0x94): undefined reference to `TPM2::TPM2(Stream*, unsigned char*, unsigned int)'

C:\Users\Daniel\AppData\Local\Temp\cc8OaQ1P.ltrans0.ltrans.o: In function `setup':

C:\Users\Daniel\AppData\Local\Temp\arduino_modified_sketch_670557/TPM2NeoPixel.ino:37: undefined reference to `TPM2::registerRxData(void ()(unsigned char, unsigned int))'

C:\Users\Daniel\AppData\Local\Temp\cc8OaQ1P.ltrans0.ltrans.o: In function `loop':

C:\Users\Daniel\AppData\Local\Temp\arduino_modified_sketch_670557/TPM2NeoPixel.ino:45: undefined reference to `TPM2::update()'

collect2.exe: error: ld returned 1 exit status

exit status 1
Fehler beim Kompilieren für das Board Arduino Nano.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

i dont know how to handle that

What i want to do:
ues the Nano, is it possible?
use the "ALDI Neopixel" lib
use my "ALDI 1829 Stripes"

Jinx is running fine with a nano in tpm2 running "glediator format", but the "ALDI" Stripes are special...

thanks for Help :-)

Cheers from Hamburg / Germany
Daniel

@rstephan
Copy link
Owner

rstephan commented Apr 2, 2020

It looks like the Arduino IDE is not finding the TPM2 library correctly. Post the entire log for the compile-run. To see all detail go to: "Datei -> Voreinstellungen" and than "Ausführliche Ausgabe während der Kompilierung". After that, compile again.

A Nano is fine, it's the same controller as the Uno, just a smaller PCB.
You can extend my examples to what ever LEDs you like. As long as the controller is fast enough and has as much RAM as needed.

@Hitower78
Copy link
Author

Thanks for the quick Answer!
You can find the complete Log here:
https://pastebin.com/hNp3Zg0e

i know the TPM2 Lib is running weeks ago. but i didnt know what i change. and i install a lot (homeoffice...) and try a lot

@rstephan
Copy link
Owner

rstephan commented Apr 6, 2020

The library is not installed properly. Follow the installation instructions from the README file. For Windows, the place should be "C:\Users\Daniel\Documents\Arduino\libraries\TPM2". You can use the import zip-file option as well.
Restart the Arduino-IDE and open "File->Examples" from the menu. The list must show TPM2, and from there you can open one of the examples.

@Hitower78
Copy link
Author

HI
Check! The Lib was there but called "TMP2-Master", as the ZIP file is called ;-)
i Renamed it and installed this new

Example FASTLED is running, but Neopixel isnt Compiling

https://pastebin.com/tYr6mear

perhaps i try a clean installation

@rstephan
Copy link
Owner

rstephan commented Apr 8, 2020

I am sorry, but the library isn't installed properly. Especially from the IDE point of view.
The name of the folder is not important, it is it's position and the content inside. You can replace the ...\xxx\... below with any name: "TPM2", "TPM2-master" or "foo-bar".

  • C:\Users\Daniel\Documents\Arduino\libraries\xxx\library.properties
  • C:\Users\Daniel\Documents\Arduino\libraries\xxx\src\TPM2.cpp
  • C:\Users\Daniel\Documents\Arduino\libraries\xxx\src\TPM2.h
  • C:\Users\Daniel\Documents\Arduino\libraries\xxx\examples\TPM2NeoPixel\TPM2NeoPixel.ino
  • .... and so on ...

The examples-menu should show TPM2, and during compilation something like this:

...
Alternatives for TPM2.h: [TPM2@1.0.1]
ResolveLibrary(TPM2.h)
  -> candidates: [TPM2@1.0.1]
...
Compiling library "TPM2"
...

must show up. If not, than there is still a problem.

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