NeuronRobotics / mribot-issues

0 stars 0 forks source link

Set up SPI Core on backplane and write test code. #2

Closed acamilo closed 9 years ago

acamilo commented 9 years ago

50mhz, 16 word fifo, 32 bit word size. check with scope.

acamilo commented 9 years ago

made the changes. its synthing.

acamilo commented 9 years ago

there are two xparameters.h files. One in /home/aimlab/workspaceEDK/standalone_bsp_0/microblaze_0/include/xparameters.h which has the correct info exported from XPS. The other in /home/aimlab/git/thoughtstabber/FPGASources/KX1_EdkRefDesign/sw/ws146/standalone_bsp_0/microblaze_0/include/xparameters.h which is old but is what the project is importing even though BSP is set to the first one.

i copied 1's contents into 2 so XSpi_LookupConfig will work

acamilo commented 9 years ago

no clock. pinout/UCF is right, must be something else.

acamilo commented 9 years ago

SPI driver returns status 1155 (no slave selected). selected a slave transfer func returns sucsess now. still no data on scope. "read data" is FFs

tying SDO to gnd does nothing

acamilo commented 9 years ago

backplane wiring to connector ok. AF24 A76 c0_sck_p. checked w multimeter.

acamilo commented 9 years ago

VCC_IO_A is connected to 3.3v looked through schematic. nothing seems wrong. Creating a ISE proj that wiggles the pin

acamilo commented 9 years ago

pin wiggles just fine. not an electrical problem. its a software/config problem in XPS or SDK

acamilo commented 9 years ago

SPISEL is the CS for the peripheral when it is in slave mode. i had it going to a pin. DS says it needs to be tied high. tied it to net_vcc

acamilo commented 9 years ago

Was a software problem. workspaceEDK/standalone_bsp_0 gets updated with all the right data but /git/thoughtstabber/FPGASources/KX1_EdkRefDesign/sw/ws146/standalone_bsp_0/ is what the project actually reffers too which is stale because it does not include the added SPI core. Core 0 was the SPI core that talks to the SPI flash on the module which was why it looked like it was working. After checking the peripheral base address and seeing it was wrong I Copied the config from the data table in the workspace BSP and bypassed the XSpi_LookupConfig( function and it works now... Changing the BSP through the IDE does not fix this. that stale one is somehow hard coded in...

acamilo commented 9 years ago

need to re-synth to bump up sck speed to 50mhz

acamilo commented 9 years ago

12us for 64 bytes. at 50mhz spi speed.