Hello?
file memmap.ld
and makefile Good luck!!
file memmap.ld
Code:
MEMORY{ flash (rx) : ORIGIN = 0x10000000, LENGTH = 2048k ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00080000}/* heap is just after bss section */__HEAP_SIZE = 64K;STACK_SIZE = 0x4000;/* this is to eliminate RWX permission error for text segment */PHDRS{ text PT_LOAD FLAGS(5); data PT_LOAD FLAGS(6); bss PT_LOAD FLAGS(6);}/* Section Definitions */SECTIONS{ .text : { /* KEEP(*(.vectors .vectors.*)) pour simplifier */ *(.text*) *(.rodata*) } > flash :text . = ALIGN(4); _debutFlashData = . ; .data : { _debutRamData = . ; . = ALIGN(2); *(.data*); } > ram AT >flash :data /* .bss section which is used for uninitialized data */ . = ALIGN(4); _debutRamBss = . ; .bss (NOLOAD) : { *(.bss*) *(COMMON) } > ram :bss _finRamBss = . ; /* heap starts after bss and grows bottom up */ .heap (COPY) : { . = ALIGN(4); _debutHeap = . ; . = . + __HEAP_SIZE; . = ALIGN(4); __HeapLimit = .; /* used for checking stack/heap overflow */ end = .; /* used by NEWLIB */ } > ram /* stack section */ .stack (NOLOAD): { . = ALIGN(8); . = . + STACK_SIZE; _stack = .; . = ALIGN(8); } > ram _end = . ;}Code:
ARMGNU ?= C:\PrincipalA\Outils\tools\arm-gnu-toolchain-13.3.rel1-mingw-w64-i686-arm-none-eabi\arm-none-eabi\binAOPS = --warn --fatal-warnings -mcpu=cortex-m33COPS = -Wall -O2 -ffreestanding -mcpu=cortex-m33LOPS = -nostdlib -nostartfilesall : projetB7.uf2clean:rm -f *.binrm -f *.orm -f *.elfrm -f *.listrm -f *.uf2projetB7.uf2: projetB7.binC:\PrincipalA\Outils\\picotool uf2 convert projetB7.elf projetB7.uf2 --abs-block 0x10010000 --family 0xE48BFF57 --offset 0x10000000 projetB7.o : projetB7.s$(ARMGNU)\as $(AOPS) projetB7.s -o projetB7.oprojetB7.bin : memmap.ld projetB7.o $(ARMGNU)\ld -T memmap.ld projetB7.o -o projetB7.elf -M >projetB7_map.txt$(ARMGNU)\objdump -D projetB7.elf > projetB7.list$(ARMGNU)\objcopy -O binary projetB7.elf projetB7.binStatistics: Posted by VincentARM — Sat Aug 09, 2025 3:24 pm