error reading variable: Converting character sets: Invalid argument
Hi everyone,
I'm currently debugging UART communication (USART3) between an STM32G070CBTx and my PC using Hercules terminal (serial software). The setup seems to be working. I can see data being sent and received. I'm monitoring the TX_buffer and RX_buffer via Live Expressions in STM32CubeIDE.
The issue is that when I try to view the contents of these buffers as ASCII characters, the debugger shows this error:
72 '<error reading variable: Converting character sets: Invalid argument>'However, the buffer values are correctly shown as decimal ASCII values (e.g. 72 for 'H', 101 for 'e', etc.).
A photo of the Live Expression view showing the error
TX_BUFFER
RX_BUFFER
A screenshot of Hercules receiving the correct string

My question is:
Is there a way to fix or work around this character set conversion error in the Live Expression window?
Is it related to how the debugger is interpreting the memory or something I can configure in STM32CubeIDE?
Any insights or workarounds would be greatly appreciated!
Thanks in advance,
