Other Parts Discussed in Thread: LM3S8962
Hi,
I am currently working with LM3S8962 evaluation kit. While working on the CAN simple_tx.c (StellarisWare\examples\peripherals\can) example given in the stellarisware software I encountered the following errors.
(Since there were 16 errors I have included them as screen shot)
I initially imported the “StellarisWare/driverlib” file before opening a new proj.
Then I created a new proj named “cc” and added the driverlib folder to it.
I created a file source file named main.c in the new proj and copied-paste the simple_tx.c content into it.
I clearly defined the location of each and every header file in the main prog, but still I got the above mentioned errors.
This sort of error shows up for almost all example prog given in StellarisWare. But a handful of programs like Uart_polled.c and rom_direct.c are getting executed without any errors. I followed the same set of steps for the above mentioned prog too.
Is there any error in my way of doing things because there cannot be mistakes in the example program?
This is how I defined the location of headers in the main prog.
#include "C:/StellarisWare/inc/hw_memmap.h"
#include "C:/StellarisWare/inc/hw_types.h"
#include "C:/StellarisWare/inc/hw_can.h"
#include "C:/StellarisWare/inc/hw_ints.h"
#include "C:/StellarisWare/driverlib/can.h"
#include "C:/StellarisWare/driverlib/interrupt.h"
#include "C:/StellarisWare/driverlib/sysctl.h"
#include "C:/StellarisWare/driverlib/gpio.h"
#include "C:/StellarisWare/utils/uartstdio.h"
In addition to it as I have mentioned earlier I also added the drivelib files to my main prog.
Note: I compiled this prog using CCS v4.