mplab

How can I make MPLAB import a HEX file with comments or import a HEX file specified on a commandline?

I'm working with the CCS c compiler which produces its object files in the Intel 32 bit HEX format, aka INHX32. This compiler has a directive which causes it to put comments in these files. The comment lines are at the beginning of the file, and begin with a semicolon, like so: ; This is a comment :020000040000FA :1000000007EF33F0000C...

GCC error: array type has incomplete element type

I'm trying to build a module table for my application. /*** MODULE TABLE DEFINTION ***/ struct ModuleInfo { char use_module; // 0 = don't use, 1 = use, -1 for end of list char module_name[64]; // english name of module int(*module_init)(void); // module initialization callback void(*module_tick)(void); // module tick cal...

Is it possible to "embed" a structure of variable type into another structure? (GCC)

Is it possible to embed a structure of varying type inside another structure in C? Basically I want to do something like this. struct A { int n; void *config; } struct AConfig { int a; char *b; } struct BConfig { int a; float b; } const struct A table[] = { { 103, (void*)(struct AConfig){ 1932, "hello" } }, { 438, (void*)(str...

How to use my MPLAB C32 compiler in Eclipse IDE

Hi Geeks, Can anybody let me know the procedures to configure the build settings in Eclipse(Helios) IDE for MPLAB C32 Compiler from Microchip? ...