This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to make nrf51822 central to transmit the status of a pin ?

I have: nrf51822 bluetooth module, STlink V2, Keil, segger studio, nrf51 sdk and softdevice files.

I have achieved making the led blink at a ble peripheral device by nordic connect app via this link https://www.youtube.com/watch?v=_-d2d6Vc3lg&list=WL&index=96.

I want to make a ble master from which I can connect to the peripheral  and send the status of a button to the peripheral. (Its like when I poweron, the master search for the peripheral and connects to it and send the status of one of its pin).

Can you please guide me how to do that.

Parents Reply
  • a) You don't necessarily have to change the device type, but both nrf51422 and nrf51822 come in different memory variants, so make sure the memory layout in your project matches the amount of RAM and FLASH  available on your chip (nRF51822 IC revisions and variants).

    The SDK examples are configured for the nRF51x22_xxAC variant, which has 256KB of flash and 32K of RAM.

    b) I don't have any experience with ST linkV2 as J-link is what we officially support and recommend for development. However, you can find many threads here on the forum for programming with ST linkv2, so it seems like it should work.

    Also, please note that our nRF51 series is not recommended for new designs. If you are starting a new project, I would rather recommend you get one of the nRF52 dev kits (https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52-DK ). It has a on-board J-link debugger that you also can use to program nordic modules with (Debug output).

Children
Related