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.

Proper method to include and use BIOS PSP drivers in a project?

Other Parts Discussed in Thread: TMS320C6748, SYSBIOS

I have been having a lot of trouble trying to use the UART PSP drivers in my SYS/BIOS project on my TMS320C6748. After a week of battling with the command line, I was finally able to actually compile the drivers, but when it comes to using them in the project, I have run into all sorts of errors. Some were 'Undefined Symbol' errors, some 'Redefined Symbol' errors, and the strangest one (to me anyway) was when #include'ing the uart.h or uartlocal.h files, I would instantly use up all of my IRAM space and could not complete my compilation (had 0x20000 available before including them). I tried following the linking/inclusion patterns shown in the I2C example CCS project, but that didn't work either. I have also tried using the pre-compiled libraries for my chip when you install BIOS PSP, as well as both COFF and ELF formats, but nothing ever really seems to work. The only think I HAVE been able to get working is the UART example provided with Starterware. Unfortunately, I am unable to get the Starterware code to play nicely with SYS/BIOS in terms of HWI's.

Does anyone have a tried and true, step-by-step method for using the PSP drivers in a SYS/BIOS project on a C6748 chip? Any advice would be greatly appreciated, as I am somewhat new to the embedded software world and find myself frequently lost when it comes to these types of issues.

Thanks,
Charles

  • What EVM and SDK are you using? There are a lot of SW packages with demos and examples available for the different development platforms that use C6748 that can get you started. The "processors.wiki.ti.com" wiki has useful "Getting Started Guides" that provide steps on how to set up the development environment. For developing with C6748 DSP, it also help if you have an XDS emulator and the Code Composer Studio (CCS) IDE instead of trying to build using command line. 

    The following links may help:

    Using C6748 LCDK board with the C6748 BIOS SDK:

    http://processors.wiki.ti.com/index.php/BIOS_C6SDK_2.0_User_Guide

    On line material and video on SysBIOS is available at the following links. The workshop has labs that use a C6748-based EVM so it should be directly applicable to your needs:

    http://processors.wiki.ti.com/index.php/C6000_DSP_and_SYS/BIOS_Training

    http://processors.wiki.ti.com/index.php/C6000_Embedded_Design_Workshop_Using_BIOS

     

     

  • Loc,

    I'm no longer using an EVM, but am using the TMS320C6748 alone on a custom board. Everything is working great with it so far, I just can't seem to successfully link/use the BIOSPSP drivers in my project for the various reasons that I mentioned. I've watched all of the C600/SYSBIOS training videos, but they all operate on the notion that you are working with the EVMs and the BSL sample code that comes with it. In terms of what SDK I'm using, originally I wasn't using any SDKs, and was just downloading libraries and packages as needed.

    Since then I have downloaded the C6SDK and tried to link to its set of prebuilt PSP drivers and have also tried linking to PSP drivers that i have built myself. Neither approach has worked. Whenever I try to "#include" one of the library .h's, it instantly knocks all of my available IRAM to 0 and fails to compile. All I've got in my IRAM is SYS/BIOS with a couple of modules, and I doubt that including Uart.h would use up well over 128KB of my L2. I just don't know where I am going wrong and there are no sample CCS projects that I can find which use the uart drivers for me to compare against; there is only the I2C sample project, which I attempted to draw parallels with, but didn't help.

    I have been building my application using CCS5.3, not by command line, just to clear that up. Only thing I've built on the command line are the drivers. For additional clarification, I have successfully built and programmed my chip and gotten it to program and  boot from its SPI flash chip, and have implemented my own GPIO drivers, so I don't have any problems with working with the C6748 itself, or with CCS. My only problem seems to lie with the use of the BIOSPSP drivers.

    Any guidance from here would be appreciated...

    Thanks
    Charles