disk91 / stm32-it-sdk

Disk91 STM32 IoT SDK
https://www.disk91.com
GNU General Public License v3.0
45 stars 19 forks source link

Running on Keil uVision 5 #28

Open jaimelaborda opened 4 years ago

jaimelaborda commented 4 years ago

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.

disk91 commented 4 years ago

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 notifications@github.com 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.