Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.

Creating a New DSP BIOS Project on OMAP35x

From Texas Instruments Wiki
Jump to: navigation, search

Introduction

It can be a little bit difficult figuring how to get started writing DSP code to run on the 64x+ core inside OMAP3530. This mini tutorial should make it easier. Note that this tutorial is assuming you are using CCS 3.3, the flow is similar but exact steps differ for CCSv4.

Connecting to the target and debugging

This topic provides info on how to connect to the target and debug DSP/BIOS Link based applications on OMAP35x.

Important Steps

  1. Open cc_setup.exe and select your corresponding OMAP3530 configuration (emulator dependent). Notice that by clicking on the processor you will see in the right window the associated GEL file. Right Click -> Properties if you want to change it. Save and start CCS.
  2. In the parallel debug manager, right click ICEPICK_C_0, Connect Device
  3. In the parallel debug manager, right click CortexA_0, Connect Device
  4. Open OMAP3530_XDS510USB/CortexA_0 – this will open a CCS window.
  5. In the GEL menu, go to IVA_2200_Startup -> IVA22_GEM_startup. This releases the 64x+ core from reset which is necessary for CCS to be able to connect to the core.
  6. In the GEL menu, go to IVA_2200_Startup -> IVA22_SEQ_startup. Note this may not exist in your GEL file, if not ignore it.
  7. In the parallel debug manager right click C6400PLUS_0, Connect Device.
  8. In the CCS CortexA_0 window, GEL-> DRAMS -> mDDR_Samsung_K4X…(Select mem type of board)
  9. In the parallel debug manager, Open OMAP3530_XDS510USB/C6400PLUS_0 – this will open a CCS window
  10. Create a new (Project -> New)., or open existing project (Project -> Open).
  11. In the project options set the target to 64x+ rather than the default 64x.
  12. Go to File -> New -> DSP/BIOS Configuration... and select ti.platforms.evm3530.
  13. Save the new file with File -> Save, e.g. bios.tcf.
  14. Add the tcf (bios.tcf) and corresponding linker command file (bioscfg.cmd) to your project using Project -> Add files to project...
  15. Add your source files (e.g. main.c, etc.) to the project.
  16. Build, load, run...
  17. Don't forget that in a BIOS project you must return from main in order to give control to the BIOS kernel. That is, all your tasks, etc. run after you return from main.

Video

Click here to see Flash video

Notes

  • The hardware setup used in making the video used a Blackhawk USB560bp emulator, which is why that specific configuration was chosen in cc_setup.
  • If you have trouble connecting to the Cortex A8, try connecting while u-boot is running rather than after Linux has booted. The low power modes can make it difficult to connect after Linux starts.