Custom Template Exception

Sysprogs forums Forums VisualGDB Custom Template Exception

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #13019
    support
    Keymaster

    Hi,

    This should normally be fixed by including the script in the template by adding it to the project before exporting it.

    However previously you have mentioned that you cannot do this because the build system complains. Please provide us the details on any errors you encounter when you try to add the second script before exporting the template.

    #13026
    sidprice
    Participant

    I added the secondary linker script to my reference project and got the following output:

    1>------ Build started: Project: STM32F4_libOpenCM3, Configuration: Debug VisualGDB ------
     1>C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\link.targets(40,2): warning : Multiple linker script files included in the project. None of them will be used in linking. Please exclude mark the unnecessary ones as 'Excluded from build'
     1> Linking VisualGDB/Debug/STM32F4_libOpenCM3...
     1> c:/program files (x86)/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe:libopencm3_stm32f4.ld:43: warning: memory region `rom' not declared
     1> c:/program files (x86)/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe:libopencm3_stm32f4.ld:86: warning: memory region `ram' not declared
     1> ------------------- Memory utilization report -------------------
     1> Used FLASH: 0 bytes out of 512KB (0%) [-660]
     1> Used RAM: 0 bytes out of 128KB (0%)
     ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

     

    • This reply was modified 7 years, 1 month ago by support. Reason: formatting
    #13031
    support
    Keymaster

    Hi,

    The warning message is actually legitimate: you have included multiple .ld files in your project, but didn’t specify via VisualGDB Project Properties which one is the main one. VisualGDB arbitrarily guesses the first one (and guesses it wrong).

    Please specify the linker script explicitly via VisualGDB Project Properties or change the file type of the unused linker script to “Does not participate in build”:

    Attachments:
    You must be logged in to view attached files.
    #13033
    sidprice
    Participant

    Thank you, this solved the build issue with the reference project and I was able to create a project using the generated template.

     

    Please ignore the attached file, it was uploaded in error.

    Sid

     

    • This reply was modified 7 years, 1 month ago by sidprice.
    • This reply was modified 7 years, 1 month ago by sidprice.
    Attachments:
    You must be logged in to view attached files.
    #13043
    sidprice
    Participant

    One small issue that could be improved upon.

    Note in my last post I uploaded a screen shot. I did this because when I tried to make a project using my template I was told to select a tool chain, even though the wizard had selected the right one. The screen shot shows that.

    I found that if I selected another toolchain then went back to the correct one the error went away, I did not realize this was the case so I changed my post to say it was working.

    This morning I tried the wizard again and got the same effect, it was resolved using the procedure I just described.

    Not a huge problem but one that may confuse others.

    Thanks,

    Sid

    #13077
    support
    Keymaster

    Hi,

    Sorry for the delayed reply. We have tried reproducing this with different toolchains and device settings, but could not get any similar behavior. Please ensure that you are using the latest VisualGDB 5.3R6. Please also feel free to share your template file with us. As it looks like a VisualGDB bug, we will be happy to fix it if we can reproduce the problem on our side.

    #13138
    sidprice
    Participant

    My turn to be slow responding. Attached is the custom template for your testing.

    Sid

    #13139
    sidprice
    Participant

    Once again your server rejected my file …

    Attachments:
    You must be logged in to view attached files.
    #13141
    support
    Keymaster

    Hi,

    Thanks, we have tried reproducing this with your template file, but unfortunately could not get anything similar. Most likely the problem is caused by some combination of installed/referenced toolchain versions. If this is too annoying, we can add extra diagnostic logging to the logic responsible for the toolchain selection, so it will explain what is causing this with your setup. Let us know if you would like to try it out.

    #13201
    sidprice
    Participant

    Thanks, it is annoying but not a show stopper. I would be happy to work with you to trace the issue if you would like,

    Sid

    #13261
    support
    Keymaster

    Hi,

    No problem, please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.3.17.1957.msi

    It will show detailed information on toolchain selection logic via View->Other Windows->VisualGDB Diagnostics Console. Please share the output from that window and we should be able to fix this.

Viewing 11 posts - 16 through 26 (of 26 total)
  • You must be logged in to reply to this topic.