I downloaded FreeRTOS source code and examples from link text (branch colibri-vf61-m4-freertos-v8) and, following this suggestion from Stefan I tried to create the DS-5 project files for the demo_apps for vf6xx_colibri_m4 starting from the corresponding ones for i.MX7
I worked on hello_world application, but I didn’t have success: with the attached DS-5 projects I get the following errors
L6200E: Symbol ccm_ccgr_offset multiply defined (by ccm_vf6xx.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by event_groups.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by heap_2.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by list.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by main.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by port.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by queue.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by tasks.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol ccm_ccgr_offset multiply defined (by timers.o and croutine.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol iomux_gpio_pad_addr multiply defined (by gpio_vf6xx.o and pin_mux.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
L6200E: Symbol iomux_gpio_pad_addr multiply defined (by main.o and pin_mux.o). hello_world_vf6xx_colibri_m4 C/C++ Problem
Could you tell me how to modify the DS-5 project files so that they compile for VF61 in DS-5?link text
The issue seems some variables are multiple times defined. In order to remove this error, please move the variable definition in the header file to the C source code and declare it as extern in the header file. This will solve the build error.
Please let us know if you need any help regarding this.
Hi @raja.tx,
you’re right and the issue is related to variables defined multiple times (i.e. defined in a header file).
This is not related to DS-5, and so I don’t understand how you compiled this example with your IDE/compiler (whatever it is).
Could you clarify, please?
In the default cmake configuration of the example projects –allow-multiple-definition (-z muldefs) LD flag is set, that is the reason compiler allowed multiple definitions and only the first definition will be used.
Toradex modified the supplied source files on April, 6th 2017 moving the variable definition in the header file to the C source code and declaring it as extern in the header file.
Now the FreeRTOS examples can be compiled with DS-5 too.
Hi @vix,
it’s been a while since your post, but I am struggling with the same problem you have. I was able to copy the project from the imx7 source files, but I am struggling adjusting the files, such that the project can compile without errors. Therefore I wanted to ask you if you would share one of the examples you got to compile and debug with the colibri vf61 and DS-5?
Best regards,
Janine
You can download DS-5 projects from my first message in this topic, and use them with the up-to-date samples in colibri-vf61-m4-freertos-v8 branch.
Everything should work.
Hi @jaski.tx,
Thank you for your reply. Yes, this issue is solved, my linker file was not correct.
However, I ran into a new issue but as it has litte to do with the above topic I opened a new question link text.
I also got this Linker error, because for VF6xx there is no correspondent scatter-file for Linker, like MCIMX7D_M4_tcm.scf for i.MX7.
I tried to use your “startup-file” but this error remains.
How did you resolve this error?
Which scatter-file did you use for VF6xx project?