energia / msp432r-core

MSP432 EMT core for the production silicon (RED LaunchPad only)
2 stars 5 forks source link

SPI doesn't work as expected on MSP432 RED #9

Closed rei-vilo closed 6 years ago

rei-vilo commented 6 years ago

SPI doesn't work as expected on MSP432 RED.

SPI modes seem to be mixed on MSP432R in silicon.

For more information, please refer to MSP432P401R Device Erratasheet (Rev. O).

Different options:

capture 2018-05-05 a 10 53 41
    SPI.setDataMode(SPI_MODE0);

by

#if defined(ENERGIA_ARCH_MSP432R)
#warning Horrible patch for hardware bug
    SPI.setDataMode(SPI_MODE1);
#else
    SPI.setDataMode(SPI_MODE0);
#endif
capture 2018-05-05 a 10 55 56
gerz122 commented 6 years ago

I tried this and it worked for me.

I used the RED LaunchPad w/ MSP432 EMT (48 MHz) to build the project.

I found the Screen_HX8353E.cpp file in a temporary folder created by windows. When compiling the project, it is possible to see the symbols path. I found the file starting from this root path.

image

This works as a software fix that allows using the boosterpack mkII LCD screen HX8353E with the red launchpad msp432p401r.

rei-vilo commented 6 years ago

See https://forum.43oh.com/topic/13204-msp432p104r-inconsistencies-between-energia-ide-and-energia-project-under-ccs/?tab=comments#comment-81345

rei-vilo commented 6 years ago

MSP432 Red boards package 5.6.2 seems to solve this issue.

Tested with the Sharp LCD display and the CC3100 WiFi BoosterPacks.

However, see #12.