2023-09-27 08:27 AM
HI
I've basically just got a really simple question. I've tired using visual studio as a code editor and it's been working just fine. But now suddenly i need to include "stdint.h" in some of my files, because the indexer does not find int types such as uint8_t and uint32_t etc anymore.. So i figured this might be caused by the fact that the CubeIDE is not fond of external editor editing the files?
Anyone got any experience/knowledge with this? Do i need to close Cube every time i want to edit?
2023-09-27 09:13 AM
CubeIDE doesn't care if you have files open elsewhere.
uint8_t is not a basic type. You need to include stdint.h in order to define it. However, this file is included in the CMSIS header file, so VS should be able to find it, provided you include that file before using the uint8_t type.