How to program nRF51822

ChibiOS public support forum for topics related to the Nordic nRF51 family of micro-controllers.

Moderator: utzig

ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

How to program nRF51822

Postby ep.hobbyiest » Mon Feb 06, 2017 8:16 pm

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

utzig
Posts: 359
Joined: Sat Jan 07, 2012 6:22 pm
Location: Brazil
Has thanked: 1 time
Been thanked: 20 times
Contact:

Re: How to program nRF51822

Postby utzig » Mon Feb 06, 2017 10:21 pm

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

User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Location: South Korea
Has thanked: 3 times
Been thanked: 3 times

Re: How to program nRF51822

Postby DeusExMachina » Wed Feb 08, 2017 1:51 am

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

ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: How to program nRF51822

Postby ep.hobbyiest » Sun Feb 12, 2017 9:56 am

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


Return to “nRF51 Support”

Who is online

Users browsing this forum: No registered users and 3 guests