Hello everyone,
I found out what the issue was: basically the function I want to corrupt was not where I excepted.
To be specific, I tried to allocate a range within the linker for an injection zone, and called this section "injection_section":
.injection_section 0x100000 : { . += 0x100000; }
Then in the bare metal test I declared the function to be placed in this section:
void __attribute__ section(("injection_section")) test_function(void);
I modified the cacheline at the address 0x100000. But then I found out that the test_function was not actually there, but after this section (> 0x200000).
So could someone help to force the test function to be in this section?
Thank you.
Florian