stm32-it-sdk icon indicating copy to clipboard operation
stm32-it-sdk copied to clipboard

Running on Keil uVision 5

Open jaimelaborda opened this issue 5 years ago • 1 comments

Hi Paul,

I hope you are healthy and safe. I'm trying to have the Itsdk working with Keil uVision 5 and I having some problems. Have you been able to test in Keil? I have set up the project using CubeMX generating the code for MDK instead of Eclipse.

I have included the SDK on the project but when I trying to compile it seems that some dependency from the system is missing. Particularly the error is: ..\stm32-it-sdk\Src\it_sdk\logger\error.c(33): error: #5: cannot open source input file "sys/types.h": No such file or directory

It cannot found types.h from system library. Have you had to include some directives on the compiler in order to "get" these system libraries? It is strange as stdio.h has been caught without errors.

Thank you very much in advance and thank you very much for your wonderful work. The SDK is awesome!

Best regards, Jaime.

jaimelaborda avatar Apr 23 '20 21:04 jaimelaborda

Hi jaime,

Nice to hear you give a try on the SDK with keil. I did not try but basically I saw no big issue running it on any environment with some little changes. Sys/types is a system library part of the lib C but it seems that Keil does not implement them according to google search. That’s a shame as this include is used for defining uint8/16/32_t ... basic mandatory types when you do MCU portable programming. So you can create a header file in a sys directory names types.h where you can define the different standard types used in the sdk. typedef unsigned char uint8_t; typedef char uint8_t; .... If you make that file,i’ll be happy to include it Is in my backlog Paul


Paul Pinault http://www.disk91.com http://www.twitter.com/disk_91

Le 23 avr. 2020 à 23:58, Jaime Laborda [email protected] a écrit :

 Hi Paul,

I hope you are healthy and safe. I'm trying to have the Itsdk working with Keil uVision 5 and I having some problems. Have you been able to test in Keil? I have set up the project using CubeMX generating the code for MDK instead of Eclipse.

I have included the SDK on the project but when I trying to compile it seems that some dependency from the system is missing. Particularly the error is: ..\stm32-it-sdk\Src\it_sdk\logger\error.c(33): error: #5: cannot open source input file "sys/types.h": No such file or directory

It cannot found types.h from system library. Have you had to include some directives on the compiler in order to "get" these system libraries? It is strange as stdio.h has been caught without errors.

Thank you very much in advance and thank you very much for your wonderful work. The SDK is awesome!

Best regards, Jaime.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

disk91 avatar Apr 24 '20 07:04 disk91