After some errors in modifications I now have a code which works, and integration with Indi Driver is OK. Where to post the main modifications ? As a return of experience, the modifications are very low and are mainly : 1- Change Serial in Serial1 and serialEvent in serialEvent1 2- Change in rebot code. 3- change in float/double access. I did not include any screen and temperature sensor.
If I succeed I will have an implementation of the code compatible with teensy vi CPP def variables. How to propose this modification ?
Next Step: change the serial which is the USB serial to a real serila to cennect to a raspberry. via the serial.
I found the issue. This is due to the way the reboot is requested and done on the arduino. So I changes the following : void software_Reboot() { // begin DGEDGEDGE // asm volatile("jmp 0"); // jump to the start of the program Serial.println("Redémarrage du Teensy..."); SCB_AIRCR = 0x05FA0004; // Forcer un redémarrage // End DGEDGEDGE } In summary save the hardware, the pin allocation, I made 2 modifications to have the software compile on the teensy : 1- The reboot instruction in the current port.....
After correction that issue I ended to the following which seems much more complicated.... In file included from /home/denis/Téléchargements/myFocusseurPro2/myFP2_Firmware_338/myFP2_A4998_338/config.h:9, from /home/denis/Téléchargements/myFocusseurPro2/myFP2_Firmware_338/myFP2_A4998_338/myFP2_A4998_338.ino:59: /home/denis/Téléchargements/myFocusseurPro2/myFP2_Firmware_338/myFP2_A4998_338/myBoardDefs.h:72:37: warning: multi-line comment [-Wcomment] 72 | #define DRV8825HW203_KEYPAD4x4 116 // DRV8825HW203_M_MT_F_BT...
Hi, I have for some reason a board made with a teensy4.0 and some stepper. I wanted to compile the "// myFOCUSERPRO2 OFFICIAL FIRMWARE RELEASE 338 (11-Oct-2024)" on this architecture, but I did had some issues : In file included from /home/denis/Téléchargements/myFocusseurPro2/myFP2_Firmware_338/myFP2_A4998_338/myFP2_A4998_338.ino:80: /home/denis/Téléchargements/myFocusseurPro2/myFP2_Firmware_338/myFP2_A4998_338/serialcomms.h: In function 'void ser_comms()': /home/denis/Téléchargements/myFocusseurPro2/myFP2_Firmware_338/myFP2_A4998_338/serialcomms.h:241:42:...