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.

CCS/LAUNCHXL-F28379D: SYS/BIOS and C2000Ware

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I just bought a LAUNCHXL-F28379D and have successfully played around with some bare metal programs. However, my ultimate goal is to implement some RTOS solutions in the near future. I'm totally new to the TI ecosystem, so this is all pretty new to me. I have also successfully installed and played around with some of the SYS/BIOS example programs. However, when I try to add the device header files and try to use them, things go haywire. I was wondering if there are any examples of using SYS/BIOS with these device header files, or even better a workshop or guide on how to create a project and add all of the necessary files/settings.

I'd like to be able to create a task to send some serial data or flash an LED or something so that I can play around a bit. 

  • Byron,

    Thanks for reaching out to the E2E forum. 

    Due to inclement weather in our region, many of our subject matter experts are without power and unable to provide support at this time.  An expert will get back to you as soon as possible but it likely will not be until next week.

    I did some quick searches on the E2E, I'm wondering if this thread is relevant, to CCS showing some pre-existing examples, etc.  I'm not the RTOS expert, but will try and help in the meantime if possible.

    Best,

    Matthew

  • There are a few considerations you need to make when adding the header files to a SYS/BIOS project and start calling the device init functions. I can think of three main ones

    1. SYS/BIOS plugs its Hwi dispatcher into the PIE vector table, so in your application code, you don't want to call any of the functions that initialize the vector table (Interrupt_initVectorTable() for example) since it'll replace the SYS/BIOS configuration.
    2. The SYS/BIOS Boot module by default configures the system clock. If you're calling Device_init() or InitSysCtrl() or some other device support function to set up the clock, you may end up with some clashing configurations. It's best to choose one and disable the other--I'd recommend just using the C2000Ware function, although you'll still need to tell SYS/BIOS what the clock speed is (setting BIOS.cpuFreq.lo in your cfg file).
    3. SYS/BIOS uses some of the CPU timers for its system tick and its time stamp module, so if you're trying to set up a timer in your code, make sure you aren't using one that SYS/BIOS is using already.

    There's a good thread below with a lot of information about using BIOS on a C2000 device:

    If those tips don't help, give me some more detail about in what way things are going wrong.

    Whitney

  • Hi Whitney,

    That helped tremendously, thank you!

    I have marked this as resolved.