kinesphere
Member
Hi everyone,
I'm trying to figure out how to switch between 2 programs on the Teensy 4/4.1.
I would like to have an initial program that will read the state of a button when started that will redirect to 2 different programs. This same question was posted some years ago for Teensy 3.6, and I was hoping by now someone would have more information (or instructions/examples) on how to achieve this.
Paul explained that there are some difficulties jumping to different addresses, but made it clear that it's not impossible to do it.
I understand that the linker script has to be modified for the redirected programs, on Teensy 4 this is on imxrt1062.ld. However, I'm not sure how to write a code that will send me to those addresses, and it seems there might be more complications too.
The reason I want to do this is that I want to be able to change the AUDIO_BLOCK_SAMPLES 'on the fly'. This will allow me to avoid some latency issues I'm having when working with different audio applications.
If there is any other way of doing this or any help whatsoever is appreciated. Thank you.
I'm trying to figure out how to switch between 2 programs on the Teensy 4/4.1.
I would like to have an initial program that will read the state of a button when started that will redirect to 2 different programs. This same question was posted some years ago for Teensy 3.6, and I was hoping by now someone would have more information (or instructions/examples) on how to achieve this.
Paul explained that there are some difficulties jumping to different addresses, but made it clear that it's not impossible to do it.
I understand that the linker script has to be modified for the redirected programs, on Teensy 4 this is on imxrt1062.ld. However, I'm not sure how to write a code that will send me to those addresses, and it seems there might be more complications too.
The reason I want to do this is that I want to be able to change the AUDIO_BLOCK_SAMPLES 'on the fly'. This will allow me to avoid some latency issues I'm having when working with different audio applications.
If there is any other way of doing this or any help whatsoever is appreciated. Thank you.