Project

General

Profile

Activity

From 07/11/2014 to 08/09/2014

07/14/2014

JC 09:43 AM Software Development: RE: SPI clock issues with using newest u-boot
Yeah by using the ti_ 335x include files I was hoping to greatly simplify our config file. Hopefully it hasn't caused more confusion then it needed to. Jonathan Cormier
09:31 AM Software Development: RE: SPI clock issues with using newest u-boot
Ok,
I knew it had to be in there somewhere, was just a bit confused
as the original mityarm335x.h had a nice section in the file for all
that.
Thanks,
John C.
Anonymous
JC 09:26 AM Software Development: RE: SPI clock issues with using newest u-boot
Pretty sure I found "#define CONFIG_SPI" in one of the ti_ config files that get included. Jonathan Cormier
09:25 AM Software Development: RE: SPI clock issues with using newest u-boot
Yes the Micron N25Q00AA does support the 48Mhz clock. The sf erase still seems longer
but I'll need to time it get get more specific. I did notice that the mityarm335x.h
file was missing "#define CONFIG_SPI" as I though it was needed ...
Anonymous

07/11/2014

JC 05:26 PM Software Development: RE: SPI clock issues with using newest u-boot
Also make sure your Nor chip supports 48Mhz on the spi bus. Jonathan Cormier
JC 05:25 PM Software Development: RE: SPI clock issues with using newest u-boot
Did you notice any time difference with the slower speed? Jonathan Cormier
03:30 PM Software Development: RE: SPI clock issues with using newest u-boot
I took out the CONFIG_SPI_FLASH_BAR define and it now seem to pass the long erase command.
-----------------------------------
U-Boot# sf probe 0:0
SF: Detected N25Q1024 with page size 256 Bytes, erase size 4 KiB, total 128 MiB
SF:...
Anonymous
JC 02:23 PM Software Development: RE: SPI clock issues with using newest u-boot
It may be perfectly fine with the generic name then.
Try changing the spi clock speed and see if you get different results. I found with the nor on our SoM the erase seemed faster when run at 1Mhz but the write was much faster at 48M...
Jonathan Cormier
02:19 PM Software Development: RE: SPI clock issues with using newest u-boot
I added the CONFIG_SPI_FLASH_BAR define to mityarm335x.h and the warning is goes away on the "sf probe" command.
I added the #UNDEF and then "#define CONFIG_BOOTDELAY 3" to mityarm335x.h, and this now works.
The "sf erase" command seem...
Anonymous
JC 01:38 PM Software Development: RE: SPI clock issues with using newest u-boot
1) I'm not sure why its detecting it differently. Maybe the newer u-boot has a more specific driver for this chip?
Also from the README
Jonathan Cormier
12:44 PM Software Development: RE: SPI clock issues with using newest u-boot
Hey Johnathan,
Testing out the new spi bus changes seem fine. I do have two quick questions:
1) The original code I wrote spit out the device ID as:
-------------------------
U-Boot# sf probe 0:0;
SF: Detected N25Q00AA with p...
Anonymous
 

Also available in: Atom