AM335x Beaglebone Black Python Programming Scripts

203 views
Skip to first unread message

chris....@gmail.com

unread,
Dec 3, 2015, 8:25:51 AM12/3/15
to BeagleBoard

Team,

Our customer is trying to utilize the Beaglebone Black, running Python scripts, to program the SimpleLink CC3200.

Can you answer a question at the bottom of the attached reference document? (“We could not find documentation on how to run python scripts on beaglebone-black (Linux) like it has mentioned for Windows.  It would be helpful if we can get this information.”)  In other words, what is the command line to run the script on BBB (like “ImageProgramming.exe -p 2 -i hib.bin” on Windows)?

Regards,

Chris

-----


Questions regarding Embedded Programming

1.      We are able to program the evaluation board by connecting it to PC via USB. Results are as follows.





 

 

2.      But when we tried to program the evaluation board by using RS232 to TTL converter, we were unsuccessful, screen shot of Command Prompt and Snap shot of the setup are as below.



 

 

3.      We could not find documentation on how to run python scripts on beaglebone-black (Linux) like it has mentioned for Windows. It would be helpful if we can get those information.

Dennis Lee Bieber

unread,
Dec 3, 2015, 8:39:40 PM12/3/15
to beagl...@googlegroups.com
On Thu, 3 Dec 2015 04:18:42 -0800 (PST),
chris....@gmail.com declaimed the
following:

>
>
>Team,
>
>Our customer is trying to utilize the Beaglebone Black, running Python
>scripts, to program the SimpleLink CC3200 <http://www.ti.com/product/CC3200>
>.
>
>Can you answer a question at the bottom of the attached reference document?
>(“We could not find documentation on how to run python scripts on
>beaglebone-black (Linux) like it has mentioned for Windows. It would be
>helpful if we can get this information.”) In other words, what is the
>command line to run the script on BBB (like “ImageProgramming.exe -p 2 -i
>hib.bin” on Windows)?
>

Please try by using cut&paste of the TEXT rather than screen
captures... images don't always make it through, and the ones that did
(after I explicitly activated a "download images" function) are illegible.

However, "ImageProgramming.exe" is likely a Windows compiled binary
file -- it is nothing to do with Python. Python scripts normally have a .py
extension, and (presuming the she-bang line is valid, and it is made
executable) could be run on a Linux shell by typing

./thescript.py

at the prompt. Or, the long way

python thescript.py


debian@beaglebone:~$ cat example.py
#!/usr/bin/env python
STRING1 = "Goodbye"
STRING2 = "World!"

print STRING1
for i,c in enumerate(STRING2):
print "%s%s" % ("\t" * i, c)

debian@beaglebone:~$

debian@beaglebone:~$ python example.py
Goodbye
W
o
r
l
d
!
debian@beaglebone:~$

debian@beaglebone:~$ ./example
-bash: ./example: No such file or directory
debian@beaglebone:~$ ./example.py
-bash: ./example.py: Permission denied
debian@beaglebone:~$ ls -ltr
total 12
drwxr-xr-x 2 debian debian 4096 Apr 23 2014 Desktop
drwxr-xr-x 2 debian debian 4096 Apr 23 2014 bin
-rw-r--r-- 1 debian debian 138 Dec 3 20:27 example.py

Note that it is not flagged as "executable"

debian@beaglebone:~$ chmod +x example.py
debian@beaglebone:~$ ls -ltr
total 12
drwxr-xr-x 2 debian debian 4096 Apr 23 2014 Desktop
drwxr-xr-x 2 debian debian 4096 Apr 23 2014 bin
-rwxr-xr-x 1 debian debian 138 Dec 3 20:27 example.py

Now it is executable

debian@beaglebone:~$ ./example.py
Goodbye
W
o
r
l
d
!
debian@beaglebone:~$


--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

William Hermans

unread,
Dec 3, 2015, 9:11:31 PM12/3/15
to beagl...@googlegroups.com
Clearly, this is a person, or persons who are in way over their heads . . .


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Lazarewicz

unread,
Dec 4, 2015, 11:47:17 AM12/4/15
to beagl...@googlegroups.com
This is a SOC For wifi why would you use a beaglebone to program it either some one has punked you or your boss is incompetent.  If it the latter tell your boss that he'll respect your honest opinion 


--

chris....@gmail.com

unread,
Dec 22, 2015, 11:57:45 AM12/22/15
to BeagleBoard
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
 
You guys are a tough crowd!  We'll take this offline with the customer.
 
-Chris 

chris....@gmail.com

unread,
Dec 22, 2015, 11:57:59 AM12/22/15
to BeagleBoard, chris....@gmail.com
You guys are a tough crowd!  We'll take this offline with the customer.
 
-Chris
 

Mark Lazarewicz

unread,
Dec 23, 2015, 6:51:13 AM12/23/15
to beagl...@googlegroups.com
Hi Chris
 
Many of the RF SoC can be Initialized via UART by sending AT commands
 
 if that's what you are asking ???
 
I have used a windows python script to send the AT commands to get the Soc eval board running
 
If that's what you are asking the script itself will run from the BB command prompt and shouldn't be any different from windows . How to execute python in Linux tutorials are online
 
If your trying to load firmware into the SoC using a BB that doesn't make sense and really is off  subject of would ask in the group. That chip uses IAR or code Composer studio as a programming enviroments I believe you build the code load into the ARM processor over JTAG.Once its programmed the chip can be put in various modes using AT commands  
 
I have a simple link 2650 board from TI if you have any firmware question email me



From: "chris....@gmail.com" <chris....@gmail.com>
To: BeagleBoard <beagl...@googlegroups.com>
Cc: chris....@gmail.com
Sent: Tuesday, December 22, 2015 11:35 AM
Subject: [beagleboard] Re: AM335x Beaglebone Black Python Programming Scripts

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages