Hello,
I don’t know whether this is me doing something wrong (its 1st time Im trying to use some lib here…so far - with no success yet), or port of this lib is broken maybe… anyway I need advise.
Here is my result and environment:
PS C:\PlatformIO\msp430_kwiatek> pio run
[07/18/16 21:22:11] Processing LaunchPad_msp430g2553 (platform: timsp430, board_mcu: msp430g2553, board_f_cpu: 16000000L)
msp430-gcc -o .pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\pwrup-plus-prx.o -c -g -Os -ffunction-sections -fdata-sections -mmcu=msp430g2553 -DF_CPU=16000000L -DPLATFORMIO=021101 -I.pioenvs\LaunchPad_
msp430g2553\nRF24_ID40 .pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\pwrup-plus-prx.c
msp430-gcc -o .pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\test-basic-pwrup.o -c -g -Os -ffunction-sections -fdata-sections -mmcu=msp430g2553 -DF_CPU=16000000L -DPLATFORMIO=021101 -I.pioenvs\LaunchPa
d_msp430g2553\nRF24_ID40 .pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\test-basic-pwrup.c
.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\pwrup-plus-prx.c: In function ‘main’:
.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\pwrup-plus-prx.c:50:11: error: ‘data’ undeclared (first use in this function)
.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\pwrup-plus-prx.c:50:11: note: each undeclared identifier is reported only once for each function it appears in
.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\test-basic-pwrup.c: In function ‘test_msprf24_init’:
.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\test-basic-pwrup.c:68:2: error: ‘CSN_DIS’ undeclared (first use in this function)
.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\test-basic-pwrup.c:68:2: note: each undeclared identifier is reported only once for each function it appears in
.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\test-basic-pwrup.c:77:2: error: ‘CE_DIS’ undeclared (first use in this function)
scons: *** [.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\pwrup-plus-prx.o] Error 1
scons: *** [.pioenvs\LaunchPad_msp430g2553\nRF24_ID40\TESTPROGS\g2231\test-basic-pwrup.o] Error 1
=========================================================================================== [ ERROR ] Took 0.77 seconds ===========================================================================================
PS C:\PlatformIO\msp430_kwiatek> dir
Directory: C:\PlatformIO\msp430_kwiatek
Mode LastWriteTime Length Name
d---- 2016-07-18 21:22 .pioenvs
d---- 2016-07-05 00:45 lib
d---- 2016-07-18 21:10 src
-a— 2016-07-18 21:13 818 .clang_complete
-a— 2016-07-18 21:13 1196 .gcc-flags.json
-a— 2016-07-18 21:13 42 .gitignore
-a— 2016-07-04 17:59 1587 .travis.yml
-a— 2016-07-18 21:14 805 platformio.ini
PS C:\PlatformIO\msp430_kwiatek> dir src/
Directory: C:\PlatformIO\msp430_kwiatek\src
Mode LastWriteTime Length Name
-a— 2016-07-17 03:11 2649 main.cpp
-a— 2016-07-17 02:51 2542 nrf_userconfig.h
PS C:\PlatformIO\msp430_kwiatek> cat .\platformio.ini | grep ^[^#]
[env:LaunchPad_msp430g2553]
platform = timsp430
board_mcu = msp430g2553
board_f_cpu = 16000000L
PS C:\PlatformIO\msp430_kwiatek> cat .\src\main.cpp | grep include
#include <msp430.h>
#include <string.h>
#include “msprf24.h”
#include “nrf_userconfig.h”
PS C:\PlatformIO\msp430_kwiatek> pio lib list
[ ID ] Name Compatibility “Authors”: Description
[ 40 ] nRF24 timsp430 “Eric”: The nRF24L01 is a low-cost 2.4GHz ISM transceiver module. It supports a number of channel frequencies in the 2.4GHz band and a range of data rates
[ 124 ] RadioHead arduino, energia, atmelavr, atmelsam, timsp430, titiva, teensy, freescalekinetis, ststm32, nordicnrf51, nxplpc, espressif, siliconlabsefm32, linux_arm, native “Mike McCauley”: The RadioHe
ad Packet Radio library which provides a complete object-oriented library for sending and receiving packetized messages via RF22/24/26/27/69, Si4460/4461/4463/4464, nRF24/nRF905, SX1276/77/78, RFM95/96/97/98 and
etc.
[ 251 ] VirtualWire arduino, atmelavr, atmelsam, timsp430, titiva, teensy, freescalekinetis, ststm32, nordicnrf51, nxplpc, espressif, siliconlabsefm32, linux_arm, native “Mike McCauley”: It provides a simple
message passing protocol for a range of inexpensive transmitter and receiver modules
[ 576 ] LiquidCrystal_I2C arduino, atmelavr “marcoschwartz”: A library for DFRobot I2C LCD displays
PS C:\PlatformIO\msp430_kwiatek> pio lib list | grep 40
[ 40 ] nRF24 timsp430 “Eric”: The nRF24L01 is a low-cost 2.4GHz ISM transceiver module. It supports a number of channel frequencies in the 2.4GHz band and a range of data rates
PS C:\PlatformIO\msp430_kwiatek> pio lib list | grep nRF24
[ 40 ] nRF24 timsp430 “Eric”: The nRF24L01 is a low-cost 2.4GHz ISM transceiver module. It supports a number of channel frequencies in the 2.4GHz band and a range of data rates
[ 124 ] RadioHead arduino, energia, atmelavr, atmelsam, timsp430, titiva, teensy, freescalekinetis, ststm32, nordicnrf51, nxplpc, espressif, siliconlabsefm32, linux_arm, native “Mike McCauley”: The RadioHe
ad Packet Radio library which provides a complete object-oriented library for sending and receiving packetized messages via RF22/24/26/27/69, Si4460/4461/4463/4464, nRF24/nRF905, SX1276/77/78, RFM95/96/97/98 and
etc.
Why it is referring to something with g2231 , I setup my MCU to g2553 ?
Did I setup it correctly ? With library I simply did “pio lib install 40”, hopping it will do all the needed…