trice icon indicating copy to clipboard operation
trice copied to clipboard

check internally for `-IDmin` and `-IDmax`

Open rokath opened this issue 2 years ago • 3 comments

rokath avatar Feb 20 '23 07:02 rokath

ID space for TREX encoding is 14 bit

rokath avatar Feb 20 '23 07:02 rokath

Is documented: https://github.com/rokath/trice/blob/master/docs/TriceV1.0Specification.md#252-package-format

rokath avatar Feb 20 '23 07:02 rokath

If the user writes manually a big or negative ID, there is currently no protection.

rokath avatar Jul 24 '23 20:07 rokath

A runtime 14-bit ID mask is possible but adds no value.

rokath avatar Aug 10 '24 19:08 rokath

The Trice tool checks for correct IDMin and IDMax now. A runtime check or mask blows up the code amount and slows down the Trice execution. Because ID insertion normally is done automatically by the Trice tool we add no runtime ID evaluation. If the user inserts IDs manually, it is expected she knows about the impact.

rokath avatar Aug 13 '24 14:08 rokath