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

How to make a simple LED blink program

Hello Everyone

I am really new to everything here, i just got nRF 52832 board,

Can anyone please tell me the step-by- step method on how to make a program in keil uVision.

Any help will be greatly appreciated.

thanks in advance

Parents
  • Hi,

    There is a blinky example in the SDK. Its located in the folder:

    <SDK_InstallFolder>\examples\peripheral\blinky
    

    You can download the SDK 12.2 here.

  • The blank examples are set-up to flash the application code(your code in Keil) to the bottom of the flash-region, while the s132 examples are set-up to flash the application code on top of where the SoftDevice code is(The SoftDevice is always placed on the bottom of the flash-region). See this figure.

    If you want to flash “blank” examples together with the SoftDevice, you must adjust the flash settings in Keil, so that you don’t try to flash your application code where the SoftDevice code is (then you get Flash download failed error.).

    For ADC, take a look at the SAADC example in the SDK: examples\peripheral\saadc. Here AIN0 is used(pin P0.02). This example is already set-up to output the value on a terminal.

Reply
  • The blank examples are set-up to flash the application code(your code in Keil) to the bottom of the flash-region, while the s132 examples are set-up to flash the application code on top of where the SoftDevice code is(The SoftDevice is always placed on the bottom of the flash-region). See this figure.

    If you want to flash “blank” examples together with the SoftDevice, you must adjust the flash settings in Keil, so that you don’t try to flash your application code where the SoftDevice code is (then you get Flash download failed error.).

    For ADC, take a look at the SAADC example in the SDK: examples\peripheral\saadc. Here AIN0 is used(pin P0.02). This example is already set-up to output the value on a terminal.

Children
No Data
Related