Had problems compiling/making the Realtime Code Generator (RCG) example application in the document T080135-00-C.
Got Dmass onto the case and we tried the following things:
1. Renamed the file AFB.mdl so that it was lowercase: afb.mdl - result: 'make' still failed
2. Replaced the mux/demux elements in the ETMX subsystem with standard 8x8 matrices - called 'Matrix' and 'Matrix1' - result: 'make' still failed
3. Renamed the output elements in the ETMX subsystem so that there were no lowercase names: ULOut -> UL_OUT, UROut -> UR_OUT, etc. Result: 'make' still failed
4. I compared the 'make' output of making oms.mdl, which is a working version of the same example application, with the 'make' output of making afb.mdl. Initially the making of afb.mdl differed because it couldn't find the elements ETMX_Matrix and ETMX_Matrix1. I renamed these matrices in afb.mdl with all uppercase names (IN_MTRX and OUT_MTRX) and the make of afb.mdl progressed further before encountering an error and failing again.
At this point it gave the following complaints:
../AFB/AFB.c: In function `feCode':
../AFB/AFB.c:88: error: structure has no member named `AFB'
To be honest, I suspected that there was some residual junk code somewhere from all the previous failed compliations and the renaming of the filename from uppercase to lowercase
I copied the simuLink model afb.mdl to afc.mdl, a completely clean and shiny new name, and tried making afc.mdl instead. And it worked fine.
So the good news is that the simLink example I created makes and that 'make' itself is working fine.
The bad news is that some combination of the above actions has, presumably, left some junk files somewhere that are screwing up the making of afb.mdl. So ... how do i completely clean up an old and failed make?
|