Jump to content
saintshark

SPI other than the default one doesn't work on MSP430FR2433 launchpad

Recommended Posts

I'm trying to use the UCA0 for SPI on MSP430FR2433 by using the SPI.setmodule(10); before SPI.begin(), but I'm not getting any data on the SPI lines. The default SPI on this launchpad is UCA1 and it works.

After the above thing didn't work, I tried changing the core files: /home/username/.energia15/packages/energia/hardware/msp430/1.0.5/variants/MSP-EXP430FR2433LP/pins_energia.h

In this file I changed: (from line 47 to 50)
 

static const uint8_t SS11 = 8; /* P2.1 */ 
static const uint8_t SCK11 = 7; /* P2.3 */ 
static const uint8_t MOSI11 = 15; /* P2.4 aka SIMO */ 
static const uint8_t MISO11 = 14; /* P2.5 aka SOMI */

to:
 

static const uint8_t SS11 = 8; /* P2.1 */ 
static const uint8_t SCK11 = 5; //P1_6 
static const uint8_t MOSI11 = 4; //P1_4 aka SIMO 
static const uint8_t MISO11 = 3; //P1_5 aka SOMI

And changed:
 

#define DEFAULT_SPI 11

to:
 

#define DEFAULT_SPI 10

But this also didn't work.pins_energia.h

 

I have attached the changed file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×