Hello,
I am using SysBios 6.32.5.54 version on a C6678 processor. I want to use cache and hwi functionality of processor but I am confused on which packets I should use from 'Available Products' view. From a couple of threads on e2e forum and example projects, I see that C64P packet is used under 'BIOS/Target Specific Support'.
Regards,Koray.
Hi Koray,
I think by "packets" you mean "packages". In general, you should use the Cache and Hwi packages under the ti.sysbios.hal package.
In the "available products" GUI, this would correspond to the "Cache" and "Hwi" modules. I used the Cache module from available products and the result is that it brings in the "ti.sysbios.hal.Cache" module into my application (see below screen shot).
The generic modules under the "ti.sysbios.hal" package will "figure out" the correct functionality based on your hardware. This works by calling down into the family specific versions of these modules that are part of the "ti.sysbios.family" package (as you have discovered already).
Having said that, although you should be OK with the generic hal modules, there may be times when you need to access some functionality that is specific to your hardware. In that case, you would want to use the family specific versions of the modules directly.
Koray KorkmazerAlthough there exists sysbios C66 family APIs in the help contents of BIOS, should I use this C64P packet for cache and hwi modules ? If so, why ?
The C66x processor is related to the C64P processor, and shares some common functionality. So, the C66 family uses some of the existing C64P code in order to avoid code duplication.
Koray KorkmazerWhat is the difference between hwi, timer modules of 'Scheduling Packet' and so-called C64p packets ? Which packet should I add for hwi functionality ?
The Timer modules are used for configuring timers. The Hwi module is the one you want for configuring hardware interrupts.
Koray KorkmazerAs far as I know, 'Clock' module uses hw timers. But there also exists 'timer' packet both in Scheduling and C64p packets. What is the functionality of 'timer' packet ?
The Timer modules are used to map actual timer hardware addresses and interrupt numbers to "timer IDs" in software. The Clock module is used to create the system tick for SYS/BIOS and uses the Timer module to drive the system tick.
Hi Steven,
I used Cache module which is in the Memory Management part of the SysBios. It worked with no problem.For using peripheral specific properties of cache(forex: for accessing MAR registers of Cache), you suggested that I must use C64P product in the Target/specific Support because of the similar libraries of C66P and C64P. I think it would be better to rename the C64P product with more generic name such as 'C64P/C66P' for preventing people's minds confusing. Because it is not understanded in the way you described in the Products view of the CCS.
Thanks and Regards,Koray.