|
|
|
![]() :: Research Group Embedded Interaction :: Media Informatics :: Ludwig-Maximilians-University Munich CCS Compiler (CCSC)Please see also our other how-to pages:
CCS Compiler Setup Install CCS' C-Compiler by running setup.exe and update your compiler to the most recent version, at least to version 3.202 (needed for compiling the code for particles). If you intend to use MPLAB, make sure to run the MPLAB integration tool! CCS Compiler Errors Sometimes (or frequently) when you create large projects with lots of included files and headers, the CCSC Compiler escapes with the following (or a similar) error message: Executing: "C:\Program files\PICC\CCSC.exe" "template.c" +FH +LN
+T -A +M +Z +Y=9 +EA I="C:\PROGRAM FILES\PICC\devices;C:\PROGRAM FILES\PICC\drivers;C:\svn\Particles" Despite of the compiler error message, the .HEX File is generated. When you experience this failure message, you can try to move some source code around. Sometimes adding a useless line of code or a variable helps. A more convenient solution may be removing the '+DF' from the command line (or the build options in MPLAB, see our MPLAB How-To on how to enter build options). The '+DF' turns on the generation of a COFF Debug file. It seems to us that during this generation the compiler somewhere makes mistakes. You can read more on the compiler option in the CCSC help file in the topic 'Invoking the Command Line Compiler'.
Arrays as parameters can only be of type int If you have an array of some type other than int (e.g. unsigned long) and what to pass a pointer to this array to a function, the compiler will not give any error messages or warnings but the program will not work. Only pointers to int arrays can be passed to a method.
Particle stops after some time If you have transferred a program on a particle and after some (short) time the program stops and the particle's red LED stops flashing, something has probably gone wrong with accessing some parts of memory. You cannot use OTAP (Over The Air Programming) any more and need to use a hardware programmer. Ensure that you have buld erase switched on so that the old program is completely erased. Check whether a call to malloc produces this behavior.
Exception EInOutError in module PCH.DLL If you enter an invalid file name as last argument to the compiler command, you may get the following error message: "Exception EInOutError in module PCH.DLL". Make sure that the name of the file you want to compile is correct. If the file name contains spaces, make sure it is in '"' (double quotes).
Links |