Memory access between application task and driver using printk

2015-11-16 Thread Inderjit Singh
Hi, I have a strange behaviour regarding memory access between my user application and the driver i have developed I'd like to get some clarification on. The development is all used on or1k arch. On the application side, I have a buffer declared as: #define PACKET_SIZE 256 volatile uint8_t

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-09-11 Thread Inderjit Singh
Hi, Can I presume that using errno with RTEMS does not work? To me I'm baffled that a RTEMS_SUCCESSFULL value must be returned in order to retain the errno value. regards, Indy From: Inderjit Singh Sent: 24 August 2015 15:07 To: Chris Johns; devel@rtems.org

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-09-11 Thread Inderjit Singh
From: devel [devel-boun...@rtems.org] on behalf of Sebastian Huber [sebastian.hu...@embedded-brains.de] Sent: 11 September 2015 10:18 To: devel@rtems.org Subject: Re: rtems_set_errno_and_return_minus_one in driver not returning correct value On 11/09/15 10:10, Inderjit Singh wrote: > Ca

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-08-24 Thread Inderjit Singh
] on behalf of Inderjit Singh [inderjit.si...@aacmicrotec.com] Sent: 24 August 2015 09:08 To: Chris Johns; devel@rtems.org Subject: RE: rtems_set_errno_and_return_minus_one in driver not returning correct value Hi Chris, I am pretty sure the driver is working fine yes. I had this issue for some time

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-08-24 Thread Inderjit Singh
From: Chris Johns [chr...@rtems.org] Sent: 24 August 2015 01:19 To: Inderjit Singh; devel@rtems.org Subject: Re: rtems_set_errno_and_return_minus_one in driver not returning correct value On 21/08/2015 10:22 pm, Inderjit Singh wrote: Hi, In my RTEMS driver I set and return

Telnetd fails to compile due to -DDEBUG

2015-08-21 Thread Inderjit Singh
Hi, I put some debug macos in my driver and when building the rtems, i get failure in telned. Any idea why? RTEMS version 4.10.99 from git some time from May. My configuration: ../rtems/configure --target=or1k-rtems4.11 --enable-rtemsbsp=or1k-bb --enable-test=samples

rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-08-21 Thread Inderjit Singh
Hi, In my RTEMS driver I set and return error value by following macro: rtems_set_errno_and_return_minus_one(EALREADY); But in my rtems app when I print the error out by: fd = open(RTEMS_SYSFLASH_DEVICE_NAME, O_RDWR); if(fd 0) { printk(Couldn't Open device (%d:%d:%s)., fd, errno,

RE: BSP Driver not initialized

2015-07-02 Thread Inderjit Singh
To: Inderjit Singh; devel@rtems.org Subject: Re: BSP Driver not initialized On July 1, 2015 10:47:16 AM CDT, Inderjit Singh inderjit.si...@aacmicrotec.com wrote: Hi, I'm trying to initialize (get up) my driver for a or1k target. I reused the the hello sample program to see if the driver ckicks

BSP Driver not initialized

2015-07-01 Thread Inderjit Singh
Hi, I'm trying to initialize (get up) my driver for a or1k target. I reused the the hello sample program to see if the driver ckicks in but nothing in th console (except the hello msg in Init fiunction. Does anyone know why? I updated the file as shown below. At this point I am only interested