Skip to content

Is there a way to get the occupied buffer size in case we want to block, if the uart is to slow? #430

Closed Answered by rokath
initdb asked this question in Q&A
Discussion options

You must be logged in to vote
  • You have to enable diagnostics #define TRICE_DIAGNOSTICS 1 inside your triceConfig.h file.
  • Inside triceCheck.c you can find the function void TriceLogDiagnosticValues( void ). Copy it into your project and rename/adapt it to your needs.
  • You can reduce the data amount:
    • Use timestamps only when really needed: Take trice instead of TRice.
    • Use trice8 or trice16 instead of trice (defaults to trice32) to save parameter space. Anyway the default TCOBS compression reduces the data also.
    • You can add #define TRICE_TRANSFER_MODE TRICE_PACK_MULTI_MODE to your triceConfig.h file when using #define TRICE_BUFFER TRICE_DOUBLE_BUFFER. This packs several trice messages together for TCOBS before adding th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@initdb
Comment options

@rokath
Comment options

Answer selected by rokath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants