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

How do I install this? #1

Closed
gregwinn opened this issue Sep 11, 2014 · 13 comments
Closed

How do I install this? #1

gregwinn opened this issue Sep 11, 2014 · 13 comments

Comments

@gregwinn
Copy link

May be a stupid question but I would love to install and use this!

I have cloned the project but am not sure how to install or what to install...

@gregwinn
Copy link
Author

Also note: I am on a mac.

@aanon4
Copy link
Owner

aanon4 commented Sep 11, 2014

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.

@gregwinn
Copy link
Author

@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!

@aanon4
Copy link
Owner

aanon4 commented Sep 11, 2014

Much more likely my example is out of date. Let me check it out and update.

@gregwinn
Copy link
Author

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??).

@aanon4
Copy link
Owner

aanon4 commented Sep 11, 2014

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.

@gregwinn
Copy link
Author

Thank you very much, I am sure I will have more questions... Any place to give a donation??? :)

@aanon4
Copy link
Owner

aanon4 commented Sep 11, 2014

Ha :-) This is my "manager detox" project, so all for my own sanity.

@gregwinn
Copy link
Author

Any way to "erase" what is on the chip using this? (Without using the TI Flashing tool)

@aanon4
Copy link
Owner

aanon4 commented Sep 12, 2014

Type "NEW"

@gregwinn
Copy link
Author

Thank you! (Please let me know if you want any of the questions in separate tickets for other users)...

@gregwinn
Copy link
Author

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?

@aanon4
Copy link
Owner

aanon4 commented Sep 12, 2014

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).

@aanon4 aanon4 closed this as completed Sep 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants