This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Missing ResetISR when importing Energia sketch

Other Parts Discussed in Thread: ENERGIA

I am trying to import the very simple Blink sketch from Energia. The documentation doesn't seem to be up to CCSv6.1 in a couple of probably minor issues: the .iso file is not converted to .cpp, and the menu to import the Energia sketch is slightly different. The program compiles without messages until it gets to the linker. I get this message:

c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol ResetISR; defaulting to 00000000

Other problems with ResetISR seemed to be based on the wrong entry point. This message appears to indicate that ResetISR is nowhere to be found.

Thank you for any advice.

Pedro

  • Pedro Restrepo said:

    I get this message:

    c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol ResetISR; defaulting to 00000000

    Which version of Energia are you using? And which target device/board do you choose during import? 

    I can build the Blink example for tm4c123 without any errors. As part of the build it links in a core library which resolves symbol definition for ResetISR.

    Can you provide more details about the device you are working with, and the full output of the CCS build console?

  • Hello AartiG. Thank you for your response. I am using the TM4C123G launchpad, and Energia 0101E0015. I'll provide the full output of the build console this afternoon once I come home.

    Also, trying other examples (Servo, for instance), it does not recognize some of the interrupt calls. But let's take one step at a time, because they may be related.

    Thanks again,

    Pedro

  • Hello Aartig,

    It may very well be that it is missing a core library, but I have no clue which one it would be. The "Import Energia Libraries" doesn't have an obvious option.

    Here is the output from the build:


    **** Build of configuration Debug for project Blink ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: Blink.cpp'
    'Invoking: GNU Compiler'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fno-exceptions -DF_CPU=80000000L -DARDUINO=101 -DENERGIA=13 -I"C:/Users/pjr/Documents/energia-0101E0015/hardware/lm4f/cores/lm4f" -I"C:/Users/pjr/Documents/energia-0101E0015/hardware/lm4f/variants/stellarpad" -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"C:/Users/pjr/workspace_v6_1/Blink" -Os -ffunction-sections -fdata-sections -fsingle-precision-constant -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"Blink.d" -MT"Blink.d" -fno-rtti -o"Blink.o" "Blink.cpp"
    'Finished building: Blink.cpp'
    ' '
    'Building target: Blink.out'
    'Invoking: GNU Linker'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc.exe" -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fno-exceptions -DF_CPU=80000000L -DARDUINO=101 -DENERGIA=13 -Os -ffunction-sections -fdata-sections -fsingle-precision-constant -g -gdwarf-3 -gstrict-dwarf -Wall --entry ResetISR -nostartfiles -nostdlib -Wl,--gc-sections -L"C:/Users/pjr/workspace_v6_1/lptm4c1230c3pm_core/Debug" -o"Blink.out" "./Blink.o" -Wl,--start-group -Wl,-T"C:/Users/pjr/Documents/energia-0101E0015/hardware/lm4f/cores/lm4f/lm4fcpp_blizzard.ld" -l"lptm4c1230c3pm_core" -l"m" -l"c" -l"gcc" -Wl,--end-group
    c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol ResetISR; defaulting to 00000000
    'Finished building target: Blink.out'
    ' '
    'Invoking: GNU Objcopy Utility'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-objcopy.exe" -O binary "Blink.out" "Blink.bin"
    'Finished building: Blink.bin'
    ' '

    **** Build Finished ****

    Thanks again for your help.

    Pedro

  • Pedro Restrepo said:
    It may very well be that it is missing a core library, but I have no clue which one it would be.

    When I import Blink example, it also imports lptm4c1230c3pm_core project. This project has the source file startup_gcc.c which defines ResetISR.
    Do you see this project in your workspace?

    Since lptm4c1230c3pm_core is set up as a dependency for Blink, it will get built first when you build Blink and generate the appropriate library to be passed to the linker. Your command line appears correct and same as mine (you can see the -l"lptm4c1230c3pm_core" passed to the linker), but the key is whether the library exists in the folder C:/Users/pjr/workspace_v6_1/lptm4c1230c3pm_core/Debug or not. That library should get created when the lptm4c1230c3pm_core project is built.

  • Again, I really appreciate your help

    I think you are on the right track. There is a project with the name lptm4c1230c3pm_core in my workspace. there is also a library (assuming the .a indicates a library under the C:/Users/pjr/workspace_v6_1/lptm4c1230c3pm_core/Debug directory. However, when I tried do re-import Blink (after deleting both the Blink AND lptm4c1230c3pm_core projects (deleting the files as well), I get the following error:

    See details below... 
      Error: Could not save the project location for 'lptm4c1230c3pm_core'.
        Could not save the project location for 'lptm4c1230c3pm_core'.
        C:\Users\pjr\workspace_v6_1\.metadata\.plugins\org.eclipse.core.resources\.projects\lptm4c1230c3pm_core\.location (Access is denied)
    The file, however, IS created under the .location directory.

    So, it seems that there is a problem with permissions in Windows. All the files under the .location directory appear as read only. I wonder if there is one file that links Blink with lptm4c1230c3pm_core that can't be written. I actually changed the permission as read/write, re-imported but no change.

    Any suggestions as what to try?

    Thanks,

    Pedro

  • Aartig,

    I created a brand-new workspace, imported Blink and that solved the problem. I don't know what it originally was, but, most likely, it was something I had done previously "out of sync"

    Again, thank you very much for your help.

    Pedro