Tool/software:
The following code snippet...
unsigned loop_count = 0;
for (;;loop_count++)
{
static char scratch_buffer[40];
printf("Hello from printf() %u!\n", loop_count);
unsigned int length = sprintf(scratch_buffer, "Hello from sprintf() %u!\n", loop_count);
HAL_UART_TX(&keypad_uart, (uint8_t*) scratch_buffer, length, HAL_ms_to_timer_counter(10000));
stopwatch_delay(stopwatch_s_to_ticks(1));
}
...produces the following output:

I.e. the format specifier %u doesn't work with printf(), but it does work with sprintf().
A few points:
- Using CCS Version 20.2.0.12__1.8.0.
- Simple app. Pretty much just the above loop in main().
- fputc() has been replaced to output stdout to SCI.
- Stack size set to 0x400.
- Heap size set to 0x800.
Are there any suggestions on how to fix this?
Thanks!
Bruce