Activity
From 02/21/2017 to 03/22/2017
03/21/2017
- DV 07:21 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Im thinking it's related to the preloader. The preloader is the one who does all the pin muxing for the HPS peripherals (including muxing any of these interfaces to the FPGA). If any HPS peripheral or any of the bridges between HPS and F...
- JK 07:06 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hello Dan,
When re-building an SD card image using my kernel (uImage), the DTB you attached, and the FPGA image (.rbf), U Boot image, and preloader image you attached, I am able to see data in the receive buffer.
That suggests to m... - DV 04:19 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- I've attached my preloader/uboot/fpga image.
I've also attached the spi_test c++ code I was working with, I've removed the chrono's part because I was having issues with getting to build with my toolchain (I'm not sure if it supports ... - JK 03:00 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hello Dan,
I replaced the uImage on my SD card (at /boot) with the uImage I sent you (to ensure it's the same as what you tested), and replaced the DTB with the DTB you attached (also in /boot).
I rebooted the card and ran the C++ ... - DV 02:07 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- I've tried your kernel and the RX buffer is still working. I couldn't get uboot to actually boot your device-tree, I try rebuilding it and that didn't work either.
I've attached the dts/dtb I'm using.
Dan - DV 12:29 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- I've tried it with our 3.16 kernel and Altera's 4.1.22 and 4.1.22 RT kernel. All get data on the RX side. I'll try your kernel and device tree this morning and get back to you.
Dan - JK 12:26 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hello Dan,
I've attached the requested files (Linux 4.1.22 LTSI RT branch compiled into "uImage" with defconfig "socfpga_mitysom5csx_custom_defconfig", and the device tree binary and source files).
That you were able to get the exp... - DV 12:41 AM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hi Jared,
Unluckily I wasn't able to recreate the issue you are seeing. My RX buffer has the expected 0x8330 instead of 0x0000 after running. Would you mind posting the following: uImage, DTB, and DTS?
I'll try to run with your uIm...
03/20/2017
- DV 07:53 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hi Jared,
I'm in the middle of recreating your test with one of our dev kits. I'll connect up the MOSI to the MISO in the FPGA and run your test app. I'll let you know what I see, should be by end of day. I'll look into the RX issue f...
03/15/2017
- JK 01:47 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hello Mike,
I modified the SPI device tree entry to have an "spi-max-frequency" of 1 MHz (a slow clock speed, as you suggested, to get started).
I kept the FPGA image in which we connected MOSI to MISO (rather than using the "loop ...
03/14/2017
- JK 12:44 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hello Mike,
I just saw this message, and will try it out first thing tomorrow. Unfortunately, a snow storm is preventing me from being in the office to try this out today.
Thanks,
Jared
03/13/2017
- MW 05:20 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Here is some example code from the linux kernel documentation area.
BTW: our FPGA driver and the SPI HPS "hardcore" have a built in loopback mode, so you don't need to physically rewire the FPGA at the top level.
Can you run thi... - I found a problem reading the HPS gpio in uboot.
E.g
03/10/2017
- JK 05:34 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Hello Mike,
We've since conducted a loopback test (MOSI connected to MISO within the FPGA) and observed no change in behavior (still an empty receive buffer). The SCLK and CS lines are still behaving as expected as measured by an osci...
03/09/2017
- JK 08:28 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Are you referring to modifying the FPGA such that MOSI is connected to MISO?
If that works, it might indicate that somehow our MISO signal isn't hooked up correctly in the FPGA (which I'd be surprised by due to another test described ... - MW 06:43 PM Software Development: RE: SPI Comm - can transmit data from Linux, but not receive
- Have you tried using the Loopback option to see if you can just loop back the command data and if RX is OK?
-Mike
03/01/2017
- Context:
- Hardware: MitySOM 5CSX board connected to another board containing several chips which communicate via SPI
- Software: the MitySOM processor is running the Altera Linux 4.1.22 LTSI RT kernel with a device tree I've customize...
02/22/2017
- I believe there is a small errata on the [[Mounting_Hole_Locations]] page.
At the bottom it states... "Standoff: McMaster Carr PN - 91115A510" ... This is not an actual part number in McMaster.
I think the last two numbers where switch...