Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RFduino #319

Closed
JohnDBodkin opened this issue Nov 6, 2015 · 12 comments
Closed

Add support for RFduino #319

JohnDBodkin opened this issue Nov 6, 2015 · 12 comments
Assignees
Milestone

Comments

@JohnDBodkin
Copy link

Please consider adding a board type for RFduino that does not currently exist. http://www.rfduino.com/

@ivankravets
Copy link
Member

Please try develop branch of PlatformIO

$ pip install https://github.com/platformio/platformio/archive/feature/issue-319-rfduino-support.zip

# install platform with dependent package
$ platformio platforms install nordicnrf51 --with-package "framework-arduinonordicnrf51"

Then use this data in platformio.ini

platform = nordicnrf51
framework = arduino
board = rfduino

Does it work for you?

@JohnDBodkin
Copy link
Author

I used your commands. Then I used "platformio init -d .\pioproj --ide eclipse --board=rfduino" and it created a platformio.ini file with the data you entered above. However when I imported the project into Eclipse I get:

Program "C:\Users<USER_NAME>arm-none-eabi-g++" not found in PATH
Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem

Which maps to:
${USERPROFILE}arm-none-eabi-g++ ${FLAGS} -E -P -v -dD "${INPUTS}"

There is no compiler under the ${USERPROFILE} dir structure.

@ivankravets
Copy link
Member

Does it work without IDE? Could you compile source code and upload it?

# go to project directory where is located `platformio.ini`, then
platformio run --target upload

@JohnDBodkin
Copy link
Author

No it does not work without the IDE.

C:\Users\UserName\pioproj>platformio run --target upload
[11/10/15 19:38:49] Processing rfduino (platform: nordicnrf51, targets: upload,

framework: arduino, board: rfduino)

arm-none-eabi-g++ -o .pioenvs\rfduino\src\tmp_ino_to.o -c -fno-rtti -fno-excepti
ons -g -Os -ffunction-sections -fdata-sections -Wall -mthumb -mcpu=cortex-m0 -no
stdlib -MMD -fno-builtin -DF_CPU=16000000L -D__RFduino__ -DARDUINO=231 -DPLATFOR
MIO=020400 -IC:\Users\UserName.platformio\packages\framework-arduinonordicnrf51
system\CMSIS\CMSIS\Include -IC:\Users\UserName.platformio\packages\framework-ard
uinonordicnrf51\system\RFduino -IC:\Users\UserName.platformio\packages\framework
-arduinonordicnrf51\system\RFduino\include -I.pioenvs\rfduino\FrameworkArduino -
I.pioenvs\rfduino\FrameworkArduinoVariant -I.pioenvs\rfduino\RFduinoBLE src\tmp_
ino_to.cpp
'arm-none-eabi-g++' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [.pioenvs\rfduino\src\tmp_ino_to.o] Error 1
========================= [ ERROR ] Took 1.72 seconds =========================

C:\Users\UserName\pioproj>

@ivankravets
Copy link
Member

  1. Did you apply any changes to this log?
  2. Is it real user name UserName in your system?

I see problem like C:\Users\UserName.platformio. The \ is missed. Should be like C:\Users\UserName\.platformio...

@JohnDBodkin
Copy link
Author

I changed the real user name to UserName with a search and replace in
Notepad++. Do I need to add the complete provided by the Arduino IDE or
from RFduino to the path?
On Nov 11, 2015 4:54 PM, "Ivan Kravets" notifications@github.com wrote:

  1. Did you apply any changes to this log?
  2. Is it real user name UserName in your system?

I see problem like C:\Users\UserName.platformio. The \ is missed. Should
be like C:\Users\UserName.platformio...


Reply to this email directly or view it on GitHub
#319 (comment)
.

@ivankravets
Copy link
Member

If you don't want to print this log here, please send it (without modifications) directly to me@ikravets.com. Thanks.

@ivankravets ivankravets assigned ivankravets and unassigned valeros Nov 12, 2015
@ivankravets
Copy link
Member

Re-assigned to @ivankravets

TODO:

  • Missed packages tool-rfdloader and ldscripts in platform
  • Upload port should be required for this board

@ivankravets
Copy link
Member

@JohnDBodkin temporary solution: please define upload_port manually in http://docs.platformio.org/en/latest/projectconf.html#upload-port

@ivankravets ivankravets modified the milestones: 2.3.5, 2.4.0 Nov 18, 2015
@ivankravets ivankravets modified the milestones: 3.0.0, 2.3.6 Nov 27, 2015
@ivankravets ivankravets modified the milestones: 3.0.0, 2.7.0 Dec 18, 2015
@ivankravets ivankravets modified the milestones: 2.7.0, 2.8.0 Dec 26, 2015
@ivankravets
Copy link
Member

@JohnDBodkin please platformio upgrade to the latest version.
I'm waiting feedback from you. Thanks!

Happy Holidays and Merry Christmas!

@JohnDBodkin
Copy link
Author

I just took it for a test drive. I was on travel for the past month. It
works from the command line

On Sat, Dec 26, 2015 at 2:29 PM, Ivan Kravets notifications@github.com
wrote:

@JohnDBodkin https://github.com/JohnDBodkin please install development
version and try it
http://docs.platformio.org/en/latest/installation.html#d-development-version

I'm waiting feedback from you. Thanks!

Happy Holidays and Merry Christmas!


Reply to this email directly or view it on GitHub
#319 (comment)
.

@ivankravets
Copy link
Member

@JohnDBodkin thanks a lot for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants