1. Open the Makefile in the prudebug-0.25 folder
2. Modify the CC variable to 'gcc'
3. Save and close the Makefile
4. run the command 'make --always-make'

Makefile was created for compilation from another system to a specific arm 
gcc implementation, when setting it as gcc, it will run with whatever 
native compiler is registered on your system (BBB has the 
arm-linux-gnuabihf-gcc) . Also, we need to force the rebuild of the 
binaries because the developer included the executables in the download so 
the make utility will not rebuild binaries unless forced.

On Monday, March 9, 2015 at 9:09:04 PM UTC-4, Karl Anderson wrote:
>
> Here is a link to the readme, which details how to download the repo and 
> execute it: https://github.com/BestFriendofDoug/PRUSS-C
>
> For some reason, the prudebug is not recognizing the executable, even 
> after I downloaded and untar-ed the file see error below:
>
> root@beaglebone:~/prudebug-0.25# ls -l
> total 184
> -rw-r--r-- 1 debian debian  8698 Mar  8  2014 cmd.c
> -rw-r--r-- 1 root   debian  1591 Mar  8  2014 cmdinput.c
> -rw-r--r-- 1 root   root    2264 Mar  8  2014 cmdinput.o
> -rw-r--r-- 1 debian debian 10512 Mar  8  2014 cmd.o
> -rw-r--r-- 1 debian debian  7302 Mar  8  2014 da.c
> -rw-r--r-- 1 root   root    8120 Mar  8  2014 da.o
> -rw-r--r-- 1 debian debian  1510 Mar  8  2014 LICENSE
> -rw-r--r-- 1 debian debian   136 Mar  8  2014 Makefile
> -rw-r--r-- 1 debian debian  6176 Mar  8  2014 printhelp.c
> -rw-r--r-- 1 debian debian  8484 Mar  8  2014 printhelp.o
> -rw-r--r-- 1 debian debian 16769 Mar  8  2014 prudbg.c
> -rw-r--r-- 1 debian debian  2607 Mar  8  2014 prudbg.h
> -rw-r--r-- 1 root   root   13240 Mar  8  2014 prudbg.o
> -rwxr-xr-x 1 root   root   41276 Mar  8  2014 prudebug
> -rw-r--r-- 1 debian debian  9495 Mar  8  2014 README
> -rw-r--r-- 1 debian debian  1238 Mar  8  2014 uio.c
> -rw-r--r-- 1 debian debian   549 Mar  8  2014 uio.h
> -rw-r--r-- 1 root   root    2016 Mar  8  2014 uio.o
> root@beaglebone:~/prudebug-0.25# sudo ./prudebug 
> sudo: unable to execute ./prudebug: No such file or directory
>
>
> On Friday, March 6, 2015 at 4:19:23 PM UTC-6, Jason Kridner wrote:
>>
>> That URL doesn't point to the source code. Can you simplify the 
>> step-by-step a bit further.
>>
>> I'm curious if http://sourceforge.net/projects/prudebug/ would help know 
>> that your code is properly loaded and running.
>>
>> On Fri, Mar 6, 2015 at 3:14 PM, Karl Anderson <[email protected]> 
>> wrote:
>>
>>> I am trying to run the example blinkled project shown at 
>>> https://github.com/BestFriendofDoug/PRUSS-C/tree/master/am335x_pru_package/pru_sw/app_loader/lib
>>>  
>>> but I am not getting any output to the GPIO pins. I have set up the dto to 
>>> output P9.12, and the blinkled.c is using StarterWare programs to toggle 
>>> P9.12, but there is no output to the pins when the program runs.
>>>
>>> The git repo should have everything you need. I occasionally get the 
>>> below error:
>>> ./blinkled 
>>>
>>> INFO: Starting PRU_memAccess_DDR_PRUsharedRAM example.
>>>     INFO: Initializing example.
>>> ./blinkled: symbol lookup error: ./blinkled: undefined symbol: 
>>> prussdrv_load_datafile
>>>
>>> Which was solved for me when re-running the Makefile in 
>>> /root/PRUSS-C/am335x_pru_package/app_loader/interface
>>>
>>> Any help on this issue would be appreciated!!
>>>
>>> -- 
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to