Other Parts Discussed in Thread: OMAP-L138
- DDR Configuration
- OMAP-L138/Common/src/device.c: Modify the parameters passed to the function DEVICE_ExternalMemInit to match the DDR timing requirements for the custom board
- 1.我们用的是24.576M晶振,倍频以后CPU是442MHz,DDR是159MHz。这里参数做了修改
- UART Settings
- OMAP-L138/Common/include/device_uart.h: Modify the #define DEVICE_UART_PERIPHNUM to set which UART is connected to the host PC.
- Note that flow control is not used, so only the RX and TX lines need to be connected for boot and flashing purposes.
- 2.串口部分没有做任何的修改
- SPI Settings
- OMAP-L138/Common/include/device_spi.h: Modify the global macros to select the appropriate peripheral and chip select numbers.
- 3.我们使用了SPI0接口和片选cs0
- OMAP-L138/Common/src/device_spi.c: Modify the flash organization in DEVICE_SPI_MEM_params.
- 4.按照w25q64的sector和bulk size做了相应的修改。
- The SPI flash on the EVM does not need to be unlocked in order to erase or write. Some SPI flashes may need to set the BL bits before writing. Check the device datasheet to see if this step needs to be added to the initialization.
- NAND Settings
- OMAP-L138/Common/include/device_async_mem.h: Modify the #define DEVICE_ASYNC_MEM_NANDBOOT_BUSWIDTH to match the bus width of your NAND
- 5.没有涉及到nandflash,所以没有变。
- PLL Settings (for non 24 MHz input clocks)
- OMAP-L138/Common/src/device.c: Modify the parameters passed into the function DEVICE_PLL0Init and DEVICE_PLL1Init to set the proper PLL output frequencies
- PLL0和PLL1的初始化按照24.576MHz进行了倍频。
- OMAP-L138/Common/src/device_uart.c: Modify the 'divider' field in DEVICE_UART_config to achieve 115200 baud rate
- 波特率也做了相应的修改
所以检查了整个流程没有发现遗漏的地方,现在有些没有头绪。我用逻辑分析仪观察写入的过程发现我们片选信号拉低是工作,但是这个拉低的时间很短,逻辑分析仪上看只有几个时钟就拉高了,感觉没有有效的写入一个命令。

