Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
47 views

Is there a way to add Local Symbol names in the ELF file by adding debug flags to the arm-none-eabi-gcc compiler?

I am able to view the global symbols such as functions, global/static variables in the final built executable in elf file. I am looking for compilation flags that can add the local variable names into ...
Ranjith Kumar's user avatar
0 votes
0 answers
47 views

Why veneer code generated by gcc for cortex-m0 seems 8-byte aligned?

The interesting observation I made recently while using GCC to compile for a Cortex M0 is that the veneer code generated in my project appears to be aligned to 8-byte boundaries. Slightly modify the ...
mzhou's user avatar
  • 11
4 votes
1 answer
285 views

STM32L151 fails to copy data segment from flash to SRAM

Been having a very weird issue with a specific build of a FW. When booting the device, I can see that SRAM isn't being filled with the data I'd expect, this should happen in the entry point function ...
kruml's user avatar
  • 43
0 votes
1 answer
700 views

IAR equivalent symbol to __bss_end__

I want to know where is the end of my static data in RAM of Cortex-M. GCC CMSIS linker scripts provide a symbol for __bss_end__ and I simply take its address. Is there an IAR equivalent? Or do I have ...
filo's user avatar
  • 251
0 votes
1 answer
424 views

ARM Linker error message "no source files - nothing to do", does not find existing symbols in library?

I am using a TMSp320F2888D from TI which feature an ARM Cortex processor. For some reason I am unable to build my project in Eclipse anymore even after resetting my code to an earlier commit. When I ...
Mantabit's user avatar
  • 279
3 votes
2 answers
527 views

Cortex-M0+ dual application/image linking

For most products, we implement a bootloader+application approach which uses an external SPI flash for storing different application versions. Upon startup, the bootloader checks if a new image is ...
bam's user avatar
  • 984
0 votes
1 answer
52 views

Linker - Data constants replaced by garbage

I'm trying to integrate some third-party library to my project. I compile all my files with no problems, but when i try to add custom library, all constants in this library becomes garbage. Here is my ...
NevaDA's user avatar
  • 148
1 vote
1 answer
216 views

How do I find undefined functions and add/link them as external functions?

I'm new to IAR workbenches in general (and EWARM to be precise), so I have a couple of potentially silly questions. For starters, here's what I actually want to do and the questions aroused: I need ...
asymmetriq's user avatar
1 vote
0 answers
836 views

gcc linker, how to declare a region between HEAP and STACK, put a variable there to detect overflow (hard fault issue on Cortex M3)?

I am working on a Silabs ARm Cortex M3 (EFM32PG12) I want to declare a linker section XXX between heap and stack, put a variable there and see later on (hardware fault topic) if this variable gets ...
yo3hcv's user avatar
  • 1,609
0 votes
1 answer
1k views

Compile single static library for Cortex M3, M4, M23 and M33

I'm currently working on a rather generic communication stack. It gets bytes in on one end, parses the packet and calls a callback. I want to have this stack in a static library (i.e. libcommstack.a). ...
Arno Moonen's user avatar
  • 1,184
1 vote
1 answer
8k views

How can I solve "Linker Section Placement Error" in IAR

I am trying to run some basic Ethernet applications (via lwIP) on an ARM Cortex M3 which is on board a M2S150 Development kit and have run into an issue I don't understand: Error[Lp011]: section ...
EpicFoodCartDestroyer's user avatar
0 votes
1 answer
2k views

Cortex-M3 (EFM32GG) - ARM-GCC Linker Flags for Newlib-Nano

I analyzed a project generated by Simplicity Studio (Eclipse IDE variation of Silicon Labs for their Microcontrollers). I used the default setup for a ASM/C/C++ project based on the arm-none-eabi-gcc ...
user654789384's user avatar
0 votes
1 answer
1k views

ARM Cortex-M7 GCC Linker error Relocation truncated to fit R_ARM_PREL31 when trying to place some files in another memory section

Good day everyone. I have a large project for STM32H747XI and there is many of code files that could not be placed into main FLASH memory region so I'm trying to place it on external QSPI flash. So I ...
Maksym Naumchuk's user avatar
2 votes
1 answer
752 views

How does ARM MCU find my relocated vector table?

I'm using an NXP Kinetis K64 ARM Cortex M4 MCU. I successfully altered the linker configuration file to move my vector table to address 0x8000 (instead of the 0x0000 default). When I tell the ...
kackle123's user avatar
  • 301
1 vote
1 answer
378 views

Mapping external memory device

I am using the GCC toolchain and the ARM Cortex-M0 uC. I would like to ask if it is possible to define a space in the linker so that the reading and writing operations would call the external device ...
Rafalf's user avatar
  • 21

15 30 50 per page