Hi
I am using SDK 5.0.3 and new to using the Keil UVison 5 environment.
I am trying to build a driver for an SPI RTC using the format of driver file spi_flash I have a folder "C:\DA1458x_SDK\5.0.3\sdk\platform\driver\spi_rtc" and there I have two files "spi_rtc.c" and "spi_rtc.h". I have the following include line in my spi_rtc.h :
# include“spi.h”
I get an error (red X) on that line saying that "fatal error: 'spi.h' file not found"
I tried "clean up" and rebuild all target files but it does not resolve the reference. It only adds dependency reference to stdint.h.
Requesting your prompt help..
Thanking you...
Silas Valera
Device:
Hi SilasValera,
I am not sure how much i can help you with this, the only thing i can do is give you some points to check.
Check if the if the spi.h is in your Include paths, or perhaps the folder has a special permission and keil cant see the spi.h file.
Also you can try to test if the spi.h file is visible on another project or by another driver the spi_flash for example.
Thanks MT_dialog
Hi MT_dialog
Thanks for your comments, I could get it to work by updating the folder properties.
Silas Valera