Why do I still get an error message that uint8_t is undefined even after I have included stdint.h?
#include "stdint.h"
uint8_t data = 0;
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Why do I still get an error message that uint8_t is undefined even after I have included stdint.h?
#include "stdint.h"
uint8_t data = 0;
Hi Kevin,
If you open stdint.h file, you'll understand that uint8_t is not a supported type. The reason being that in C2000 MCUs, 16 bit is the minimum word length. So even if you include stdint.h, you won't find the definition of uint8_t. You can use uint16_t instead of uint8_t.
Hope this helps
Ritvik