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

nrf 52832 with freertos ,using SDK15.0 ,and set P0.00(XL1),P0.01(XL2) as gpio to drive 2 LEDs,P0.01 works well ,P0.00 not.

LFCLF config:
#define NRFX_CLOCK_CONFIG_LF_SRC 0
#define CLOCK_CONFIG_LF_SRC 0
#define NRF_SDH_CLOCK_LF_SRC 0
LED IO config:
#define LED_GREEN 0
#define LED_RED 1
#define LEDS_NUMBER 2
#define LEDS_LIST { LED_RED , LED_GREEN }
#define BSP_LED_0 LED_GREEN
#define BSP_LED_1 LED_RED
SPI  IO config:
#define SPI1_SCLK_PIN 29 //SPI CSCLK
#define SPI1_MOSI_PIN 30 //SPI MOSI
#define SPI1_MISO_PIN 31 //SPI_MISO
#define SPI1_CS_PIN 24 //SPI_CS

#define SPI0_MISO_PIN 16 // SPI MISO signal.
#define SPI0_CS_PIN 18 // SPI CSN signal.
#define SPI0_MOSI_PIN 15 // SPI MOSI signal.
#define SPI0_SCK_PIN 17 // SPI SCK signal.
#define RESET_PIN 20 //CHIP reset signal.RESET

my app has 4 tasks:

task 1:watch dog and feed dog,

task 2:ble communication,

task 3:spi0 read sensor`s data, Get_BIA_Data(&gSysBreathValues);

task 4:spi1 read sensor`s data. Read_ACC_Value(&gSysACCValues);

the OS and sensors  work well, if I comment Get_BIA_Data(&gSysBreathValues) and  Read_ACC_Value(&gSysACCValues),P0.00 drive LED well,if I uncomment these 2 sections, the P0.00 is out of contrland blinks tightly and weakly,I am sure that two spi`s driver don`t drive the IO P0.00.

what shoule I do to make it right?

Parents
  • Hi

    Have you defined the NFC pins as GPIOs in your project? If you're using P0.09 and/or P0.10 as regular GPIOs this has to be done to ensure normal operations. You can do this by setting this define in the preprocessor definitions as shown below if you're using SEGGER Embedded Studios.

    Is it possible for you to test this using P0.10 asthe LED or is this not possible on your device?

    Best regards,

    Simon

Reply
  • Hi

    Have you defined the NFC pins as GPIOs in your project? If you're using P0.09 and/or P0.10 as regular GPIOs this has to be done to ensure normal operations. You can do this by setting this define in the preprocessor definitions as shown below if you're using SEGGER Embedded Studios.

    Is it possible for you to test this using P0.10 asthe LED or is this not possible on your device?

    Best regards,

    Simon

Children
Related