Describe the bug
When using trice generate -tilH --tilC to generate TRICE32_8 type source code, bit width err
TRICE32_8 (Id(1710), "tst:TRICE32_8 %d %d %d %d %d %d %d %d\n", -1, -2, -3, -4, -5, -6, -7, -8 );
To Reproduce
Steps to reproduce the behavior:
-
source code
TRICE32_8 (Id(1710), "tst:TRICE32_8 %d %d %d %d %d %d %d %d\n", -1, -2, -3, -4, -5, -6, -7, -8 );
-
run instruction
trice i
trice generate -tilH --tilC
-
see the til.c
const triceFormatStringList_t triceFormatStringList[] = {
/* Trice type ( extended ) */ // id, bitWidth, paramCount, format-string
/* TRICE32_8 ( TRICE32_8 ) */ { 1710, 8, 8, "tst:TRICE32_8 %d %d %d %d %d %d %d %d\n" },
};
Expected behavior
Actually, til.c should be
const triceFormatStringList_t triceFormatStringList[] = {
/* Trice type ( extended ) */ // id, bitWidth, paramCount, format-string
/* TRICE32_8 ( TRICE32_8 ) */ { 1710, 32, 8, "tst:TRICE32_8 %d %d %d %d %d %d %d %d\n" },
};
Desktop :
- OS: trice_windows_amd64.zip
- Version:v1.0.0
Describe the bug
When using
trice generate -tilH --tilCto generate TRICE32_8 type source code, bit width errTRICE32_8 (Id(1710), "tst:TRICE32_8 %d %d %d %d %d %d %d %d\n", -1, -2, -3, -4, -5, -6, -7, -8 );To Reproduce
Steps to reproduce the behavior:
source code
TRICE32_8 (Id(1710), "tst:TRICE32_8 %d %d %d %d %d %d %d %d\n", -1, -2, -3, -4, -5, -6, -7, -8 );run instruction
see the til.c
Expected behavior
Actually, til.c should be
Desktop :