You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
Please provide some way to retarget printf to the uart output, this is necessary with STM8 because the stdperipheral library, of which most function are not implemented in the core, is C and we have to use many of these functions, besides, due to linking issue we have to wrap these STDperipheal library function in separate C files, and obviously we cannot use Serial from C context. The only way is to declare an external C wrapper in the ino (considered as cpp by compiler) an declare external in the C files, but that cause problem of backward declaration and it is messy and dirty anyway.
Providing a proper retargetting of printf would at least solve this problem.
This discussion was converted from issue #35 on November 21, 2022 09:48.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Please provide some way to retarget printf to the uart output, this is necessary with STM8 because the stdperipheral library, of which most function are not implemented in the core, is C and we have to use many of these functions, besides, due to linking issue we have to wrap these STDperipheal library function in separate C files, and obviously we cannot use Serial from C context. The only way is to declare an external C wrapper in the ino (considered as cpp by compiler) an declare external in the C files, but that cause problem of backward declaration and it is messy and dirty anyway.
Providing a proper retargetting of printf would at least solve this problem.
Beta Was this translation helpful? Give feedback.
All reactions