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

Setting and clearing GPIO pin doesn't work at all

I have this project where I have managed to build and flash my code onto the controller. I copied the example code from blinky (that didn't work) to my main.c and then I changed some pins, still didn't work. So what I tried was that I searched up and came across nrf_bpio_cfg_output and nrf_gpio_pin_set/clear in order to set and clear my pins. The problem still persists, I don't know if has something to do with setting the wrong output pin or something, I really don't know. Even tried multiple pins.

I want the output to be on pin 7, or pin name P0.03. On my nRF51802 chip mounted on a custom board.

I'm using "nRF51 SDK v10.0.0" and gcc compiler, therefore without IDE.

main.c:

 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
/** @file
*
* @defgroup blinky_example_main main.c
* @{
* @ingroup blinky_example
* @brief Blinky Example Application main file.
*
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX