crazyflie_nrf_bootloader on KEIL C compiler proplem

Firmware/software/electronics/mechanics
Post Reply
lzy
Beginner
Posts: 3
Joined: Sat Jul 23, 2016 9:00 am

crazyflie_nrf_bootloader on KEIL C compiler proplem

Post by lzy »

Hi,
I made the crazyflie2_nrf_bootloader on the KEIL C compiler,because I have no experience on the ECLIPSE GCC develop platform. :(
Now,there is a proplem that the code

Code: Select all

ble_init();
has done and debug to the line

Code: Select all

NRF_POWER->GPREGRET |= 0x20U;
will cause to a HardFault_Handler.

And I view the MPU register value like the below picture:
PICTURE.png
AS the picture the POWER_CLOCK of MPU PERR0 is written '1',so POWER_CLOCK are protected by the MPU,this is cause a HardFault_Handler reason.

Why there is no proplem runing on ECLIPSE platform? thanks. :)
Post Reply