Closed acamilo closed 9 years ago
made the changes. its synthing.
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
no clock. pinout/UCF is right, must be something else.
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
backplane wiring to connector ok. AF24 A76 c0_sck_p. checked w multimeter.
VCC_IO_A is connected to 3.3v looked through schematic. nothing seems wrong. Creating a ISE proj that wiggles the pin
pin wiggles just fine. not an electrical problem. its a software/config problem in XPS or SDK
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
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...
need to re-synth to bump up sck speed to 50mhz
12us for 64 bytes. at 50mhz spi speed.
50mhz, 16 word fifo, 32 bit word size. check with scope.