I’m trying to run the blinky example provided with the sparkfun bsps. The code uploads successfully with either bootloader, but nothing blinks. As a note, I am able to run the UART example successfully.
Looking at the code it shows am_bsp_pins.c
to have
-
am_bsp_pins.h
setsAM_BSP_GPIO_LED_BLUE
to37
-
am_bsp_pins.c
setsg_AM_BSP_GPIO_LED_BLUE.uFuncSel
toAM_HAL_PIN_37_GPIO
Looking at the Nano schematics we see pad 19 maps to GPIO 19 which is assigned to LED and printed next to the LED. This makes me think 37 is incorrect the above values should be 19
and AM_HAL_PIN_19_GPIO
respectively but this does not work either.
It seems the Thing Plus is set up this way (assuming it can run blinky…). Looking its schematics we see pas 26 maps to GPIO 18 which is assigned to the LED and also printed on the PCB next to the LED. In its respective files it has AM_BSP_GPIO_LED_BLUE
set to 26 and g_AM_BSP_GPIO_LED_BLUE.uFuncSel
set to AM_HAL_PIN_26_GPIO
.
Nano Schematics: https://cdn.sparkfun.com/assets/5/5/1/6 … s-Nano.pdf
Thing Plus Schematics: https://cdn.sparkfun.com/assets/6/f/0/5 … ematic.pdf