energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
793 stars 673 forks source link

Stellaris Wireless Programming #269

Closed rickysinho closed 10 years ago

rickysinho commented 10 years ago

am finishing a modification to the Energia IDE that allows you to program the Stellaris by bluetooth without needing a usb cable . I've been having some problems, because I can not find where I can edit the command that is used at the time that the Energia program stellaris. Anybody can help me about this?

haneefmubarak commented 10 years ago

@rickysinho Perhaps you'd like to push the code back to rickysinho/Energia so we can have a look at your current code?

robertinant commented 10 years ago

the upload command is constructed in app/src/processing/app/debug/LM4FUploader.java The uploader gets created in Sketch.java. Look for the function upload. One of the parameters that is being passed is a boolean "usingProgrammer". This is set to true when the user selects "Upload Using Progammer" from the "File" menu. You can then use the the API Preferences.get("programmer") to get the programmer that the user selected from Tools->Programmer. The programmer strings are in hardware/lm4f/programmers.txt. Use this programmer string in LM4FUploader.java to determine if the user selected your BT uploader from the Tools->Programmer.

Hope this helps to get you on the right track.

Robert

rickysinho commented 10 years ago

I do not quite know how to do this can you help me in this task?

robertinant commented 10 years ago

Unfortunately I will not have time to help out with this. I suggest to start a thread on 43oh.com so that others can assist.

rickysinho commented 10 years ago

You can tell me what I need to do actually to program using a programmer by serial (bluetooth)?

haneefmubarak commented 10 years ago

@rickysinho At this point, I honestly believe it may be time for you to just go to 43oh and make a post there asking how to do what you would like. Issues are for bug tracking, not for "How do I..." questions.

robertinant commented 10 years ago

@rickysinho, help me understand how this actually works:

1: What command line tool are you using to send the program binary to the board? 2: Do you have a serial bootloader on the Stellaris side? 3: What is needed on the PC side? 4: Which bluetooth module are you using on the Stellaris side? 5: What does the command look like on the PC to start the upload?

Robert

rickysinho commented 10 years ago
  1. I'm using the Windows command line.
  2. Yes, I'm using a bootloader on the Stellaris.
  3. You need the lm4flash, and a USB bluetooth adapter.
  4. I'm using the bluetooth module HC-05.
  5. The command to upload is: lm4flash -q manual -i serial -b 115200 -p COM1 -d -o 0x1000 -r file.bin Thanks you help.

2013/10/24 robertinant notifications@github.com

@rickysinho https://github.com/rickysinho, help me understand how this actually works:

1: What command line tool are you using to send the program binary to the board? 2: Do you have a serial bootloader on the Stellaris side? 3: What is needed on the PC side? 4: Which bluetooth module are you using on the Stellaris side? 5: What does the command look like on the PC to start the upload?

Robert

— Reply to this email directly or view it on GitHubhttps://github.com/energia/Energia/issues/269#issuecomment-26997236 .

Ricardo Mendes