cancel
Showing results for 
Search instead for 
Did you mean: 

Retarget printf on STM32G070RBxx Cortex M0+

AVerm.4
Associate III

Hi,

I'm trying retarget printf. My uart_write function is working correctly and i'm able to see character on Teraterm.

But when i try to use printf it is not working. i even tried semihosting to execute printf but it fails. i'm attaching the screenshots -

uart_code.jpg

Disassembly of the code stucks at "bkpt 0x00ab" -disassembly_debug.jpg

any solution for this problem? 

22 REPLIES 22
Andrew Neil
Evangelist III

Hello,

Of course, the article can be updated.

What updates are needed?

What should be added?

BR

Nico.


@ST AME Support NF wrote:

What should be added?


  1. How to do it in C++
  2. Notes on the line buffering

 

Addendum:

Maybe also some details on the input side of this - maybe as a separate article?

See: https://community.st.com/t5/stm32cubeide-mcus/retarget-scanf-on-stm32g070rbxx-cortex-m0/td-p/721532