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.

DIOLib for ccsv4

What's the timeline for re-issuing/updating(the documentation) for the DIOLib for ccs4?

Also, I'm curious why the DIOLib examples don't use DSP/BIOS? (Is that any indication on the "state" of DSP/BIOS?)

It would be really nice to have an up-to-date (and documented) set of examples that showcase the C6000 Multi-core DSP family:

DIOLib, NDK, CSL, DSP/BIOS v6, ccsv4 that all work together. Currently, every step is a struggle (... am I venting?)

  • DIOlib is an example/reference code of DIO operation in some scenarios, and it is old therefore the legacy of CCS v3.3 and BIOS 5 (diolib was created much earlier than ccsv4 and has been provided to mass markets as reference), it is not meant to exemplify use of BIOS or as an endorsement of the state of BIOS. Some DIO lib examples can be built for BIOS 5 by enabling OS_SUPPORT definition in test project (library itself is independent) but you may have to make some additional changes (test\tools\cslUtils.c) as this hasn't been well tested (you may need to stub out rapidioMqt). A few porting changes will be required to bring up BIOS 6, the BIOS code is mostly for Hwi. Your frustration is well understood and what you have requested is reasonable. As we work towards addressing the kind of things you are bring up, I would suggest not to wait for updates from us (TI), we will continue to support your specific concerns as you bring up your software, please continue to post specific problems on this forum, including documentation problems. Of course, we ask for your patience and encourage you to go through the BIOS documents and BIOS examples and also search forums. You can import an existing ccs 3.3 project fairly easily on ccsv4 using project import, even with bios 5 and then take the step to move to bios 6 (for which you can refer to BIOS 5 to 6 migration guide as well as BIOS 6 API documentation). As far as I know, CSL should not have any dependency on OS and therefore if you want to try any of its examples on ccsv4, you can use the import 3.3 project option and it should port. If you are in contact with a TI sales/FAE person, can you ask them to contact me(Piyush Patel)?.. Thanks.

  • Hi

    Below are a couple changes you will have to make to the DIO_intSetup() routine.

    As Piyush said, there are not a lot of changes to run on BIOS 6.

    Cheers

           #ifdef USE_BIOS_6  
            hwiParms.arg = 0;
            hwiParms.enableInt = FALSE;
            
    Hwi_create(DIO_DST0_INT, (Hwi_FuncPtr)Srio_dbellIsr, &hwiParms, NULL);
            
    Hwi_create(DIO_DST1_INT, (Hwi_FuncPtr)Srio_lsuIsr, &hwiParms, NULL);
            
    Hwi_create(DIO_EDMA_INT, (Hwi_FuncPtr)Srio_edmaIsr, &hwiParms, NULL);
            
    #else
            
    /* Plug ISRs into BIOS dispatcher */
            
    HWI_dispatchPlug(DIO_DST0_INT, (Fxn)Srio_dbellIsr, -1, &hwiAttrs);
            
    HWI_dispatchPlug(DIO_DST1_INT, (Fxn)srio_lsuIsr, -1, &hwiAttrs);
            
    HWI_dispatchPlug(DIO_EDMA_INT, (Fxn)Srio_edmaIsr, -1, &hwiAttrs);
            
    #endif