Raspberry pi communicating one-way with MSP430 over spi.
- MSP430 board
- MSP430 cross-compile
sudo apt-get install git-core gcc-4.4 texinfo patch libncurses5-dev zlibc zlib1g-dev libx11-dev libusb-dev libreadline6-dev binutils-msp430 gcc-msp430 gdb-msp430 msp430-libc msp430mcu mspdebug srecord libsrecord-dev libgmp-dev
- Raspbian running on a Raspberry Pi
modprobe spi_bcm2708 modprobe spidev
Cross-compile and install the msp430 code
msp430-gcc -Os -mmcu=msp430g2553 -o msp430_spi.elf msp430_spi.c sudo mspdebug rf2500 erase prog msp430_spi.elf run
On the Raspberry Pi
gcc spidev_test.c -o spidev_test
Run
sudo ./spidev_test -s 120000