i am using stellaris lm3s9d96,and ccs v4.i have written a code for diplaying a menu of two buttons first..which on being clicked,goes to another page.
the code is working fine .because i have put it in the hello_widget.c file and its working.the problem started when i tried to create a new project .i have included the startup_ccs,c file as is in the hello_widget. project.i have included "C:\StellarisWare","C:\Program Files(x86)\Texas Instruments\ccs\tools\compiler\tms470\include", and "C:\StellarisWare\boards\dk-lm3s9d96" under include options.
under file search path i have included "${SW_ROOT}//ccs/Debug/driverlib.lib","{SW_ROOT}//ccs/Debug/grlib.lib" and "libc.a"
under predefined symbols i have mentioned, TARGET_IS_FIRESTORM_RA2+.
i have mentioned dependency of the project on grlib and driverlib projects.
the code is compiling fine.it is showing no errors.but i am not getting the output.it is showing a blank black screen.
but please note the same code is working fine when i put it in the hello_widget predefined project.
am i missing out something??why isnt the lcd displaying?
i have added the files interrupt.c,hw_types.c,sysctl.c,rom.h,grlib.c,widget.c,canvas.c,pushbutton.c,touch.c,set_pinout.c,and kitronix..c and the respective .h files in my project.
some one please reply..i have been stuck on this for quite a while now.
also when i tried to introduce the uart in this program,to take in some inputs from the user,i introduced the header files,sysctl.h,uart.hand memmap.h,..now i started getting an error sayin..the identifier"tBoolean"is undefined in sysctl.h,and uart.h..etc...15 errors have popped up...what should i do??please reply .
You have a path problem. The simplest way to overcome it is to go to this location and download, read, follow the procedure indicated in the document "Stellaris New Project Guide.ppt" (you will find it easily):
http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/t/94574.aspx
well..i have got the solution of the first problem i posted..when the same program wasnt working on my project..all i needed to do was increase the stack size to 1024.i noticed this while going through th ebuild properties of some of the grlib related projects.but i will surely go through the presentation .but i still dont know wat caused the "tboolean "undefined errors.
$ grep -iR tboolean *inc/hw_types.h:typedef unsigned char tBoolean;
can you please elaborate??
and secondly what is this tBoolean variable??i know Boolean,what is tBoolean?
A tBoolean is an unsigned char. It is, semantically, the same as most other booleans. TRUE = !0, FALSE = 0.
You simply need to #include "inc/hw_types.h" prior to any references to it.