How to program nRF51822
Posted: Mon Feb 06, 2017 8:16 pm
by ep.hobbyiest
Hi,
I am planning to use nRF51822 with chibios. I want to know about. how to program this controller.
I am planning to buy following module.
https://www.aliexpress.com/item/NRF5182 ... b61df5d9a8
Re: How to program nRF51822
Posted: Mon Feb 06, 2017 10:21 pm
by utzig
I have similar boards and I one baseboard with pins for programming. As a programmer I use the st-link on a STM32F4-Discovery, but any SWD programmer should do.
Cheers,
Fabio Utzig
Re: How to program nRF51822
Posted: Wed Feb 08, 2017 1:51 am
by DeusExMachina
Yes, openOCD supports ST-Link2 and it works quite well with nrf51822.
just try something like this with OpenOCD10 in "Debugger" tab
Config options
Code: Select all
-f interface/stlink-v2.cfg -f target/nrf51.cfg -s c:/ChibiStudio/tools/openocd10/scripts
commands
Code: Select all
set mem inaccessible-by-default off
Re: How to program nRF51822
Posted: Sun Feb 12, 2017 9:56 am
by ep.hobbyiest
Thanks.
And i got few tutorials as well.
I was looking for for example code for nrf51822 processor. I got one in chibi-contri.
But while compiling i got following error. I think problem with linking.
here is error.
Code: Select all
make -j4 all
make: *** No rule to make target `chcoreasm_v6m.S', needed by `build/obj/chcoreasm_v6m.o'. Stop.
make: *** Waiting for unfinished jobs....
Compiling crt0_v6m.S