Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed for native build on BeagleBone

Built using following commands:
 cd am335x_pru_package/pru_sw/app_loader/interface
 CROSS_COMPILE="" make
 cd ../../utils/pasm_source
 ./linuxbuild
 cd ../../example_apps
 CROSS_COMPILE="" make

Tested using:
 modprobe uio_pruss
 cd bin
 ./PRU_memAccess_DDR_PRUsharedRAM

Output:
INFO: Starting PRU_memAccess_DDR_PRUsharedRAM example.
AM33XX
       INFO: Initializing example.
       INFO: Executing example.
File ./PRU_memAccess_DDR_PRUsharedRAM.bin open passed
       INFO: Waiting for HALT command.
       INFO: PRU completed transfer.
Example executed succesfully.
  • Loading branch information...
commit e3636128968d8e0cc7b910e36887ae1db584a5bd 1 parent 17266fb
Jason Kridner jadonk authored
4 pru_sw/example_apps/Makefile
View
@@ -5,7 +5,7 @@ LIBDIR_APP_LOADER?=../../app_loader/lib
INCDIR_APP_LOADER?=../../app_loader/include
BINDIR_APPLICATIONS?=../bin
BINDIR_FW?=bin
-UTILS_DIR?=../utils
+PASM?=../utils/pasm
all:
# Make PRU example applications
@@ -16,7 +16,7 @@ all:
# Pass PRU assembly code for each example through assembler
for a_file in ${ASSEM_FILES} ; \
do \
- ${UTILS_DIR}/pasm -b $$a_file ; \
+ ${PASM} -b $$a_file ; \
done ; \
mv *.bin ${BINDIR_FW}
2  pru_sw/utils/pasm_source/pasmpp.c
View
@@ -540,7 +540,7 @@ static int ReadCharacter( SOURCEFILE *ps )
*/
static int GetTextLine( SOURCEFILE *ps, char *Dst, int MaxLen, int *pLength, int *pEOF )
{
- char c;
+ int c;
int idx;
int commentFlag,quoteFlag;
Please sign in to comment.
Something went wrong with that request. Please try again.