Project

General

Profile

Activity

From 01/22/2016 to 02/20/2016

02/01/2016

10:49 AM Software Development: RE: Spidev issues
Fred, I'm not sure what is wrong. Perhaps if you sent us your schematic someone could look it over.
I'm pretty su...
Jonathan Cormier

01/29/2016

03:08 PM Software Development: RE: Spidev issues
A single IOCTL call with len=4 returns 4 bytes of 0 value instead of 2 with no difference in the SPI signals. Fred Frantz
12:04 PM Software Development: RE: Spidev issues
I believe you want a single IOCTL. See the attached source code duplex method.
Example usage...
Jonathan Cormier
11:51 AM Software Development: RE: Spidev issues
Correction in above code
fd = open(devname, O_RDWR|O_SYNC);
should be
fd = open(devname, O_RDWR);
Fred Frantz
11:49 AM Software Development: RE: Spidev issues
This is based on spidev_test.c and other examples. There are two devices on the bus that have to be configured to re... Fred Frantz
11:06 AM Software Development: RE: Spidev issues
Fred Frantz wrote:
> Yes, I am looking at all the SPI0 signals on a scope, and they are correct. The transmitted da...
Jonathan Cormier
11:02 AM Software Development: RE: Spidev issues
Yes, I am looking at all the SPI0 signals on a scope, and they are correct. The transmitted data is configuring the ... Fred Frantz
10:44 AM Software Development: RE: Spidev issues
Fred Frantz wrote:
> The data is now being clocked out correctly, and the device is responding with the correct da...
Jonathan Cormier
10:42 AM Software Development: RE: Spidev issues
Fred Frantz wrote:
> Mike, are you referring to the .d0_is_mosi parameter in the ompa2_mcspi_device_config structure...
Jonathan Cormier
10:36 AM Software Development: RE: Spidev issues
Mike, are you referring to the .d0_is_mosi parameter in the ompa2_mcspi_device_config structure? That is set to 1, b... Fred Frantz

01/28/2016

12:12 PM Software Development: RE: Spidev issues
I think there is also a control for the McSPI that can swap the din / dout pins between "d0" and "d1". We had troubl... Michael Williamson
12:06 PM Software Development: RE: Spidev issues
Fred Frantz wrote:
> Thanks for the correction. Setting the .bus_num = 1 solved the module issue, and the .controlle...
Jonathan Cormier
11:59 AM Software Development: RE: Spidev issues
Thanks for the correction. Setting the .bus_num = 1 solved the module issue, and the .controller_data information is ... Fred Frantz

01/26/2016

05:02 PM Software Development: RE: Spidev issues
Fred Frantz wrote:
> After erasing the NAND, the ECC errors are resolved. Thanks, that was a self inflicted problem ...
Jonathan Cormier
04:54 PM Software Development: RE: Spidev issues
Michael Williamson wrote:
> SPIDEV sits on top of McSPI. It's an abstraction layer on top of the specific SPI drive...
Jonathan Cormier
03:49 PM Software Development: RE: Spidev issues
SPIDEV sits on top of McSPI. It's an abstraction layer on top of the specific SPI driver. That may be the problem.
...
Michael Williamson
03:36 PM Software Development: RE: Spidev issues
After erasing the NAND, the ECC errors are resolved. Thanks, that was a self inflicted problem due to misinterpretati... Fred Frantz
11:44 AM Software Development: RE: Spidev issues
Jonathan Cormier wrote:
> For your case you just need to erase the kernel section.
> @nand erase 0x340000 0x50000...
Jonathan Cormier
11:43 AM Software Development: RE: Spidev issues
> U-Boot# tftp 0x82000000 $serverip:uImage
> U-Boot# nand write.i 0x82000000 0x340000 $filesize
> No errors are rep...
Jonathan Cormier
11:17 AM Software Development: RE: Spidev issues
The kernel and environment were reloaded just to get to a known point where everything was working previously. The k... Fred Frantz
10:39 AM Software Development: RE: Spidev issues
Just checked and the 0x340000 address the ECC errors mention is the location of the kernel not the environment I init... Jonathan Cormier
09:35 AM Software Development: RE: Spidev issues
Fred Frantz wrote:
> Thanks for the suggestions, but ZCAT on the target indicates that SPIDEV is enabled.
Interes...
Jonathan Cormier
09:13 AM Software Development: RE: Spidev issues
Thanks for the suggestions, but ZCAT on the target indicates that SPIDEV is enabled. Regarding the ECC errors, I rel... Fred Frantz

01/25/2016

05:33 PM Software Development: RE: Spidev issues
Hmm no noticeable errors. You can double check the kernel, on the booted device for the spidev support:... Jonathan Cormier
04:21 PM Software Development: RE: Spidev issues
I added the boot log for the ECC errors also. Fred Frantz
03:39 PM Software Development: RE: Spidev issues
Hope this helps. Fred Frantz
03:15 PM Software Development: RE: Spidev issues
Can you attach the bootlog for the device? Jonathan Cormier
03:09 PM Software Development: RE: Spidev issues
It looks like it is enabled to me.
...
Fred Frantz
01:41 PM Software Development: RE: Spidev issues
A pinmux conflict would likely cause the device not to work but it would not affect the creation of the spidev device... Jonathan Cormier
01:33 PM Software Development: Spidev issues
The dev kit baseboard file has been modified to include a "spidev" device, and the kernel was compiled to include the... Fred Frantz
 

Also available in: Atom

Go to top
Add picture from clipboard (Maximum size: 1 GB)