Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 78859f0

Browse files
committed
arduino 1.6.3 support
1 parent 0cf5770 commit 78859f0

File tree

7 files changed

+53
-36
lines changed

7 files changed

+53
-36
lines changed

CHANGELOG

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
CHANGELOG
22

3+
v 2.3
4+
- Fixes required to support Arduino 1.6.3
5+
(NOTE: Arduino 1.6.3 or higher is now required for RFduino 2.3 or above).
6+
- Include explicit information about Java 6 (thanks gortok)
7+
- fixing analogRead freeze problem + fixing indentation (thanks OrenLederman)
8+
- Removing deprecated field in iOS framework and sample projects (thanks SensiBots)
9+
- make these virtual (thanks tripzero)
10+
- Remove dependence on UIKit; fix use of deprecated UUID attribute (thanks aeberbach)
11+
312
v 2.2.4
413
- Reduce compile times with Arduino 1.6 on second and subsequent compiles.
514

README.md

100755100644
Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88

99
* Get the [RFduino hardware](http://RFduino.com).
1010

11-
* Download [Arduino 1.5](http://arduino.cc/en/Main/Software).
12-
* _If you're on OSX_: Remember to open Arduino _first_ to make gatekeeper perform its magic!
11+
* Install the [FTDI drivers](http://www.ftdichip.com/Drivers/VCP.htm).
12+
13+
* Download [Arduino 1.6.3](http://arduino.cc/en/Main/Software) on newer.
1314
* _Mac OS X_: Requires Java 6 to be installed. Available [here](https://support.apple.com/kb/DL1572?locale=en_US).
14-
* Copy the Arduino library into the appropriate directory for your system. (Folder should be named ```RFduino```, not ```RFduino-master```):
15-
![location](docs.png)
16-
* _Windows_:
17-
* ```C:\arduino-1.5.4\hardware\arduino```
18-
* _OSX, Arduino 1.5.8_:
19-
* ```/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino```
2015

21-
* Install the [FTDI drivers](http://www.ftdichip.com/Drivers/VCP.htm).
16+
* Open Arduino
17+
* edit preferences, and add rfduino.com as the Server (HTTP) under Proxy Settings and save.
18+
![preferences](preferences.png)
19+
* Open the Boards Manager under Tools->Board menu.
20+
* Select the RFduino package at the end of the list, and click Install to install it.
21+
* Your new board will no show up in the Tools->Board menu.
2222

23-
You're ready to go!
23+
Select the board and port, and you're ready to go!
2424

2525
Detailed instructions are available in our [Quick Start Guide](http://files.rfdigital.com/rfduino.quick.start.guide.pdf).
2626

@@ -46,10 +46,6 @@ The best way to communiate with us is on the [RFduino Forum](http://forum.RFduin
4646

4747
### A Lot More Coming!
4848

49-
We are working on documentation as fast as we can. Until then, the best source for documentation is the sketch examples.
50-
51-
This project has been a huge success, and we have many exciting things planned that we want to share with the community. At the same time, we are unbelievable busy, with a ton going on and lots of small items to clean up. We are just a small team working on this project ... please bear with us!
52-
5349
We hope you enjoy creating stuff with your RFduino as much as we do!
5450

5551
The RFduino team.

boards.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
RFduino.name=RFduino
3+
RFduino.build.board=RFduino
34
RFduino.build.mcu=cortex-m0
45
RFduino.build.f_cpu=16000000
56
RFduino.build.core=arduino

platform.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# -------------------------
44

55
name=RFduino Boards
6-
compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
6+
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
77
compiler.c.cmd=arm-none-eabi-gcc
88
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -fno-builtin -MMD
99
compiler.c.elf.cmd=arm-none-eabi-g++
@@ -51,12 +51,18 @@ recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build
5151
recipe.size.regex=^(?:\.text|\.ARM.exidx|\.relocate)\s+([0-9]+).*
5252
recipe.size.regex.data=^(?:\.relocate|\.bss)\s+([0-9]+).*
5353

54+
## prebuild hook
55+
recipe.hooks.prebuild.0.pattern=
56+
57+
## postbuild hook
58+
recipe.hooks.postbuild.0.pattern=
59+
5460
# RFduino Uploader tools
5561
# ----------------------
5662

5763
tools.RFDLoader.cmd=RFDLoader
5864
tools.RFDLoader.cmd.windows=RFDLoader.exe
5965
tools.RFDLoader.upload.params.verbose=
6066
tools.RFDLoader.upload.params.quiet=
61-
tools.RFDLoader.path={runtime.ide.path}/hardware/arduino/RFduino
67+
tools.RFDLoader.path={runtime.tools.RFDLoader.path}
6268
tools.RFDLoader.upload.pattern="{path}/{cmd}" -q {serial.port} "{build.path}/{build.project_name}.hex"

preferences.png

81.8 KB
Loading

source/libRFduinoGZLL/build.bat

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
@echo off
22

3-
set arduino=C:\arduino-1.5.8
43
set nordic="C:\Nordic Semiconductor\nRF51 SDK_v4.2.0.25053\Nordic\nrf51822"
54

65
if not exist %nordic% (
76
echo Error: The Nordic SDK is required to build libRFduinoGZLL.
87
goto end
98
)
109

11-
cd %arduino%\hardware\arduino\RFduino\source\libRFduinoGZLL
12-
1310
if not exist _build\nul mkdir _build
1411
if exist _build\* del /q _build\*
1512

16-
set tools=%arduino%\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1
17-
set RFduino=%arduino%\hardware\arduino\RFduino
13+
set package=%appdata%\Arduino15\packages\RFduino
14+
15+
set base=%package%\hardware\RFduino
16+
dir /b %base% >%temp%\ver.txt
17+
set /p ver= <%temp%\ver.txt
18+
set base=%base%\%ver%
19+
20+
set toolchain=%package%\tools\arm-none-eabi-gcc\4.8.3-2014q1
1821

19-
set gcc=%tools%\bin\arm-none-eabi-gcc
20-
set ar=%tools%\bin\arm-none-eabi-ar
22+
set gcc=%toolchain%\bin\arm-none-eabi-gcc
23+
set ar=%toolchain%\bin\arm-none-eabi-ar
2124

2225
set includes=-I%nordic%\Include
2326
set includes=%includes% -I%nordic%\Include\gzll
@@ -51,8 +54,8 @@ set objs=%objs% _build\nrf_state_machine.o
5154
for %%f in (%objs%) do %ar% rcs _build/libRFduinoGZLL.a %%f
5255

5356
echo copying libray and header to variants...
54-
copy _build\libRFduinoGZLL.a %RFduino%\variants\RFduino\libRFduinoGZLL.a
55-
copy libRFduinoGZLL.h %RFduino%\variants\RFduino\libRFduinoGZLL.h
57+
copy _build\libRFduinoGZLL.a %base%\variants\RFduino\libRFduinoGZLL.a
58+
copy libRFduinoGZLL.h %base%\variants\RFduino\libRFduinoGZLL.h
5659

5760
:end
5861
pause

system/RFduino/source/build.bat

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
@echo off
22

3-
set arduino=C:\arduino-1.5.7
4-
5-
cd %arduino%\hardware\arduino\RFduino\system\RFduino\source
6-
73
if not exist _build\nul mkdir _build
84
if exist _build\* del /q _build\*
95

10-
set tools=%arduino%\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1
11-
set RFduino=%arduino%\hardware\arduino\RFduino
6+
set package=%appdata%\Arduino15\packages\RFduino
7+
8+
set base=%package%\hardware\RFduino
9+
dir /b %base% >%temp%\ver.txt
10+
set /p ver= <%temp%\ver.txt
11+
set base=%base%\%ver%
12+
13+
set toolchain=%package%\tools\arm-none-eabi-gcc\4.8.3-2014q1
1214

13-
set gcc=%tools%\bin\arm-none-eabi-gcc
14-
set ar=%tools%\bin\arm-none-eabi-ar
15-
set nm=%tools%\bin\arm-none-eabi-nm
15+
set gcc=%toolchain%\bin\arm-none-eabi-gcc
16+
set ar=%toolchain%\bin\arm-none-eabi-ar
17+
set nm=%toolchain%\bin\arm-none-eabi-nm
1618

1719
set includes=-I../include
1820
set includes=%includes% -I../../CMSIS/CMSIS/Include
@@ -39,8 +41,8 @@ for %%f in (%objs%) do %ar% rcs _build\%output% %%f
3941
%nm% _build\%output% >_build\%output%.txt
4042

4143
echo copying libray and txt to variants...
42-
copy _build\%output% %RFduino%\variants\RFduino\%output%
43-
copy _build\%output%.txt %RFduino%\variants\RFduino\%output%.txt
44+
copy _build\%output% %base%\variants\RFduino\%output%
45+
copy _build\%output%.txt %base%\variants\RFduino\%output%.txt
4446

4547
:end
4648
pause

0 commit comments

Comments
 (0)