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
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
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.
Use the Keil project in the folder
<SDK_InstallFolder>\examples\peripheral\blinky\pca10040\blank\arm5_no_packs
thanks for your reply,
i used the blinky program and i saw that it uses built in library functions but what if i want to create a program from scratch or the beginning without using any built in function, by coding in C to just set and reset a pin on nrf52832 after a delay?
thanks
In that case I would recommend starting with the template project:
SDK_Folder\examples\peripheral\template_project\pca10040\blank\arm5_no_packs
You can find example on how to use the GPIO peripheral directly here. Pin 17 is the LED1 on the Development kit(DK).
i have been able to blink led with the following code, but how to use this code to generate a PWM on any other GPIO pins than the 4 LED pins given. which command to be used for setting a pin low or high?
include <stdbool.h>
include <stdint.h>
include "nrf_delay.h"
include "bsp.h" /for gpio and led declrtn/
include "nrf.h"
include "system_nrf52.h"
define ENABLE_SWD 1
static const uint8_t leds_list[LEDS_NUMBER] = { 9, 7, LED_1, LED_4 };
int main(void) { /* Configure LED-pins as outputs. */ LEDS_CONFIGURE(LEDS_MASK); int i=0;
while(true) { while(i<500)
{
// Start LED here
nrf_gpio_pin_clear(LED_3);
nrf_delay_ms(1000);
nrf_gpio_pin_set(LED_3);
nrf_delay_ms(1000);
i++;
}
} }