Skip to content

Use image_files map instead of symbol_files to find executable for Load+Run on FVP#98

Merged
jkrech merged 1 commit into
Open-CMSIS-Pack:mainfrom
VladimirUmek:fvp_image_files
Mar 4, 2026
Merged

Use image_files map instead of symbol_files to find executable for Load+Run on FVP#98
jkrech merged 1 commit into
Open-CMSIS-Pack:mainfrom
VladimirUmek:fvp_image_files

Conversation

@VladimirUmek
Copy link
Copy Markdown
Contributor

No description provided.

@VladimirUmek
Copy link
Copy Markdown
Contributor Author

This causes that hex image is used instead of axf to load application to FVP model.

@jkrech jkrech requested a review from JonatanAntoni March 4, 2026 14:05
@jkrech
Copy link
Copy Markdown
Member

jkrech commented Mar 4, 2026

What if no hex file is present? Is then axf used?

@JonatanAntoni
Copy link
Copy Markdown
Member

JonatanAntoni commented Mar 4, 2026

image_files is the list of all files marked as image or image+symbol in .cbuild-run.yml (https://open-cmsis-pack.github.io/cmsis-toolbox/YML-Input-Format/#load)

I guess .axf files are just .elf files and default to image+symbol if not configured differently.

However, I have never tried to load .hex files into a model.

@VladimirUmek
Copy link
Copy Markdown
Contributor Author

Ah, sorry for my too brief comment. @jreineckearm and @RobertRostohar were also looking at this and know the context. I expected to mark them to review this PR but I don't have permissions to select reviewers.

Anyway, Jonatan explained the end effect.

In practice, currently, if there is only axf selected, axf gets loaded, if there is only hex, hex gets loaded. If there are both, hex gets loaded.

@jreineckearm
Copy link
Copy Markdown
Collaborator

Correct, discussed this with @RobertRostohar yesterday and he demonstrated the effect by modifying the templates in an installation.
Problem was again AC6 build output specifics around load/execution regions which caused the model to zero-initialize a huge range of memory (beyond what's defined for the target). The model uses a similar approach as GDB for loading.

Selecting image_files for the Run task fixes that. A debugger would then load the symbol_files.
See https://github.com/Open-CMSIS-Pack/debug-adapter-registry/blob/main/templates/JLink.adapter.json and https://github.com/Open-CMSIS-Pack/debug-adapter-registry/blob/main/templates/CMSIS-DAP-pyOCD.adapter.json which follow the same approach.

One thought coming to mind only now: are we using any FVP plugins that require debug symbols to be loaded into the model?

@jkrech
Copy link
Copy Markdown
Member

jkrech commented Mar 4, 2026

I am not aware of any FVP plug-in we are using beyond the ones included

  • CDELoader
  • GenericTrace
  • ListTraceSources
  • TarmacTrace

I think we are find for now.

@jreineckearm
Copy link
Copy Markdown
Collaborator

Thanks for the reply. Agreed. Especially since it then "simply" is a matter of marking the files as needed if deviating from the default.

@jkrech jkrech merged commit 2817d21 into Open-CMSIS-Pack:main Mar 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants