Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


You are viewing a reply to Retargeting getchar() function  

Retargeting getchar() function

To answer (or more precisely, not answer) your first question, I’ve never tried redirecting specific stdio library functions, I’ve always used some variant of the code I posted above to redirect everything, so I’m afraid I can’t answer that question for you.

I don’t normally use the ST HAL code, so I’m not familiar with the calling convention for the HAL_UART_Transmit() function, but I’ll make a general point here (forgive me if I’m stating the obvious): Make sure that the transmit function you call is done in such a way that it will “block” until the transmission is completed; that is, it does not return until it has completed transmitting the data you provide, or it will block if called again and the UART is still busy transmitting the last character or string passed to it.

As for how to get the gray box code highlight, you use this syntax:

{CODE(wrap=>1)}

your code here...

Note: Still chokes when the less-than or greater-than symbols are encountered.
e.g.
#include [stdio.h]  // replace '[' and ']' with less/greater than symbols

{CODE}


It took me a while to figure out how to get help on wiki syntax here. Start by selecting the small blue “?” symbol in the upper right hand corner of the edit window.
Then click on the “Wiki Syntax” link (near top of pop up dialog).
Then select the “Wiki Syntax Help” link on the page that comes up.

One could wish that the CODE segments were rendered using a monospaced font. This is normally the case for most forums, but not this one.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs