Question
Why I can not call function from address 0x00000000 or 0x08000000?
I have created a pointer to function like void (*MyFun)(void); and I assigned first time 0x00000000 and the second time 0x08000000. in both cases after call MyFun(); I get HardFault error.
Why?
PS. This is simple project created in CubeIDE (default project for STM32F103) and I only add some lines of code to call MyFun();