Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


syscalls.c:135: undefined reference to `end'

Hi all,
I’m run a project that use printf with:
Eclipse IDE for C/C++ Developers
Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500

If I add -u _printf_float to linker flags I’ve error from compiler: (to print floating)

Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -specs=nosys.specs -specs=nano.specs -u _printf_float -T”../STM32F401RETx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “NucleoF401RE_53L1_Expansion.elf” @”objects.list” -lm
Application/SW4STM32/syscalls.o: In function `_sbrk’:
C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Projects/STM32F401RE-Nucleo/Examples/53L1A1/SimpleRanging/SW4STM32/syscalls.c:135: undefined reference to `end’
collect2.exe: error: ld returned 1 exit status
makefile:37: recipe for target ‘NucleoF401RE_53L1_Expansion.elf’ failed
make: *** NucleoF401RE_53L1_Expansion.elf Error 1

If I don’t add -u _printf_float to linker flags it compile with no errors:
make all
Building target: NucleoF401RE_53L1_Expansion.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -specs=nosys.specs -specs=nano.specs -T”../STM32F401RETx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “NucleoF401RE_53L1_Expansion.elf” @”objects.list” -lm
Finished building target: NucleoF401RE_53L1_Expansion.elf

make --no-print-directory post-build
Generating hex and Printing size information:
arm-none-eabi-objcopy -O ihex “NucleoF401RE_53L1_Expansion.elf” “NucleoF401RE_53L1_Expansion.hex”
arm-none-eabi-size “NucleoF401RE_53L1_Expansion.elf”
text data bss dec hex filename
8 0 0 8 8 NucleoF401RE_53L1_Expansion.elf

 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs