7 years, 10 months ago.

nRF51-DK code not working on nRF51822 custom hardware (but nRF51822-mkit is...)

I'm developing an nRF51822 program using the nRF51-DK dev kit which claims to support development for both the nRF51822 & nRF51422 SoCs.

Everything works fine when run on the nRF51422-based dev. board itself, but when uploading the same firmware via nRFgo to some custom hardware that uses the nRF51822 chip the code never seems to work.

I've tried simple programs (just blinking) and more complex BLE-based programs. Nothing seems to work.

Oddly I can compile code for the nRF51822-mkit target and most things (BLE, blinking) run OK on the custom hardware. In this case I'm having trouble getting SPI & I2C working when compiled for the nRF51822-mkit target...

Any suggestions to solve either problem?

Do I need to do something else to make nRF51-DK code run on nRF51822 hardware?

Or do I need to do something else to make SPI & I2C devices run OK with nRF51822-mkit compiled firmware?

Any help is appreciated! Thanks.

1 Answer

7 years, 10 months ago.

Hello Chris,

There is several flavor of NRF51822 chips. For instance the NRF51DK embed 256K of Flash and 32K of RAM while the mkit has only 256K of Flash and 16K of RAM.

It is not possible to run a program linked for 32K of RAM on a target with only 16K of RAM. Could you verify the reference of your chip ?

Beside that, the only difference between NRF51822 and NRF51422 is that the latest can do more things radio wise (support of ANT).

Could you provide me more information about your SPI and I2C, ideally the pin mapping.