Re: problem with socket and task

2019-08-13 Thread mojtaba nadi
thanks Sebastian for your answer but we are new in rtems and don't know how to use debugger. can you help us please? On Wed, Aug 14, 2019 at 9:35 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > > > On 13/08/2019 15:35, mojtaba nadi wrote: > > *** FATAL *** > > fatal source: 9 (R

Re: problem with socket and task

2019-08-13 Thread Sebastian Huber
On 13/08/2019 15:35, mojtaba nadi wrote: *** FATAL *** fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION) R0 = 0x002d2940 R8 = 0x000b R1 = 0x002d4080 R9 = 0x002d2940 R2 = 0x00215038 R10 = 0x002d4070 R3 = 0x002d4070 R11 = 0x R4 = 0x0010 R12 = 0x002d4014 R5 = 0x

Re: problem with socket and task

2019-08-13 Thread mojtaba nadi
hi afshin tanks for your answer but we tried many different stack-size and different mode of making task but it didn't work. On Tue, Aug 13, 2019 at 10:12 PM Afshin Jamaali (Arian) wrote: > Hi Mojtaba, > > > > You have created task1 with RTEMS_MINIMUM_STACK_SIZE. Are you sure this > amount of s

RE: problem with socket and task

2019-08-13 Thread Afshin Jamaali (Arian)
Hi Mojtaba, You have created task1 with RTEMS_MINIMUM_STACK_SIZE. Are you sure this amount of stack is enough? Maybe when recvfrom() receives data and writes into the recv_buf[] array, it corrupts the stack. Maybe it is not so, not sure. Best Regards, Afshin From: users [mailto:users

Re: Mounting/Accessing SD-Card on BBB

2019-08-13 Thread Nils Hölscher
Hi, I was able to mount the sd card. It was FAT, that was missing. Thanks, Nils On Tue, 13 Aug 2019 at 17:46, Nils Hölscher wrote: > Hi, > > Thanks for the input I will try the SD card first. > That way I won't have to alter the code when I want to run other stuff on > the pru. > > Best, > Nil

Re: Mounting/Accessing SD-Card on BBB

2019-08-13 Thread Christian Mauderer
Hello Nils, a third possibility: You could start a FTP server and push the file via network. Best regards Christian Am Dienstag, 13. August 2019 schrieb Nils Hölscher: > Hi, > > > Thanks for the input I will try the SD card first. > That way I won't have to alter the code when I want to run o

Re: Mounting/Accessing SD-Card on BBB

2019-08-13 Thread Nils Hölscher
Hi, Thanks for the input I will try the SD card first. That way I won't have to alter the code when I want to run other stuff on the pru. Best, Nils On Tue, 13 Aug 2019 at 17:32, Gedare Bloom wrote: > You can also build the PRU image into the RTEMS binary. See > examples-v2.git/file_io/crc/ini

Re: Mounting/Accessing SD-Card on BBB

2019-08-13 Thread Gedare Bloom
You can also build the PRU image into the RTEMS binary. See examples-v2.git/file_io/crc/init.c On Tue, Aug 13, 2019 at 8:46 AM Christian Mauderer wrote: > > Hello Nils, > > that's a bit odd. I attached an expected output below. Some guesses: > > - Did you add FAT file system to your application?

Re: Mounting/Accessing SD-Card on BBB

2019-08-13 Thread Christian Mauderer
Hello Nils, that's a bit odd. I attached an expected output below. Some guesses: - Did you add FAT file system to your application? - Is there some odd formatting on the SD? Normally at least the FAT partition used by U-Boot should be visible. - Is your BDBUF configuration OK? - Do you have enoug

problem with socket and task

2019-08-13 Thread mojtaba nadi
hello We have written an application which creates 3 tasks. in the first task (task_task1()) we want to receive some data using a UDP socket. using the file 1.c the socket will be created and bind successfully. But after adding recvfrom() (file 2.c line 79) rtems will crash. The output error messag

Re: Mounting/Accessing SD-Card on BBB

2019-08-13 Thread Nils Hölscher
Hi, Thanks for the help. I tried to use your code, but I always get "ERROR: SD could not be mounted after timeout". Even after raising the waiting time. The sources I use start here: https://github.com/nilhoel1/rtems-pru/blob/pruss-shell/main.c#L110 And my uart output is: "" waiting for SD... u