Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

TMS320C5535: Writing to SPI flash is not working

$
0
0

Part Number:TMS320C5535

We are using winbond w24q128jvsm serial nor flash with TMS320C5535 board. We are not able to write to a location using csl_spi library . Sending write command and reading it back but read buffer is empty. How do we check if software is fine?
So was trying to probe each of 8 pins. Saw that Clock is not there.
Verified it by checking SPI register. Saw that when we enable the CLKEN bit, it is still showing disable. Also we have choosen CLKDIV value as 4. But as soon as we write in this register and go to executing next step in software, it changes the CLKDIV value to 0. And CLKEN bit is not shown set inspite of us going stepwise in the code execution.
Then tried checking system register. We have selected RTCIN and BYPASSMODE. And enabled clocks to all the peripherals.
Let me know if we are missing something in initialization.
PPMODE is 1, SP0 MODE & SP1 MODE is 2
We first init the TMS320C5535 SPI interface. Then we send low on CS pin and 1 on HOLD and Write Protect Pin. Then we do a software reset by usig RST bit in SPI register. After that we set the CLKDIV value and enable the clock. But it doesn't enable the clock on SPI_CLK pin.
Thanks and Regards,
Sangeeta Gunwani

Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>