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,
I was using dev board AM263x-lp and played with examples in CCS debug mode. I imported sbl_qspi example and lunched it - it didn't print out any messages on the terminal. Then I tried hello_world example and it worked well, so it's not a setup issue.
I tried both sdk packages: 08_03_00_23 and 08_02_01_08, neither one worked for me.
Another thing I tried was:
1) Flashing the device and bootloaded via QSPI by using pre-built program sbl_qspi.release.tiimage or sbl_qspi.debug.tiimage from sdk 08_02_01_08, both of them worked.
2) But after I used the tiimage built from the sbl_qspi example to replace pre-built version, flashing the device was fine but QSPI bootloading didn't work - it didn't print out correct messages but just some random numbers.
3) As to sdk 08_03_00_23, only pre-built sbl_qspi.debug.tiimage worked, not sbl_qspi.release.tiimage
Have any idea what's going on here?
Thanks,
Wenkai
Hi Wenkai,
Let me check and get back to you on this by EoD.
Thanks and Regards,
Aakash
Hi Wenkai,
I checked on E2 Revision of am263x-lp for HS-FS device with MCU+ SDK release - 08_03_00_23.
I did not identify any issue. I tried with both sbl_null and sbl qspi and both were working for me.
just some random numbers
Is your baud rate correctly set ? It should be 115200.
I am attaching the prebuilt binaries --
/cfs-file/__key/communityserver-discussions-components-files/908/sbl_5F00_null.release.tiimage
/cfs-file/__key/communityserver-discussions-components-files/908/sbl_5F00_qspi.release.tiimage
Another suggestion would be to install MCU+ SDK again so you have access to prebuilt binaries. The binaries in sbl_prebuilt tends to get updated if you build the bootloader examples.
Hope that helps.
Thanks and Regards,
Aakash
Hi Aakash,
I reinstalled MCU+SDK and that resolved my item #3, i.e. sbl_qspi.release.tiimage from sdk 08_03_00_23 works now.
But my item #2 still stands: After I used the tiimage built from the sbl_qspi example to replace pre-built version, flashing the device was fine but QSPI bootloading didn't work - it didn't print out correct messages but just some random numbers.
The baud rate was correct and it worked when I used pre-built version. The application I used for the test was: ipc_rpmsg_echo_system.appimage which was built from the imported example.
Also the imported example sbi_qspi still didn't work when in CCS debugger (Bootmode was set as "NO BOOT MODE")
BTW, Which SBL program you used can print out device type info, like HSFS or HSSE? Do you also have the source code? - this question is from the other thread.
Thanks,
Wenkai
Hi Wenkai,
That's not the correct way.
The sbl_qspi may not work if you load it via CCS. You must use uart_uniflash to flash the SBL_QSPI as well as the application image. Please follow the steps mentioned at this location - AM263x MCU+ SDK: Flash a Hello World example (ti.com)
You can also flash ipc_rpmsg_echo_system.appimage on top of that as your user application.
Hope that helps.
Best Regards,
Aakash
After I used the tiimage built from the sbl_qspi example to replace pre-built version, flashing the device was fine but QSPI bootloading didn't work
What about using tiimage built from the sbl_qspi example to replace pre-built version and use uart_uniflash to flash the SBL_QSPI as well as the application image? I tried and it didn't work for me either.
The reason I did that was: to be able to use customized SBL tiimage, I just modified sbl_qspi example and used the newly generated tiimage to replace pre-built version in the configuration file "default_sbl_qspi.cfg" but it didn't work so I just built the original sbl_qspi example without any modifications, but it still didn't work.
So the question is: can I use the example code sbl_qspi as the baseline to create our own SBL code? Why it didn't work for me?
Thanks,
Wenkai
Hi Wenkai,
What about using tiimage built from the sbl_qspi example to replace pre-built version and use uart_uniflash to flash the SBL_QSPI as well as the application image? I tried and it didn't work for me either.
The reason I did that was: to be able to use customized SBL tiimage, I just modified sbl_qspi example and used the newly generated tiimage to replace pre-built version in the configuration file "default_sbl_qspi.cfg" but it didn't work so I just built the original sbl_qspi example without any modifications, but it still didn't work.
Are you using the TI-EVM like am263x-cc or am263x-lp ? If not, then can you tell me more details about your setup as in which flash are you using ? Did it pass the flash_diag before sbl_qspi ?
can I use the example code sbl_qspi as the baseline to create our own SBL code? Why it didn't work for me?
Yes, That is the primary motive to share the SBL source code with the developers. So they can modify it based on their custom boards or change its flow if required.
Best Regards,
Aakash
Hi Aakash,
Are you using the TI-EVM like am263x-cc or am263x-lp ?
Yes, I used am263x-lp and tried both sdk packages: 08_03_00_23 and 08_02_01_08.
thanks,
Wenkai
Hi Wenkai,
The prebuilt binaries I have shared is for am263x-cc. Did you try with prebuilt binaries for lp ?
Best Regards,
Aakash
Yes, I didn't use the one you shared. The pre-built version works fine; the issue came up only after I replaced the pre-built one with the one freshly built from the example code.
Thanks,
Wenkai
Hi Wenkai,
The example generates the prebuilt binaries. This issue is very strange. Let me retry this on my end and then get back to you on this.
Thanks,
Aakash
Hi Wenkai,
I built the example project delivered OOB for am263x-lp. Both release as well as debug builds are functional and as expected. All the prints are intact as well.
Maybe your changes are not in the example project but in the associated libs.
Regards,
Aakash
I didn't make any changes, just built the imported example sbl_qspi in CCS and used generated "sbl_qspi_am263x-lp_r5fss0-0_nortos_ti-arm-clang.tiimage" to replace pre-built one in the config file "default_sbl_qspi.cfg". Did I miss anything here?
Strangely, This worked for me. I am sharing the project with you. You can compare the changes.
https://tidrive.ext.ti.com/u/kmXpdKfl6XGAZel5/5470194c-dd5c-4278-93cd-bc5ebe39b5dd?l
If this still does not work, then I would suggest you to re-install the SDK. (which I understand that you have done quite recently)
Hope it helps.
Best Regards,
Aakash
Your original tiimage works, but after I rebuilt your project it stopped working again. So I reinstalled SDK and even CSS, OpenSSL but it's still not working. Then I tried to use gmake to build the example with make file but it still failed.
Any idea what the problem could be?
This is what showed up on the terminal instead of correct messages: (seems like in UART mode but it was at QSPI mode)
000002020100000000000100414d323633580000000000000400cdab00000100010000000000000000000000000000000000000050d39632c39b4506e692c404625dcb0762b9770ae7166e7f1fb537404b7beceba254256c884d098cdb906573b92ee15169f9493be861bef6e4b1c8ffe67edb9c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f8c30ee93af832c3c22fb5c5a56d5dfea1e55c97f704af32155d7b3aa0aff90af8511b580312c2004876cf51e90bc238f1b59d06f6f46b1ef7e7a0429c196d0CCCCCCC
Hi Wenkai,
Seems like the X509 image (also called .tiimage) programmed in flash is somehow corrupted. Hence, ROM could not verify and boot the SBL from the QSPI and entered the UART mode as a fail-safe mechanism.
Just a suggestion -
In your default_sbl_qspi.cfg only load the sbl_uart_uniflash and sbl_qspi (without application). Does that work ?
Like this -
BR,
Aakash
I just tried only loading sbl_uart_uniflash and sbl_qspi (without application), and it still doesn't work (entering USRT mode).
Thanks,
Wenkai
Hi Wenkai,
Let's plan a debug session or we would need the project from your end to replicate the issue.
Best Regards,
Aakash
Hi Wenkai,
As a first step, I would like to check the project which you can upload it here - https://tidrive.ext.ti.com/u/gzbyrba28qmRNvKg/5470194c-dd5c-4278-93cd-bc5ebe39b5dd?l
Secondly, if the project works, then I would like to know more on your steps over the debug call.
Best Regards,
Aakash
Hi Aakash,
I uploaded the project which I tried last night but still failed after I reinstalled all the software: CCS, SDK, OpenSSL, sysConfig.
BTW, I also tried it in Linux (Ubuntu) environment and it worked.
Thanks,
Wenkai