System Workbench for STM32

You are viewing a reply to #include in linker script  

#include in linker script

I finally found out how to proceed, I explain it for those who are interested :

You just have to follow the explanation number 3) of Giuseppe Guerrini on this thread with few modifications :


For b) I saved the script as linker_temp.c (you can either save it as linker_temp.ld)

For 3) c) go to Project > Properties > C/C++ Build > Settings > Build Steps and write the following command on Pre-build steps > Command :

arm-none-eabi-gcc -P -E ..\linker_temp.c -o ..\STM32F411RETx_FLASH.ld

See the picture attached.

Change the name of your input and output file (linker_temp.c and STM32F411RETx_FLASH.ld for me) according to your project.
And pay attention to the path of each file, even inside the linker_temp file when including your header file.



Newest Forum Posts

  1. Write option bytes by Just1M, 2019-04-24 11:34
  2. Write option bytes by ihouses, 2019-04-24 08:26
  3. Update vs. install version discrepency by christelle.burguera, 2019-04-23 10:06
  4. Variables by anthony@churchillnavigation.com, 2019-04-22 16:52
  5. Symbol 'SysTick_IRQn' could not be resolved by bart@engine27.be, 2019-04-22 12:56
  6. Update vs. install version discrepency by gbabecki, 2019-04-19 19:41
  7. failed to install drivers while tried to install STM32 workbench on windows 8.1 pro by saidattu32, 2019-04-19 19:13
  8. STemWin Trainning Video - Can't find lab file by agiles chroms, 2019-04-19 18:53
  9. System Workbench for STM32 v2.9.0 release by vionf, 2019-04-19 10:06
  10. Update vs. install version discrepency by dautrevaux, 2019-04-19 08:45

Last-Modified Blogs