[SOLVED] cannot find entry symbol reset_handler...

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] cannot find entry symbol reset_handler...

    Wanted to give a quick go at the Embedded Studio.

    Created an iMX7/M4 project, with default hello_world. Modified nothing, pressed build. Gives me : cannot find entry symbol reset_handler; not setting start address.
    Log says Build failed.



    Source Code

    1. /opt/SEGGER/embedded_studio_330/gcc/arm-none-eabi/bin/ld -X -ereset_handler --omagic -defsym=__vfprintf=__vfprintf_int_nwp -defsym=__vfscanf=__vfscanf_int --fatal-warnings -EL --gc-sections "-T/home/xxx/Documents/SEGGER Embedded Studio Projects/test_1/Output/test_1 Debug Internal/Obj/test_1.ld" -Map "Output/Debug Internal/Exe/test_1.map" -u_vectors -o "Output/Debug Internal/Exe/test_1.elf" --emit-relocs "@/home/xxx/Documents/SEGGER Embedded Studio Projects/test_1/Output/test_1 Debug Internal/Obj/test_1.ind"


    Tried to change that to Reset_Handler ( based on startup_ARMCM_GCC.S, as provided), no luck..

    Whats the quickest way to try out ES with iMX7 M4.. ? A ready working project .
    :S
  • Hello,

    Thank you for your inquiry.
    We were not able to reproduce that behaviour.
    Attached is the project that came out of the default project wizard for the imx7d5_m4.
    Does that build on your machine?
    What OS are you using?
    How did you proceed exactly when using the project wizard?

    Best regards,
    Nino
    Files
    • IMX7_New.zip

      (121.98 kB, downloaded 449 times, last: )
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello,

    I'm using the best OS - Linux. (Fedora flava). :thumbsup:

    I will double check on my steps, but I'm quite convinced I'm not dreaming of it's giving me that error.

    Is your attached example from Linux version of your IDE?
  • Hello,

    The example was created on Ubuntu 16.04 with ES 3.30

    Fedora does generally work as well.
    What Fedora version did you use in particular?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Fedora 24.

    Screenshot of failed build attached.
    Also, attached export solution file .. (i'm not familiar with those on ES, but hopefully contains project setup).

    Also, I've downloaded your solution file, and the project builds. I don't understand why, I checked the target is same, and the example seems same.

    Which version of ES you using, and which 'project template' do you select when creating the project? I selected "A C/C++ executable for Cortex-M processor (internal tools and external GNU tools)",
    and I think you chose "A C/C++ executable for Cortex-M processor". I've tried that, and then I can reproduce what you said, successful build.

    If I look into Help of ES, "external" means, not built by ES internal build process. (like external cmake or smth..?) (Btw, "internal" build process uses GCC & GNU make, is that correct?)
    Also note in my tests I'm testing build "Debug Internal" configuration, so that should be == as the other template / one that builds (one you used I presume?)

    (Sorry for multiple edits of my reply..)
    Images
    • sigger_es_imx7dm4_prj_build_error.png

      151.86 kB, 1,919×961, viewed 1,293 times
    Files

    The post was edited 5 times, last by v01d ().

  • Hello,

    How exactly did you proceed step by step when creating the project?
    From the file your provided all solution settings are missing.
    Attached is the project when i do the following:
    File->New Project->Create the project in a new solution->A C/C++ executable for ARM/CortexA/R-processor (internal tools and external GNU tools)->MCIMX7D5_M4->here you can now define an external toolchain you want to use, for my example I simply pressed next without changing anything->Next->Next->Finish

    Now "Debug External" is selected by default. In my case this did not build as I entered a wrong path for an external toolchain.
    Switch that setting to "Debug Internal".
    Now you should be able to build.

    How does the project look like when you follow the steps i provided?
    If it still does not build could you zip up your project folder (not emarchive to make sure no data is lost)?

    Best regards,
    Nino
    Files
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Ah, thats what I did different: I've removed some project configurations I thought of no use ... See the picture attached.
    Project attached too.
    Images
    • segger_es_imx7m4_buildcfgselect_forfailed_build.png

      96.17 kB, 1,905×925, viewed 1,512 times
    Files
    • test_1.7z

      (39.34 kB, downloaded 449 times, last: )
  • Hi,

    Ok this makes much more sense now :D
    Generally we recommend leaving the default config as it is and only change what is really necessary during developement.
    As the original question is answered we will consider this case as closed now.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.