Hello,
I apologize in advance, as I am not the most Linux-savy person. This is my first big project using Ubuntu and only my second using Linux.
I am in the process of adapting some code that hasn't been touched in 5 years that originally ran on an Advantech mini PC (using a custom, modified version of Ubuntu) but now needs to run on an Intel Nuc running Ubuntu (ver 20.04 currently). This code is in generic C. I decided to use CCS for the debugging tools to run and understand it cause I am very familiar with the IDE on Windows.
I began by creating a new C project (not CCS project) in CCS and copying the contents of this code into the project. I was able to get the program to build but noticed that an error relating to linux/firmware.h in the TI USB Driver 3410 file was popping up. I got around this by going into the project directory and creating a symbolic link to the headers in the kernel folder. This was originally with kernel 4.13, and I was getting an error relating to classmap.h not being found. I then tried this with kernel 4.15 and 5.4.0-86-generic, and am now receiving the error below...
1108 | [0x3b] = INAT_MAKE_IMM(INAT_IMM_BYTE) | INAT_MODRM | INAT_VEXOK | INAT_EVEXONLY,
| ^~~~
../ClusterheadTest/Driver/linux/tools/objtool/arch/x86/lib/inat-tables.c:1108:3: note: (near initialization for ‘inat_escape_table_3_1’)
../ClusterheadTest/Driver/linux/tools/objtool/arch/x86/lib/inat-tables.c:1109:3: error: array index in non-array initializer
CCS doesn't like the way that inat-tables.c defines the map arrays.
I can't tell if this is an error in how my CCS environment is set up or a genuine issue with the Linux kernel version 5.4.0-86-generic that I am using. My goal is just to get the project to build for now, so I can then adapt the code for the MSP432 instead of the previously used MSP430.
I can share the project if needed for debugging.
Thanks in advance for any help,
Greg