Hello,
Thank you for your reply,
the piece of code does not seem to compile..
Using the code below to toggle multiple pins for testing.
Pins: p1,28 p1,29 p1,25 p0,4 all seem to function as a GPIO output.
p1,3 still does not (still high) even while configuring and measuring as described in your post.
kind regards,
/*
* Copyright 2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "pin_mux.h"
#include "board.h"
/*******************************************************************************
* Definitions
******************************************************************************/
#define BOARD_LED_PORT BOARD_LED_RED_GPIO_PORT
#define BOARD_LED_PIN BOARD_LED_RED_GPIO_PIN
/*******************************************************************************
* Prototypes
******************************************************************************/
/*******************************************************************************
* Variables
******************************************************************************/
volatile uint32_t g_systickCounter;
/*******************************************************************************
* Code
******************************************************************************/
void SysTick_Handler(void)
{
if (g_systickCounter != 0U)
{
g_systickCounter--;
}
}
void SysTick_DelayTicks(uint32_t n)
{
g_systickCounter = n;
while (g_systickCounter != 0U)
{
}
}
/*!
* @brief Main function
*/
int main(void)
{
/* Init output LED GPIO. */
GPIO_PortInit(GPIO, BOARD_LED_PORT);
// GPIO_PortInit(GPIO, 1u); // io
GPIO_PortInit(GPIO, 0u); // io
/* Board pin init */
BOARD_InitPins();
BOARD_BootClockPLL150M();
/* Set systick reload value to generate 1ms interrupt */
if (SysTick_Config(SystemCoreClock / 1000U))
{
while (1)
{
}
}
while (1)
{
/* Delay 1000 ms */
SysTick_DelayTicks(500U);
GPIO_PortToggle(GPIO, BOARD_LED_PORT, 1u << BOARD_LED_PIN);
GPIO_PortToggle(GPIO, BOARD_LED_PORT, 1u << 3);
GPIO_PortToggle(GPIO, BOARD_LED_PORT, 1u << 29);
GPIO_PortToggle(GPIO, BOARD_LED_PORT, 1u << 25);
GPIO_PortToggle(GPIO, 0, 1u << 4);
}
}