Skip to content

about trice generate -tilH --tilC #553

@olieeeche

Description

@olieeeche

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:

  1. 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 );

  2. run instruction

    trice i
    trice generate -tilH --tilC
  3. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions