My board is an LX2080 target board designed with reference to the official design. I modified the PBL file according to the actual hardware configuration, compiled it to generate PBL_binary.bin, and synthesized fip.bin via flex-builder. Then, I programmed it into the FlexSPI NOR Flash (in a firmware-free state, with the hardware boot mode set to Hard-code mode). After the programming was completed, I switched the mode to FlexSPI NOR Flash, but there was no any printing information when connecting to the serial port. Has any senior encountered such a problem? How should I solve it? Thank you for sharing your debugging experience.
It seems that there is problem to generate atf image.
$ flex-builder -c rcw -m lx2160ardb_rev2
Then modify file components/firmware/rcw/lx2160aqds_rev2/FFGG_XXXX_PPPP_HHHHH_PPPP_PPPP_RR_19_5_2/rcw_2200_750_3200_19_5_2.rcw according to your custom board.
Rebuild rcw image.
$ flex-builder -c rcw -m lx2160ardb_rev2
Rebuild atf image.
$ flex-builder -c atf -m lx2160ardb_rev2 -b xspi
You will get image build/firmware/atf/lx2160ardb_rev2/bl2_flexspi_nor.pbl, please program bl2_flexspi_nor.pbl at offset 0 of your XSPI flash.
Then switch to XSPI nor flash boot, and check whether there is output form the serial port.
@yipingwang 请教一下,我该在RCW或者生成的bl2_flexspi_nor.pbl文件中的什么位置启用DEBUG调试信息,我没有找到位置
If you want to debug atf software, please refer to the following document.