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

Comments

Projects
None yet
3 participants
@JohnDBodkin

JohnDBodkin commented Nov 6, 2015

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

@ivankravets ivankravets added this to the 2.4.0 milestone Nov 6, 2015

@ivankravets ivankravets assigned ivankravets and valeros and unassigned ivankravets Nov 6, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Nov 9, 2015

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

This comment has been minimized.

JohnDBodkin commented Nov 10, 2015

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

This comment has been minimized.

Member

ivankravets commented Nov 10, 2015

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

This comment has been minimized.

JohnDBodkin commented Nov 11, 2015

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

This comment has been minimized.

Member

ivankravets commented Nov 11, 2015

  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

This comment has been minimized.

JohnDBodkin commented Nov 11, 2015

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

This comment has been minimized.

Member

ivankravets commented Nov 11, 2015

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

This comment has been minimized.

Member

ivankravets commented Nov 12, 2015

Re-assigned to @ivankravets

TODO:

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

This comment has been minimized.

Member

ivankravets commented Nov 12, 2015

@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 added feature and removed enhancement labels Dec 10, 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

This comment has been minimized.

Member

ivankravets commented Dec 26, 2015

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

Happy Holidays and Merry Christmas!

ivankravets added a commit that referenced this issue Dec 30, 2015

@JohnDBodkin

This comment has been minimized.

JohnDBodkin commented Jan 10, 2016

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

This comment has been minimized.

Member

ivankravets commented Jan 13, 2016

@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