Question
"Cache New" Nut My_system_stm32h7.c file for Clock config: 4 Lines too much
Sorry, I just recognized that in the file I appened to the "Cache New" Nut question, I kept 4 test lines to get this "Code 32 alignment" done before the for wait loop ... .
But this does not work ... this will unfortunately be refused by the compiler.
So please change this in line 192..200:
Wrong state:
// __asm("ALIGN 32\n");
iDelay= 0;
__asm {
AND iDelay, iDelay, #0
ALIGN 32
}
while( !(PWR->D3CR & PWR_D3CR_VOSRDY))
{ if( iDelay++ > IFLOOPEND_1ms) return 0; } Correct it should look like this:
iDelay= 0;
while( !(PWR->D3CR & PWR_D3CR_VOSRDY))
{ if( iDelay++ > IFLOOPEND_1ms) return 0; }