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.

WEC7 AM335x - calling DumpAllClockStatus()

Hi everyone

(using Adeneo BSP)

Whilst looking in

C:\WINCE700\platform\common\src\soc\COMMON_TI_V1\AM33X\OAL\PRCM\prcm_clock.c

I see the routines DumpAllClockStatus() and DumpAllClockDomainStatus() which look like they could be useful for getting an overview of what the clocks have been configured to.

The sources file in this directory has the following:-

TARGETNAME=am33x_oal_prcm
TARGETTYPE=LIBRARY

In the driver I'm developing I have the following in my sources file (this driver is a subproject)

SOURCELIBS= \$(SG_OUTPUT_ROOT)\platcomm\$(_TGTPLAT)\lib\$(_TGTCPU)\retail\am33x_oal_prcm.lib 

When I build my driver I get a lot of the following type of errors:-

am33x_oal_prcm.lib(prcm_reset.obj) : error LNK2001: unresolved external symbol dpCurSettings

am33x_oal_prcm.lib(prcm.obj) : error LNK2019: unresolved external symbol OALPAtoVA referenced in function ClearXNBit

 Can anyone offer any advice on this - is what I'm doing actually feasible?

Regards

Terry

  • Managed to do what I wanted which was to call  DumpAllClockStatus() and DumpAllClockDomainStatus() in the prcm_clock file (which print a load of clock settings with RETAILMSG)

    Done this by making a temporary change in OALIoCtlHalGetDeviceId() to call them.

    In my C# app I then call KernelIOControl() with IOCTL_HAL_GET_DEVICEID which calls OALIoCtlHalGetDeviceId().

    Suppose I could have implemented it properly with my own IOCTL_HAL_xx but I only wanted to call these once to get the settings then put it back to how it was.