I have MQX 4.0.2 and noticed two GPIO to 'PTx' mis-configurations. In lwgpio_vgpio.h we have,
#define LWGPIO_PIN_PTB26 (LWGPIO_PORT3 | LWGPIO_PIN0) /* Was LWGPIO_PORT2 | LWGPIO_PIN0 */ #define LWGPIO_PIN_PTC26 (LWGPIO_PORT3 | LWGPIO_PIN3) #define LWGPIO_PIN_PTC27 (LWGPIO_PORT3 | LWGPIO_PIN4) #define LWGPIO_PIN_PTC28 (LWGPIO_PORT3 | LWGPIO_PIN4) /* Should be PIN5? */ #define LWGPIO_PIN_PTC29 (LWGPIO_PORT3 | LWGPIO_PIN6)
The PTB26 has been fixed in MQX 4.1, but the PTC28 issues still seems to remain? Thanks for fixing the PTB26 so that NAND flash may function. Someone has confused many software developers with these 'PTx' numbering. These defines are helpful in avoiding that confusion.