Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linker-script]

The tag has no usage guidance.

0
votes
0answers
42 views

LPC2148 EEPROM Emulation

I want to store some calibration and configuration data in lpc2148 flash memory. Also this data must be loaded into ram at startup. When data is changed i will write it into the flash(using IAP). ...
2
votes
2answers
141 views

How does avr-gcc linker know to put the `.data`section at `0x800100` rather than `0x800060`?

Looking at the linker script for my part (ATMEGA168PD), the data region has an origin defined as starting at 0x800060... ...
0
votes
1answer
73 views

stm32f429 flash load address error

I've recently run into this error where openocd wont flash the binary to my discovery board. I'm using the same linker script that i've been using all along. arm-none-eabi-objdump gives the ...
6
votes
1answer
582 views

why trace_printf(“%f”,x); triggers a HARD FAULT on a stm32 MCU?

I'm using a stm32 F413ZH microncontroller with HAL libraries (mainly written to be used with c but can also be used with c++) in eclipse, actually I managed to completely configure eclipse including ...
1
vote
1answer
169 views

ESP8266 and GCC

I think this is more related to GCC rather than ESP8266. I have been trying to put in a constant variable in read only memory section of ESP. The idea is to change the value directly in the binary ...
1
vote
1answer
647 views

Is it necessary to write all MSP430 FLASH writing code should be run from RAM?

I am writing some device parameters to non volatile flash memory of msp430f2619 controller. Sample code shows that function writing to flash should be copied to RAM in initialization section. But I ...
13
votes
3answers
13k views

Flash and RAM : Code Execution

I recently started learning assembly and came to know about linker scripts and other low-level details of hardware programming. I am also teaching myself computer architecture and somewhere along the ...
3
votes
3answers
1k views

Make linker use bank 0 in relocatable mode

I'm tryin to build assembly project with MPASM/MPLINK for PIC16F628A. Microchip advice that it's better to stay on bank 0 and switch whenever you want different bank, and then get back to bank 0 (to ...
4
votes
1answer
532 views

Easiest way to get rid of __clz_tab in winavr compiled code?

I've ported a program from the arduino environment to a makefile build using winavr, which, in turn, is based on avr-gcc (just like arduino). However, my program started crashing, and after some ...
2
votes
1answer
2k views

Porting a linker script from STM32F1 to STM32F2

I am trying to port PyMite from STM32F1 to STM32F2. One of the files that I am assuming must be changed is called stm32f10x.ld. I have looked around for an ...
4
votes
2answers
1k views

Moving the code and interrupt locations in Arduino

I need to be able to choose between two Arduino apps running on an atmega 1280 (megaavr) at boot time. Therefore I need to move one of those apps to a different location in program memory, and I need ...
5
votes
1answer
1k views

Can't get special PIC32 linker section to show up in output file

I am defining a special section for some data that I want to show up at the beginning of my PIC32 binary image, as follows in the SECTIONS part of my elf32pic32mx.ld file: ...