Hi I am new to NRF52832, I tested the Blinky example code but only Pin 8 and 9 work. Other I/O pins (4,5,6,7) have no response. Please help.
Hi I am new to NRF52832, I tested the Blinky example code but only Pin 8 and 9 work. Other I/O pins (4,5,6,7) have no response. Please help.
Would be very helpful to show us what code changes you did and what you expect the output to be on other pins (4,5,6,7)?
Thanks for your reply. I just measured the voltage on the board. If I set bsp_board_led_on(2) it turns on OUT1 and bsp_board_led_on(3) it turns on OUT2. It seems that the command does not map to the correct I/O pins.
Here is my code:
pca10040.h
// LEDs definitions for PCA10040
#define LEDS_NUMBER 7
#define OUT1 9
#define OUT2 8
#define OUT3 7
#define OUT4 6
#define OUT_R 10
#define OUT_B 11
#define OUT_G 12
#define LEDS_ACTIVE_STATE 1
#define LEDS_INV_MASK LEDS_MASK
#define LEDS_LIST { OUT1, OUT2, OUT3, OUT4, OUT_R, OUT_B, OUT_G}
main.c
int main(void)
{
/* Configure board. */
bsp_board_init(BSP_INIT_LEDS);
/* Toggle LEDs. */
while (true)
{
for (int i = 0; i < LEDS_NUMBER; i++)
{
bsp_board_led_invert(i);
nrf_delay_ms(100);
}
}
}
Debugger: IAR J-Link
I think I've found the problem. I am using our PCBA which has a QFN48 NRF52832 while the PCA10040 use QFP-100 pin IC.
My next question is how can I can change the IC to QFN48?
Thanks