Hi,
we have a custom Board with a C6657-Processor that we want to boot DIRECTLY via SPI from a NAND-Flash. So no IBL, just the RBL.
The Mainquestion is: Is it possible to directly boot the C6657 RBL from a NAND-Flash connected via SPI?
Searching for a couple of days, so far I could only find examples booting from a NOR-Flash via SPI or booting from a NAND-Flash via EMIF.
This is our current Situation:
The Processor will initialize the SPI-Boot and get some Data from the NAND-Flash (Clocking for about 2 ms), but the Program in the Flash won't be executed properly.
We tried flashing the exact same Image to the NOR-Flash on the EVM-Board and the Processor executes it as expected (SPI is clocking for 123 ms).
Our Bootpins are Configured as follows:
PIN -1: 1 (littleendian)
PIN 00: 0 (SPI)
PIN 01: 1 (SPI)
PIN 02: 1 (SPI)
PIN 03: 0 (Image-Offset)
PIN 04: 0 (Image-Offset)
PIN 05: 0 (Image-Offset)
PIN 06: 0 (Image-Offset)
PIN 07: 0 (CS0)
PIN 08: 1 (CS0)
PIN 09: 0 (16-bit Addresses)
PIN 10: 0 (4Pin SPI)
PIN 11: 0 (SPI-Mode 2)
PIN 12: 1 (SPI-Mode 2)
We are using this Flash: W25N01GVZEIG with 1Gbit Memory. The Flash is configured in continuous-Mode, so a single Read-Instruction will read the entire Image. In the Datasheet this mode is said to accomplish compatibility to their NOR-Flash Instructions.
The Image is created using these instructions http://au.tono.my/log/20140117-c6657-spi-boot.html and flashed to Page 0 from a C2000-Processor.
So the Questions would be
Is it possible to directly boot the C6657 RBL from a NAND-Flash connected via SPI?
and
What exactly does Bootconfig-Pin 9 express? What are the 16/24Bit-Adresses? And where in the Flash-datasheet can I find this Value?
and
maybe how would one debug the RBL-Bootloader? How can I read the debug log messages stated in the RBL-sourcecode?
Thank you and regards
Oliver