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
After logging via stlink and on a target, I am trying to log over UART.
I am confused what to setup for that. Should I just provide the definition of inline functions : triceTxDataRegisterEmptyUartA, triceTransmitData8UartA, triceEnableTxEmptyInterruptUartA and triceDisableTxEmptyInterruptUartA + Call TriceTransfer periodically ?
I initialized the UART port.
I am using stm32u5 with AzureRTOS
this is my triceConfig.h :
\author Thomas.Hoehenleitner [at] seerose.net
*******************************************************************************/
#ifndef TRICE_CONFIG_H_
#define TRICE_CONFIG_H_
#ifdef __cplusplus
extern "C" {
#endif
//! TRICE_CLEAN, if found inside triceConfig.h, is modified by the Trice tool to silent editor warnings in the cleaned state.
//#define TRICE_CLEAN 1 // Do not define this at an other place! But you can delete this here.
#include "main.h"
#define TriceStamp16 TIM17->CNT // 0...999 us
//#define TriceStamp32 HAL_GetTick() // 0...2^32-1 ms (wraps after 49.7 days)
#define TriceStamp32 TimeIdn_GetEpochTrice() /* UNIX Epoch */
#define TRICE_BUFFER TRICE_DOUBLE_BUFFER
#define TRICE_DEFERRED_BUFFER_SIZE 2048
#define TRICE_DEFERRED_OUTPUT 1
#define TRICE_DEFERRED_UARTA 1
#define TRICE_UARTA USART1
#define TRICE_PROTECT 1
#define TRICE_DIAGNOSTICS 1
#define TRICE_CYCLE_COUNTER 0
#include "cmsis_gcc.h"
void TriceHeadLine(char const* name);
void LogTriceConfiguration(void);
void SomeExampleTrices(int burstCount);
#define TRICE_FULL_CHECK
#ifdef __cplusplus
}
#endif
#endif /* TRICE_CONFIG_H_ */
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
After logging via stlink and on a target, I am trying to log over UART.
I am confused what to setup for that. Should I just provide the definition of inline functions : triceTxDataRegisterEmptyUartA, triceTransmitData8UartA, triceEnableTxEmptyInterruptUartA and triceDisableTxEmptyInterruptUartA + Call TriceTransfer periodically ?
I initialized the UART port.
I am using stm32u5 with AzureRTOS
this is my triceConfig.h :
Beta Was this translation helpful? Give feedback.
All reactions