Hello team 4D,
For once more I need your help. Up until now I had a let's say bootloader written to the flash, who was calling my main program using file_Run. The reason for that was so that if I need to change the program later on I wont have to run to the factories across the globe with a programming cable, just copy paste the files to the sd card. That was working like a charm up until the point when memory started to become an issue (or the lack of it). The only solution in my mind is to break down my program in to smaller ones that I will be calling from a main one, do what they are supposed to do and then unload from the memory. I have read the examples r_runprogram and r_insane (I will need to pass variables from the main to the "child" and when the child is done it will return something back to the main) and tried to use it. But... it's not working. LCD restarts, the variables are not passed and all sorts of problems. The examples are talking about writing the program R_runprogram to the flash and then it will be calling the kids. But like I mentioned earlier my main program is not actually the main program. It's actually a child as well. The "bootloader" is the real main. Is it worth it to post my code here or it simply cannot be done? Only a main program can call other child programs? I really hope I am making sense.
Thanks,
Dimitris
For once more I need your help. Up until now I had a let's say bootloader written to the flash, who was calling my main program using file_Run. The reason for that was so that if I need to change the program later on I wont have to run to the factories across the globe with a programming cable, just copy paste the files to the sd card. That was working like a charm up until the point when memory started to become an issue (or the lack of it). The only solution in my mind is to break down my program in to smaller ones that I will be calling from a main one, do what they are supposed to do and then unload from the memory. I have read the examples r_runprogram and r_insane (I will need to pass variables from the main to the "child" and when the child is done it will return something back to the main) and tried to use it. But... it's not working. LCD restarts, the variables are not passed and all sorts of problems. The examples are talking about writing the program R_runprogram to the flash and then it will be calling the kids. But like I mentioned earlier my main program is not actually the main program. It's actually a child as well. The "bootloader" is the real main. Is it worth it to post my code here or it simply cannot be done? Only a main program can call other child programs? I really hope I am making sense.
Thanks,
Dimitris
Comment