This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

prussdrv_exec_program *** buffer overflow detected ***

Hey fellows,

im using the code from shabaz BBB - High speed data acquisition and web-based UI artikle and I did a rewrite of the PRU programm in C to fit it on the ADC.

I wrote and tested the Programm in CCS over JTAG and it works quiet well. Also the shared RAM writing seems to work.

Then i took the code onto the BBB with Ubuntu, installed the PRU C-Compiler for ARM etc...

The Compiler- and Linkerflags are (taken from the CCS makefile):

CLPRUFLAGS = -v3 -g -k -I"./lib" -I"./include"
CLPRULINKERFLAGS = --run_linker --define=am3359 -m"pru_code.map" --define=pru0 --diag_warning=225 --display_error_number --diag_wrap=off --heap_size=0x100 --stack_size=0x100 --reread_libs --define=PRU_CORE=1 --warn_sections --rom_model --xml_link_info="pru_code.xml" -o pru_code.bin link.cmd

Then I modified the the adc.c host Program for Loading into PRU0 because of the PINs I wired the ADC to. I also did the stuff with the Device tree etc.

Now, when I run the Host Program it stops at

 prussdrv_exec_program (PRU_NUM, "./pru_code.bin");

with the buffer overflow message I mentioned in the Subject.

What does that mean? Even google finds only one slightly usefull comment on a blogpost...
I atached the source of the Hostprogramm.

with kind regards,

Philipp