Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry point not set in examples #205

Closed
RonanSynnottArm opened this issue Aug 13, 2024 · 2 comments
Closed

Entry point not set in examples #205

RonanSynnottArm opened this issue Aug 13, 2024 · 2 comments
Labels
bug Something isn't working DONE Issue done but not yet closed

Comments

@RonanSynnottArm
Copy link

Have checked dot-product example, but likely applies to other examples.

In the linker options, the entry-point is not set, and so the default C-library entry (__main) is used in the ELF.

Loading into some debuggers (such as uVision) hide this issue, as the starting address is read from the Vector Table.

Other debuggers start from the entry point, meaning that init code is not executed, and the examples do not work correctly (usually manifesting a Hard Fault when the code reaches __fp_init).

Solution is to simply add the following to the linker options:

--entry=Reset_Handler
christophe0606 added a commit that referenced this issue Sep 2, 2024
Entry point missing
Path to FVP
@christophe0606
Copy link
Contributor

I have made fixes into branch https://github.com/ARM-software/CMSIS-DSP/tree/examples

Can you check if it is solving your issues ?

@christophe0606 christophe0606 added the bug Something isn't working label Sep 2, 2024
@RonanSynnottArm
Copy link
Author

Confirmed fixed in dot_product example. Same fix should equally work well with all examples.

christophe0606 added a commit that referenced this issue Sep 2, 2024
* Correct issues #205 and #204

Entry point missing
Path to FVP

* Remove object files from examples

* Update example git ignore.
@christophe0606 christophe0606 added the DONE Issue done but not yet closed label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DONE Issue done but not yet closed
Projects
None yet
Development

No branches or pull requests

2 participants