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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...