Hello, I am a student first time using the FRDM-MCXN947 board with MCUXpresso IDE. During our practical lab session we tried to implement the basic external LED blinking , but we encountered some strange behavior.
We configured the pin using the Pins Tool in MCUXpresso.
We used the port and pin mapping provided by our teacher and verified it with the official documentation.
The code compiled and flashed correctly.
However, the LED did not blink on the expected GPIO pin. After testing different connections, the LED only worked when we connected it to a nearby pin rather than the one defined in the code. We confirmed this by modifying the delay in the code, and the blinking speed changed accordingly, so the program was definitely running.
Another unusual observation is that the LED only worked when the polarity was reversed (LED positive connected to GND and negative connected to the GPIO pin).
Most student groups in our class had similar problems, and we are not sure whether the issue is related to:
incorrect pin mapping between the MCU and the board headers
internal pull-ups or active-low configurations
or a hardware wiring misunderstanding
Could someone clarify the correct way to wire an external LED and push button on the FRDM-MCXN947 board and confirm the correct pin mapping for simple GPIO examples?
Thank you.