We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I have 2 different projects. The first on includes the main function, startup code and a few other functions. The second project includes a few C-files with functions who is called from main. What I want to do is to compile my first project to a object file and then include that in my second project. In that project i want to specify were the different C-files should be placed in the memory. I want to use the flash memory and the following addresses: For the main.obj = 0x10020000 with the size 0x1FFFF For the other C-files = 0x10040000 with the size 0x1FFFF For RAM = 0x20000000 and the size 0xFFFF. Can anyone tell me how to do this? I'm using the RV-MDK for ARM.
Using a scatter file you can specify where object files should be placed. Define seperate sections of flash in the scatter file and place the correct obj file(s) in each one.