This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OVERLAY naming conventions

BL51 OVERLAY control examples in appnotes and support docs show the use of Keil's segment naming conventions. An example in the linker manual shows the use of names like we mortals use in our code (i.e., "main", "execute", etc.). An excerpt from my linker control below shows the use of some mixed naming conventions. The linker is doing what I expect as a result, but I'm just wondering if I should be using only the Keil naming convention. Am I getting by using "my" names by sheer luck?

Thanks,

--Dan Henry

OVERLAY (     CoreInit        ~ ( coreReadTask ),     KeyInit         ~ ( keyScanTask ),     RpcInit         ~ ( RpcClientTask,                         RpcServerTask ),     UserInit        ~ ( userTask ),     main            ! ( coreReadTask,                         keyScanTask,                         RpcClientTask,                         RpcServerTask,                         userTask ),     ?CO?__CORECOMM  ~ ( RpcSrvCoreVersion,                         RpcSrvCoreTagRead ),     ?CO?__HOSTCOMM  ~ ( RpcSrvHostVersion,                         RpcSrvHostReset,                         RpcSrvHostEcho,                         RpcSrvHostSysCfgGet,                         RpcSrvHostSysCfgPut,                         RpcSrvHostDisplay,                         RpcSrvHostLogRdCtrl,                         RpcSrvHostLogRdRecs ),     coreReadTask    ~ ( RpcCliHostVersionArgCB ),     .
    .
    .
)

  • Hmm... It displayed fine in the posting preview. Try #2...

    BL51 OVERLAY control examples in appnotes and support docs show the use of Keil's segment naming conventions. An example in the linker manual shows the use of names like we mortals use in our code (i.e., "main", "execute", etc.). An excerpt from my linker control below shows the use of some mixed naming conventions. The linker is doing what I expect as a result, but I'm just wondering if I should be using only the Keil naming convention. Am I getting by using "my" names by sheer luck?

    Thanks,

    --Dan Henry

    OVERLAY (
        CoreInit        ~ ( coreReadTask ),
        KeyInit         ~ ( keyScanTask ),
        RpcInit         ~ ( RpcClientTask,
                            RpcServerTask ),
        UserInit        ~ ( userTask ),
        main            ! ( coreReadTask,
                            keyScanTask,
                            RpcClientTask,
                            RpcServerTask,
                            userTask ),
        ?CO?__CORECOMM  ~ ( RpcSrvCoreVersion,
                            RpcSrvCoreTagRead ),
        ?CO?__HOSTCOMM  ~ ( RpcSrvHostVersion,
                            RpcSrvHostReset,
                            RpcSrvHostEcho,
                            RpcSrvHostSysCfgGet,
                            RpcSrvHostSysCfgPut,
                            RpcSrvHostDisplay,
                            RpcSrvHostLogRdCtrl,
                            RpcSrvHostLogRdRecs ),
        coreReadTask    ~ ( RpcCliHostVersionArgCB ),