have a problem compiling your code:
C:\Users\...\AppData\Local\Temp\arduino_build_427817\sketch/robot.cpp:1586: undefined reference to `_reboot_Teensyduino_'
collect2.exe: error: ld returned 1 exit status
jow, das kenne ich. Aber in der .h hast Du den ifndef define vor dem eigentlichen code und ganz am Schluß das endif. Wenn Du jetzt dazwischen Dein Debug Beispiel einfügst, dann rafft der compiler das mit dem endif ganz am Schluss nicht mehr.Code:#define DEBUG 1 #ifdef DEBUG Serial.println(F("START")); #endif
das not work.Sorry if translate is sometime complex and if i made some mistake on name .
Code compile on my side without error.
reboot_teens.. is declare into robot.h
It is use by raspberry PI to reboot the teensy after uploading a new firmware using piardu.
I join the ZIP of the file locate on my PC in case something is wrong with GITHUB.
I thought I would make a pfod.h and pfod.cpp for Due and Teensy and select the required code parts and libraries via compiler statement.Gehört die Abfrage nicht in die cpp Datei rein?
It's strange that it compile on my side.das not work.
i found this: https://forum.pjrc.com/threads/67169-Reset-Teensy-4-1-to-program-mode
So _reboot_Teensyduino_() does not work with Teensy4.1, we should use: asm("bkpt #251"); // run bootloader
void Robot::teensyBootLoader() {
delayWithWatchdog(8000); //wait for pyteensy to stop and start pi teensy loader
asm("bkpt #251");
//_reboot_Teensyduino_();
}
Sorry but i don't understand .I thought I would make a pfod.h and pfod.cpp for Due and Teensy and select the required code parts and libraries via compiler statement.
However, I don't know how to nest compiler statements and whether this is possible at all.
i‘ll send it tomorrowIt's strange that it compile on my side.
I use arduino ide 1.8.16 and teensyloader is 1.55 beta2 on my PC and teensyloader 1.52 inside the raspberry pi for WIFI firmware update.
Can you tell me what is your config ?
In all case it's work also for me with your suggest ,so no problem:
Code:void Robot::teensyBootLoader() { delayWithWatchdog(8000); //wait for pyteensy to stop and start pi teensy loader asm("bkpt #251"); //_reboot_Teensyduino_(); }
Teensyloader 1.53It's strange that it compile on my side.
I use arduino ide 1.8.16 and teensyloader is 1.55 beta2 on my PC and teensyloader 1.52 inside the raspberry pi for WIFI firmware update.
Can you tell me what is your config ?
In all case it's work also for me with your suggest ,so no problem:
Code:void Robot::teensyBootLoader() { delayWithWatchdog(8000); //wait for pyteensy to stop and start pi teensy loader asm("bkpt #251"); //_reboot_Teensyduino_(); }
Not yet tested ,But i don't really understand what you want to do .Back to pfod.ccp and pfod.h. Can you work with one version and compiler instructions?
It fail to compile !Hello Bernard,
> serialPort->println(F("|C00~TextConsole :<-6> ")) <
unfortunately does not work. I solved it via compiler statement (my current favourite).
Hello, knights of the green lawn,
enclosed for all who would like to test the current version of pfod.h and pfod.cpp for !!! azuritBer on Due + Teensymower on Teensy4.1. Unfortunately I can only test Teensymower, as I have azurit running on my prototype-2.
Gruß Fürst Ruprecht