I used the MCUXpresso config tool in a way that caused a build error that I could not restore. I intend to use the semihosting configuration for debugging. But while I was experimenting, I went to the Components tab of the Peripherals config tool and selected Utility, then double-clicked on ‘DebugConsole’ This produced a box labeled UART0 with a red X, along with a red colored DebugConsole under Utilities. Hovering on UART0 brings up the Error – Peripherals: "UART0 used in multiple instances."
Realizing that the duplication was undesirable, I deleted the UART0 peripheral. However, I proceeded to update the code without checking the diffs. The result of the code changes caused a build error that originated due to additions made to the file utilities\fsl_debug_console_conf.h related to a redefine of SDK_DEBUGCONSOLE. The error is defined in the code snippet:
#if ((defined(SDK_DEBUGCONSOLE) && (SDK_DEBUGCONSOLE != 1))) #error SDK_DEBUGCONSOLE has already been defined and the value is not 1 as value in the DebugConsole component instance setting. #endif
The only way I could resolve this issue was to implement my configuration a second time and make sure that I didn't initiate a UART0 peripheral. However, the real solution to this issue should be an NXP bug fix.
Jerry M