Other Parts Discussed in Thread: UNIFLASH
Do you have a simple project to blink LED?
Please tell me how to start R5F from OSPI FLASH.
CCS Version is 9.0.0.00018 .
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,
There are two example projects provided in PRSDK for blinking an LED.
GPIO LLD example:
The CSL GPIO example is named csl_gpio_toggle_app.
The boot flow, tools, etc. are documented at these locations:
Regards,
Frank
Hi Frank,
Thank you for the detailed explanation.
Thanks to that, I was able to move forward a little.
The following files were created by compiling pdk_am65xx_1_0_4.
Folder: C:\ti\pdk_am65xx_1_0_4\packages\ti\binary\csl_core_r5_baremetal_test_app\bin\am65xx_idk
2020/01/14 12:00 22,508 csl_core_r5_baremetal_test_app_mcu1_0_release.appimage
2020/01/14 12:00 24,322 csl_core_r5_baremetal_test_app_mcu1_0_release.appimage.signed
2020/01/14 12:00 22,476 csl_core_r5_baremetal_test_app_mcu1_0_release.rprc
2020/01/14 12:00 401,964 csl_core_r5_baremetal_test_app_mcu1_0_release.xer5f
2020/01/14 12:00 59,583 csl_core_r5_baremetal_test_app_mcu1_0_release.xer5f.map
2020/01/14 12:00 22,508 csl_core_r5_baremetal_test_app_mcu1_0_release_BE.appimage
Q1) Is this result correct?
Q2) Or is it a different folder?
Q3) Can I write 'csl_core_r5_baremetal_test_app_mcu1_0_release.appimage' to AM65x using UniFlash?
Q4) Or do you need to convert with 'tiimage.exe'?
AM65x is not listed in UniFlash I have.
Q5) Choose another device name?
Regards,
Hi Yoji,
Q1 & Q2) Build the SDK is documented here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_overview.html#building-the-sdk
Building PDK is documented here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_overview.html#rebuild-pdk
Issue this on the command line to get build help from the <PDK> installation directory (e.g. <PRSDK>/pdk_am65xx_1_0_6): gmake help
The CSL build output can be redirected to a build log as follows: (note gmake is used on Windows, make is used on Linux):
gmake csl_apps LIMIT_SOCS="am65xx" LIMIT_BOARDS="am65xx_evm" LIMIT_CORES="mcu1_0" > build_log.txt 2>&1
This log can be inspected to determine where the build output is placed.
For the CSL GPIO test app, I expect the output to be located in <PDK>\packages\ti\binary\csl_gpio_toggle_app\bin\am65xx_evm. The output files for the default build include:
csl_gpio_toggle_app_mcu1_0_release.xer5f
csl_gpio_toggle_app_mcu1_0_release.xer5f.map
By default, the application image for this GPIO test which is used by the SBL isn't created during build. Please see documentation under http://software-dl.ti.com/processor-sdk-rtos/esd/docs/06_01_00_08/rtos/index_Foundational_Components.html#building-the-sbl-and-its-components, Section "Converting ELF executables to SBL loadable image" for details on building this image. For example, I added the following lines to <PDK>\packages\ti\csl\csl_component.mk to create the image during the build of the GPIO test:
csl_gpio_toggle_app_SBL_APPIMAGEGEN = yes
export csl_gpio_toggle_app_SBL_APPIMAGEGEN
Q3-Q5) The generated .appimage can be written to flash using Uniflash. Please see the documentation here:
Regards,
Frank