Hi,
after having created and flashed an OS image ( based on the OMAPL137_AM17X_SAMPLE project ) to the EVM I’ve created a SDK and already installed it to be ready for developing native WinCE applications. ( like described in following e-book chapter 9 http://prabukumar.wordpress.com/2008/10/08/windows-embedded-ce-60-fundamentals-free-e-book-from-microsoft/
The EVM boots from SD card and after manual copying ( using ftp ) and launching ( using telnet ) of several files which are needed to serve as communication counterparts to the VS2005-Debugger I was able to attach via Ethernet to the target HW and run a ‘Hello World’ application previously created with the application wizard. ( You can find details about connecting to the EVM using Ethernet in chapter 9 of above ebook )
Current state: I want to write a simple native WinCE application which has one button and it's only purpose is that when it is pressed a LED on the board should toggle.
Sounds easy,
but I couldn’t accomplish because including the file 'bsp.h' or 'gpio.h' lead to fatal errors during compilation of the main file :
fatal error C1083: Cannot open include file: 'bsp.h'
could not be found by the compiler.
I've tried to include the bsp.h file using the full path
#include <C:\WINCE600\PLATFORM\OMAPL137_AM17X\SRC\INC\bsp.h>
but this does not work because bsp.h includes other files from other directories which are then not found.
I’ve thought that inside the installed SDK all informations of BSP specifics like header files or libraries should have been included, but as it turns out this isn’t true.
Do you have
any idea(s) what I need to do so that I can use all the functions provided from the BSP ( like GPIO, I2C, SPI ... ) ?
It may be that I'm on a wrong way and perhaps my approach is not correct, because I want to write an application which controls directy HW and therefore it has to be developed as a subproject of the OS image ? If yes, why is it then necessary to create a SDK and install it for developing ‘high level’ applications which do not touch the HW ?
Can you please advice what is the recommende way to go for me ?
Thanx in advance,
Franz