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 :
Before beginning to modify the sources code, I was wondering if someone did the job at some point, and who to contact to have support for pushing some modifications to the main stream, and do them the right way.
Regards;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Its okay to attach the files to a reply.
If you can make a zip file, add a text explanation detailing the hardwarem where to purchase, arduino IDE settings (screenshot is ok) and a picture of finished focuser (I mean the board etc so people can see what it looks like, then I can add that into the Firmware folder and reference it in the next PDF userguide for the is project,
many thanks
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :
Before beginning to modify the sources code, I was wondering if someone did the job at some point, and who to contact to have support for pushing some modifications to the main stream, and do them the right way.
Regards;
After correction that issue I ended to the following which seems much more complicated....
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..
2- Change to the string to 'double' in previous post.
Next Step: change the serial which is the USB serial to a real serila to cennect to a raspberry. via the serial.
If I succeed I will have an implementation of the code compatible with teensy vi CPP def variables.
How to propose this modification ?
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.
Its okay to attach the files to a reply.
If you can make a zip file, add a text explanation detailing the hardwarem where to purchase, arduino IDE settings (screenshot is ok) and a picture of finished focuser (I mean the board etc so people can see what it looks like, then I can add that into the Firmware folder and reference it in the next PDF userguide for the is project,
many thanks
Robert