2025-03-12 2:15 AM
Hi all,
I am using the STM32N6570-DK kit with the GCC compiler. I want to disable the Helium extension. I have taken the AI object_detection code as a base code and created one function to check whether the Helium extension is enabled or disabled. I read on the ARM website that if you add the "-mcpu=cortex-m55+nomve" flag(attached snapshot below), the M-extension for the Helium core is no longer used. But every time we detect it, the Helium core is enabled.
Furthermore, we have tried to disable the Helium core by changing the value of the SCB->CPACR for CP10 and CP11 as mentioned in this document. We have made a combination to set 1,2, and 3(default). From the mentioned combination to set bits for CP10 and CP11 only the default value works. Otherwise, we end up in usagefault. Following is the code that I am using.
2025-03-12 9:03 AM - edited 2025-03-12 9:06 AM
The ARM clang compiler is not GCC (though compatible in many details). Are you sure that it recognizes "-mcpu=cortex-m55+nomve" flag?