Other Parts Discussed in Thread: SYSCONFIG
Tool/software: Code Composer Studio
I am porting U-Boot to a new AM3358 based board.
This can boot from SPI flash and from the SD/MMC0 connector.
I am familiar with U-Boot, but only as a second level bootloader.
In order to get a better understanding of the U-Boot 1st level bootloader (MLO)
I would like to single step through it to follow the program flow.
The bootprocess is as follows:
We have SYSCONFIG[4:0] = 10110: Boot order: SPI0, MMC0, UART0, EMAC1
At reset, the CPU will first try the SPI boot, which will fail because
at this time we will only have MLO on the SD-Card.
The ROM boot will then find MLO on the SD-Card and load it into internal SRAM.
Alternatively, no SD-Card and download using UART.
Right after the download into SRAM, I would like to break the CPU so I can single step through MLO using CCS.
I have noticed that there is training on how to compile U-Boot which I have not watched yet.
I expect that I will be able to compile U-Boot using CCS to get an ELF file with the symbols,
but normally the debugger would want to download the file.
How can I breakpoint the CPU right after the download completes?
Can you simply set a H/W breakpoint on the beginning of the SRAM?
Are there any application notes covering board bringup using the ROMboot?