redbear / nRF5x

nRF51822 and nRF52832 based baords, e.g. BLE Nano, RBL_nRF51822, Nano 2 and Blend 2
188 stars 93 forks source link

How to generate bootloader.hex #32

Closed xfan1024 closed 6 years ago

xfan1024 commented 6 years ago

Is the arduino bootloader build from the source in nRF5x/nRF51822/dfu/rbl_nrf51822_bootloader?

I download nRF51 SDK 10.0, then copy sdk10.0/components to nRF5x/, copy sdk10.0/examples/bsp to nRF5x/nRF51822 , then cd to nRF5x/nRF51822/dfu/rbl_nrf51822_bootloader/pca10028/dual_bank_ble_s130/armgcc and run make.

git clone https://github.com/redbear/nRF5x cp sdk10.0/components nRF5x/ -a cp sdk10.0/examples/bsp nRF5x/nRF51822 -a cd nRF5x/nRF51822/dfu/rbl_nrf51822_bootloader/pca10028/dual_bank_ble_s130/armgcc make

I got hex and bin file.

256M nrf51422_xxac.bin 7.8K nrf51422_xxac.hex

Then I using nRFgo Studio programing nrf51422_xxac.hex and s130_nrf51_1.0.0_softdevice.hex to my deivce, and it is not work, but the arduino bootloader can work will.

xfan1024 commented 6 years ago

I have solved the problem, my project base on pca10028(32KB RAM), but I use nrf51822 chip(16KB RAM), so I modifiy RAM setting and rebuild project, then it's working.