Comments (13)
Also note: I am on a mac.
from bluebasic.
I've not had chance to sit down and write the "Getting started" part of the Wiki - sorry about that. Assuming you have some CC2540/1 hardware and the TI CC Debugger to program it, you can use the TI SmartRF Flash Programmer app (free on their website) to program the appropriate target .hex file (in the HEX directory) onto the device. Once that's done, compile the Xcode BlueBasic Console program and, when you run that, you should see the device listed on the left side of the window (name will be BASIC#12 or some other number). Double click the name to connect.
Hope that's enough to get your started.
from bluebasic.
@aanon4 Great! That was perfect! I have connected to the cc2540 but when running the iBeacon example i am getting back "error"
10 REM A SIMPLE IBEACON SERVICE
20 DIM M(3)
30 REM MAJOR
40 M(0) = 0
50 REM MINOR
60 M(1) = 1
70 REM POWER
80 M(2) = 0XC8
90 ADVERT GENERAL
100 ADVERT CUSTOM "FF 4C 00 02 15" "74 27 8B DA B6 44 45 20 8F 0C 72 0E AF 05 99 35" "00 00" M "00"
110 ADVERT END
SAVE
AUTORUN ON
Error
OK
I may be doing something wrong? (Let me know if you want a separate ticket for this opened)
Also: Thanks for the quick feedback!
from bluebasic.
Much more likely my example is out of date. Let me check it out and update.
from bluebasic.
Very good, Another quick question. If i wanted to change the name and UUID, can i accomplish that with the program (If i can do you have an example??).
from bluebasic.
Just remove the SAVE line (bit of a hold over from when code was stored in RAM).
The UUID of the beacon is the string "74 27 8B DA B6 44 45 20 8F 0C 72 0E AF 05 99 35" which you can change for whatever you need. I'll update the example with a name.
from bluebasic.
Thank you very much, I am sure I will have more questions... Any place to give a donation??? :)
from bluebasic.
Ha :-) This is my "manager detox" project, so all for my own sanity.
from bluebasic.
Any way to "erase" what is on the chip using this? (Without using the TI Flashing tool)
from bluebasic.
Type "NEW"
from bluebasic.
Thank you! (Please let me know if you want any of the questions in separate tickets for other users)...
from bluebasic.
So far I am loving this BTW!
In the menu "File" I see two options (Load to Device & Upgrade Firmware)
Thus far I have been using a PC to flash the hex file you have provided using the TI Programmer... With one of the two options in the File menu can i do the same? Or will I alway need the TI Software to initially get the hex file to the chip? Can you tell me a little about what both of the menu options do?
from bluebasic.
Load to Device - sends a text file containing a BASIC program to the device.
Upgrade Firmware - after you initially flash the hex file to the device, you may want to upgrade the BASIC later. You can do this from the console program (no cable required) using this option and using the .BIN file (rather than the .HEX file).
from bluebasic.
Related Issues (20)
- Accessing pin 14/15 on 2541 HOT 1
- How to compile CC2540 version? HOT 1
- Using TI serial bootloader for BlueBasic HOT 4
- How to connect do fresh flashed device ? HOT 7
- loading BlueBasic using this method possible? HOT 6
- No console on appstore :( HOT 1
- Wiki typo on "Pin names and uses" HOT 4
- How to use ADC? HOT 1
- How to use SCAN ? HOT 2
- A witten program, can it be saved to create a permanently configured device? HOT 1
- Question - Can a basic program be saved and survive a power off HOT 3
- BlueBasic console for linux HOT 1
- How to create characteristics with uint8 value respond HOT 4
- compiler instructions for HM10, cc2541, want to upload blestack 1.4.2.2 updated hex files? HOT 3
- how to load basic programs on the chip? HOT 10
- OSX 10.12 Sierra fails HOT 6
- Large numbers > 536870912 (1<<29) are wrongly computed HOT 1
- Writing Array fails HOT 10
- Flashstore gets corrupted and programs gets garbled
- UPGRADE AVAILBLE message in console status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluebasic.