cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
4,321 Views
Registered: ‎02-06-2008

Microblaze and SPI and linker and SDK debugger 9.2 problem

I have the Microblaze setup to read an ADC on the SPI bus (16 bits at a time). My code is executing out of external 16 bit SRAM. If I set the Data section of the linker to external SRAM, I can only only read the second (lower) byte of every 16 bit transfer. The upper byte is always duplicated and read as the lower byte. (ie, my data always looks like 0x3434, 0x4949, 0xf3f3 etc.) with the lower byte being correct. If I set the Data section of the linker to BRAM everything works fine. I would rather use SRAM for my data.
0 Kudos
0 Replies