I then cleaned and then built the project and I get these messages when it tries to linkĪrm-linux-gnueabihf-g++ -o "SecondPE". I added "Generated_Code" and "Sources" to the include paths. Under "Build Options" in the PEx projects, "Generate linker file" is already set to "yes" Is this what you mean by using the "PEx generated linker file"? For "Current builder", I selected "Processor Expert Configuration Debug Builder". In the Tool Chain Editor, for "Current toolchain", I selected "DS-5 GCC". When it created the project, I looked at the properties for the PEx project. I created an entirely new PEx project in DS-5 this time, called 'SecondPE' to make sure I didn't mess something up: New -> Project -> Processor Expert Project -> (Processor MVF61NN151MK50) -> Use current perspective, Initialize all peripherals -> GNU C Compiler. I assume there is some name-mangling going on by something. I figured that the prefix of the double underscore "_" is supposed to be generated by something in IAR C (the original target compiler). I noticed that there is an array "vector_table" in Vectors.c, line 73 and was wondering if this was what it was referring to. When I try to build it I get this error twice : "Generated_Code/Cpu.c:93: undefined reference to '_vector_table' Properties -> C/C++ Build -> Settings -> Tool Settings -> GCC C Compiler -> Includes: Added three include dirs Properties -> C/C++ Build -> Settings -> Tool Settings -> GCC C Compiler -> Miscellaneous: Added "-std=gnu99" Properties -> C/C++ Build -> Tool Chain Editor: Changed to "DS-5 GCC Compiler" and "CDT Internal builder" Then I changed these properties of the I2C_Accelerometer PEx example project:
#Svat vojtch code#
I was able to Generate Processor Expert Code with no apparent problems. I changed the Build Options to generate code for the "GNU C Compiler" instead. Its original target compiler is the IAR C compiler. I copied the I2C_Accelerometer PEx example project to my workspace. I split this into another discussion, but didn't expect the other two replies to come along for the ride.