Topic : Changing "Linker output directory" to Specific does not change where the .elf file goes.

Forum : Ride IDE

Original Post
Post Information Post
March 9, 2016 - 10:59pm
Don Marquardt

I have several versions of my application that I want to build using different project files. I would also like to have the linker output go to a different directory for each version. I am unable to get this to work. For example my "Linker specific output directory" is C:\Users\TnD\Viscount\Bridge\Main_App\FB10, but when I do a build the linker command is 

-----------------------------------------

Running: LD Linker

"C:\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -u _start -u _Minimum_Stack_Size -mcpu=cortex-m3 -mthumb -specs=nano.specs -specs=nosys.specs -Wl,-T -Xlinker "C:\Users\TnD\Viscount\Bridge\Main_App\Obj\FB10_6965.elf.ld" -g3 -Wl,-Map -Xlinker "C:\Users\TnD\Viscount\Bridge\Main_App\List\FB10_6965.map" -N -nostartfiles -Wl,--warn-once

"C:\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-objcopy.exe" "C:\Users\TnD\Viscount\Bridge\Main_App\Obj\FB10_6965.elf" --target=ihex "C:\Users\TnD\Viscount\Bridge\Main_App\Obj\FB10_6965.hex"

"C:\Raisonance\Ride\Bin\rexrdr.exe" "C:\Users\TnD\Viscount\Bridge\Main_App\Obj\FB10_6965.elf.sizetmp" 0 "C:\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-size.exe" "C:\Users\TnD\Viscount\Bridge\Main_App\Obj\FB10_6965.elf"

---------------------------------------------

No where in those commands is the ...\FB10 folder used.

Please help me understand what I am doing worng.

Thanks

Replies
Post Information Post
+1
0
-1
March 10, 2016 - 5:11pm
Etienne Cassin

I confirm the bug.

My colleague is working on the issue.

Best regards,

+1
0
-1
March 17, 2016 - 4:39pm
Don Marquardt

I have been working on a method to get around this problem, but seem to either misunderstand how things work or have found another issue. 

I have created a batch file (BuildBridges.bat) which uses a java script(BuildBridges.js) which operates on a single project, Main_Project.rprj.

There are 8 different version of the code that I want to build using the same source code and changing a define value (using -D) which specifies which hardware version the code will be flashed to

Build starts fine, but after about 13 files, hangs in the Ride7 IDE log display window.

The build continues in the background, executing the script as expected except that the script hangs just as it finishes with a failure window saying "Ride7 IDE has stopped working".

If I put in a objShell.Popup after the build loop with a message saying "Build is finished" I get that message, but still get the failure message.

I have two main functions. The first opens the project, changes the output folder, and adds a define. I then save and close the project. The second functions does a clean, then the build.

The third function will move the build *.hex file to another folder and change its name. If I include this script in the loop, the build process crashes before finishing, usually within the build of the first version. If I put it in it's own loop, then the build crashes as above.

If I load Visual Studio debugger I get...

Unhandled exception at 0x7c159d84 in Ride7.exe: 0xC0000005: Access violation reading location 0x61736944.

I have sent an email with the scripts and source for the project to Ettienne.

Please let me know if you have any other questions.