Other Parts Discussed in Thread: HALCOGEN
Hi Everyone.
I read some posts about the PIL setup for RM48 and TMS570, the instructions for installation and customization, and still not clear the understanding of how should I proced in such a situation where my device target is a RM42L432PZ. My issues are: why the al the functions and folders name refer to RM48? Does the RM48 include all ARM Cortex-R Processors? Should I worry about it?
Another doudt is, Have I just make the customizations below or I'm suposed to target my device like the example on Targetting a TMS570? If are just the customization What directories I should change in step 1?
I have the Mathworks licenses required and already make the setup changes.
Customizing the Device Initialization Code
If you wish to make changes to the device initialization code, (e.x. flash wait states, CPU clock frequency) then you might do the following:
-
- Change directories to TARGETDIR\src
- Make a copy of the TI_HERCULES_RM48PilSerial folder,
ex. copyfile('TI_HERCULES_RM48PilSerial\*','MY_HERCULES') - Enter the HalCoGen Folder:
ex. cd('MY_HERCULES\halcogen') - Rename the HalCoGen .hcg) file,
ex. movefile(TI_HERCULES_RM48HDK_PilSerial.hcg','MY_HERCULES.hcg') - Rename the HalCoGen .dil file,
ex. movefile(TI_HERCULES_RM48HDK_PilSerial.dil','MY_HERCULES.dil') - Open the MY_HERCULES.hcg file in HalCoGen
ex. winopen('MY_HERCULES.hcg') - Make any changes you need to make. For example, you might want to change the operating frequency and wait states of the device to profile under a different set of conditions
- When your edits are done, use HalCoGen to re-generate the files in the source and include folders.
- Modify TARGETDIR\+TI_HERCULES_RM48Pil\TargetApplicationFramework.m to use the HalCoGen sources from your MY_HERCULES\halcogen folder instead of the default locations. This last step can be done simply by changing the definitions of 'sourcepath' and 'includepath' in the 'addHalCoGenSources' local function.
sourcepath = fullfile(TI_TMS570_TARGETDIR, ...
'src', ...
'MY_HERCULES', ...
'halcogen', ...
'source');
includepath = fullfile(TI_TMS570_TARGETDIR, ...
'src', ...
'MY_HERCULES', ...
'halcogen', ...
'include');
- Change the variable TARGET_SOURCE in the file TARGETDIR\utils\
TI_HERCULES_RM48_toolchain.m to reference your MY_HERCULES folder.TARGET_SOURCE = fullfile(TI_HERCULES_RM48_TARGETDIR, ...
'src', ...
'MY_HERCULES');