I'm programming in ARM assembly and I'm learning the DCP coprocessor functions for double-precision operations on pico2.
It works, but I'm running into a small problem: after testing a function, I have a command that allows me to reboot the Pico2 and return to bootstrap mode without having to unplug the Pico from the USB port.
This works fine for all my programs except this one, which uses the coprocessor.
It seems that calling ROM API functions is blocking.
If I disable the call to the coprocessor, it works again.
To start the coprocessor, I set bits 8 and 9 (port 4) of the CPACR Register to 1.
and I tried to reset the goals before calling the boot functions but it doesn't work.
I must have forgotten something again, but what?
Thanks for your help.
It works, but I'm running into a small problem: after testing a function, I have a command that allows me to reboot the Pico2 and return to bootstrap mode without having to unplug the Pico from the USB port.
This works fine for all my programs except this one, which uses the coprocessor.
It seems that calling ROM API functions is blocking.
If I disable the call to the coprocessor, it works again.
To start the coprocessor, I set bits 8 and 9 (port 4) of the CPACR Register to 1.
and I tried to reset the goals before calling the boot functions but it doesn't work.
I must have forgotten something again, but what?
Thanks for your help.
Statistics: Posted by VincentARM — Mon Mar 31, 2025 1:51 pm