This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: N/A

Other Parts Discussed in Thread: OPT3101

Tool/software: Code Composer Studio

There are several issues with Code Composer Studio that I'm having difficulty dealing with. Part of it is setup. Part of it is an inconsistency to follow paths to known folders and files.

I have the MSP432P401R Launchpad and the TI-RSLK MAX. I've downloaded and installed several projects as well as the starter examples from the SDK through the Resource Explorer, MAX projects, and programs from GitHub.

There appears to be no consistency. 

Example:

The SSD1306/ST7735/UART/Nokia5110....nothing works. I make sure everything is setup correctly in the paths/include....that the files are completed (as many are setup for students to complete)...and I get nothing. I cannot get any of the different types of displays to work or the display examples. 

Suddenly, I run the "Competition" CCS Project and my Nokia5110 works. It is the same for the "UART" CCS Project. NONE of my UART will work...but this one will despite not having a UART.h in it. If I try to use the UART in another project, it doesn't work. I can't get printf to work to my machine or a display.

It appears these come with the object files included and that without those, things don't work.

These MAX examples, their include paths go to

ti/ccs1011/ccs/ccs_base/arm/include

ti/ccs1011/ccs/ccs_base/arm/include/CMSIS

and if I try to use anything from the SDK to start

ti/simplelink_msp432p4_sdk_3_40_01_02/source

ti/simplelink_msp432p4_sdk_3_40_01_02/source/CMSIS/include

I've multiple Launchpads and can get the I2C demos from the SDK going without issue. BUT when I  try of a change to them.....as in when I try to get them working with an external sensor/display, they stop.

I've been going at this now for 6 months. AND the conclusion is.....there is a massive setup issue that I've missed (and that some of the examples have snuck in their *.obj files with secret working headers).

WHEN DO I USE which/any of the following:

#include "msp.h"

#include <ti/devices/msp432p4xx/driverlib/driverlib.h>

#include "../inc/UART0.h"

#include <ti/drivers/I2C.h>
#include <ti/drivers/UART.h>

I think there is an #include "something/msp432r4xx.h"

Which board references?

Which driver references?

WHAT CMSIS SHOULD BE USED: ccs_base vs SDK?

What drivers from where? 

If I find an example that works....like the UART....and I try to merge it with another example...like Nokia5110....suddenly neither work. 

The end goal in ALL of this is to get some VL53L0X (or 1X, 3CX, or BME280/BMP388, or BMX160, or OPT3101) working on the MAX Robot. Right now.....I can't get the most basic things to function consistently: UART and I2C.