Post Go back to editing

Why the ldf is always regenerated every time I open CCES

I have a work space with two projects for BF609 core0 and core1 respectively. The ldf files for core0 and core1 are modified to add application sections. Every time when I open CCES (2.2.0), the ldf for core1 is regenerated, and I have to add the sections again and again. At the same time, ldf for core0 keeps what I have modified. Why the ldf for core1 is always regenerated?

  • Hi,


    When importing a previous version of CCES project to new version of CCES, Changing Tools Settings and/or Startup Code/LDF configuration UI options will have the effect of re-generating the Startup Code/LDF source files in your project which may lead to create the file wrongly.

    so please try importing a project without modifying LDF by selecting "No" when the dialog appears asking to regenerated the LDF.

    Also if you open or import a project and the Startup Code/LDF schema number(s) found in the project's system.svc configuration differ from the schema number(s) specified in the underlying XML templates (e.g. System\SourceGenerators\LDFGen\SHARC), then the Startup Code/LDF Add-in will re-generate its source file(s).

    This ensures that you're using the latest Startup Code and LDF updates - new memory segments or output sections may have been added or removed, or a hardware anomaly workaround applied to the generated source file(s).

    When the source file(s) are re-generated, you will see an Informational message in the Problems View.

    The updated schema number is stored in the system.svc and the next time you open or import your project, the Startup Code/LDF Add-in knows that it does not need to re-generate its source file(s)

    Another time when the Startup Code/LDF Add-in will re-generate its source file(s) is after you change a project Tools Setting that requires an update to an LDF (e.g. -eh -rtti).
    The Startup Code/LDF Add-in will detect the Tools Setting change and re-generate its source file(s).

    And lastly, if you modify the Startup Code/LDF configuration and click Save, just as you would do for the other Add-ins

    Is it that you're trying to use a custom LDF at Link time? If so There is an entry box in Tools Settings: Linker: General called "Custom LDF (-T)". You can use it to specify a customized LDF.

    Regards,
    Kader

  • Hi Kader,

    Thank you for the information.

    I compared the system.svc files for core0 and core1 and removed a line <property name="use_user_mod_ldf" value="false"/> from that for core1. But the problem is not solved. Then I found this "problem" reported after CCES is opened:

    Startup Code/LDF source file framework_p0_Core1_basiccrt.s doesn't exist. Startup Code/LDF files used in project adrp_framework_p0_core1 have been regenerated.

    Actually, framework_p0_Core1_basiccrt.s exists as well as all the other files in this folder. All of these files in system\startup_ldf are regenerated every time I open CCES. Because only ldf affects the project building, so I only bewared it. I tried open CCES and close it without any other actions, and found all of these files are regenerated again after I re-open CCES.

  • Hi,


    Can you please share the complete test project and step by step procedure to simulate this issue so that we can assist you better.

    Best Regards,

    Kader

  • Hi Harry,

    CCES 2.2.0 will be attempting to update your LDF to include a new change. I don't recall what the update is in CCES 2.2.0 but it may be a worthwhile fix that you may benefit from.

    Therefore, if you can may your section modification in the user modifiable sections of the LDF then these will be retained after regeneration of new files. The user modifiable areas are those bounded by comments containing those funny $VDSG tags you'l see throughout the Startup/LDF generated files.

    If you want to disable CCES from updating your LDF files then use the system.svc configuration editor to remove "Startup Code/LDF" addin and on the page that you do this select the option to retain the generated files in your project. Once you do the startup_ldf files will no longer be regenerated by CCES.

    Regards,

    Stuart.

  • This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin