Good Afternoon,
I have a project to undertake that involves porting a c-code based library from the MSP430 series to the CC13xx series of devices. I am just starting so this will probably be the first entry of many to the forum regarding this.
So far I have compiled the empty_LP_CC1352P7_1_tirtos7_gcc project. I am looking for suggestions as well as I talk about these things, because at this point I already start to wonder if I am going in the right direction. I noticed in several discussions and from reading manuals that it is suggested to start from an existing project because of the complexity of this device. I was experimenting with simple changes such as switching the compilers but would run into issues. Starting to use the TI System Configuration tool but needing more practice to use it effectively.
To start, the original library is a bare metal, single threaded application. It is mostly driven with the #include MSP430.h to interface with the underlying registers. The TIRTOS7 projects seem to use driverlib, driver configurations, pthread.h clib stuff, RTOS header files, etc... Is there a way to program very low level interfaces to the registers by hand without all of these things with something similar to the MSP430.h definitions??
Moving forward with another question regarding compilers. I have been compiling with TI v20.2.5.LTS for the MSP430 code but for this project I have opted to GNU v9.2.1 (Linaro). Now I run into issues with several intrinsics, and possibly some #pragma code. Is this the best path with the GNU or should I try finding a better starting point with a TI compiler. I like using pthread, and can start with a single thread created running my single thread c-coded library. I would like to go with C++ to introduce true object orientation but also ran into issues with the pragma and stuff even doing this just on the MSP430.
Anyways, the intrinsics issues and switching from MSP430.h type programming with registers defined are where I am starting to run into my first obstacles. Soon I will be looking at the clocks, timers, and USCI I2C communication. I appreciate your time and help and look forward to progressing to make very portable code. It would be really nice to be able to use the same library for MSP430 and CC13xx devices that I might change a variable or 2 to make for easy porting between these 2 processors. As I progress it will probably take priority to utilize the built in RF communications (like bluetooth & sub-1 GHz) along with low-power peripherals (such as peripherals configured with Sensor Controller Studio).
Best Regards,
Michael