Hello,
I use the TMS430C5535 and ccs v4. To send data over the uart, I include a existing class-file to generate the data string.
In this file the increment-command is used on a pointer of char-type. In this case the pointer jump 16 bit instead of expected 8 bit, because a byte is defined at the size of 16 bit. In the "stdint.h"-file i have found this information:
#if defined(__MSP430__) || defined(__TMS320C55X_PLUS_BYTE__)
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef int int16_t;
typedef unsigned int uint16_t;
typedef long int32_t;
typedef unsigned long uint32_t;
#else
typedef int int16_t;
typedef unsigned int uint16_t;
typedef long int32_t;
typedef unsigned long uint32_t;
#endif
typedef long long int40_t;
typedef unsigned long long uint40_t;
In ccs under "Tool Settings" / "Runtime Model Option" I can select "Activate Byte Mode", but there is a compiler error: "option --byte_mode conflicts with previous option --silicon_c55x".
How can I set the size of datatype char to 8 bit ?
Thank you
Joachim