Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG
Tool/software:
How should I download the SBL program when using a AM625 self-made board for the first time? How to load an APP program through SBL?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
If you have UART boot mode available on your custom board, then you can make use of the UART Uniflash Tool available in the MCU+SDK to flash the SBL program or any other program.
There are already few guides available in the MCU+SDK that might help you to get started:
Best Regards,
Meet.
Hi Meet,
I couldn't find the UART Uniflash tool provided in the MCU+SDK. Could you provide the download path of the tool?
It is a python script (uart_uniflash.py) available in the tools/boot/ folder of the SDK, the steps to use this are mentioned here: https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/11_00_00_16/exports/docs/api_guide_am62x/GETTING_STARTED_FLASH.html#autotoc_md30
Hi,Meet,
The power supply of our self-made board is normal, and the 25M crystal oscillator of MCU_OSC is working properly. Configure the BOOTMODE to UART according to the manual and read back the registers through the debugger to be consistent with the configuration, as shown in the following figure. The problem phenomenon is: the data received by UART is garbled. Could you provide methods for troubleshooting or verification?
Hi,
The address in your debugger window corresponds to WKUP_CTRL_MMR registers, if you want to check the value written to UART registers then they start at the base address 0x2800000, please refer to section 14.8.2.4 UART Registers in the TRM for this.
After changing to UART boot mode, you can connect to the terminal in CCS, you should see character "C" getting printed on the UART terminal every 2-3 seconds to verify the boot mode, this is mentioned in the guide I sent your earlier, please refer to the same.
Best regards,
Meet.
Hi,Meet,
My UART has now been debugged normally and the DDR has been reconfigured in SysConfig according to the schematic diagram. However, when loading the sbl script in the operation guide, there is a problem as shown in the following figure.Could you provide methods for troubleshooting or verification?
Hi, Which Flash device does your board have? Is it a Nand Flash or a Nor flash?
Please use the UART UNIFLASH and SBL NULL binaries from am62x-sk folder instead of am62x-sk-lp, am62x-sk-lp has a NAND flash.
Hello,I use the UART UNIFLASH and SBL NULL binaries from am62x-sk,there is a problem as shown in the following figure:
Supplementary: The DDR chip model used on the self-made board is NT6AN256M16AC, and the Flash chip model is W25Q32JWSSAQ.
Hi, Please refer to this to add support for your custom flash part: software-dl.ti.com/.../CUSTOM_FLASH_SUPPORT_GUIDE.html
Best Regards,
Meet.
Hi,I carried it out according to this link. the code "the ospi_flash_diag example" cannot be loaded onto the single board, and the error is reported as shown in the following figure:
We reconfigured DDR using sysconfig and encountered a failure in the second step of loading SBL, as shown in the following figure. Could you please explain what the purpose of each step in loading the SBL is? What is the difference between the second failure and the third failure?
If you are not able to flash UART UNIFLASH stage-2 then that means that there was some problem in UNIFLASH stage-1, mostly related to DDR Configurations.
We reconfigured DDR using sysconfig and encountered a failure in the second step of loading SBL, as shown in the following figure. Could you please explain what the purpose of each step in loading the SBL is? What is the difference between the second failure and the third failure?
Could you go back to your previous DDR configurations where you were able to flash the stage-2 as mentioned here:
My UART has now been debugged normally and the DDR has been reconfigured in SysConfig according to the schematic diagram.
Could you let me know if your board has eMMC installed in it? If not then you would have to disable MMCSD module from UART UNIFLASH Stage-2. If this is not done then you would face some issues while executing UNIFLASH Stage-2 application and you would not be able to load the next application (SBL NULL) in your case.
there is a problem as shown in the following figure.Could you provide methods for troubleshooting or verification?
This issue is what you were observing previously.
Hi,we have completed the configuration based on the W25Q32JWSSAQ manual.This peocess can be closed.Thank you very much for your support.