bigtreetech / BIGTREETECH-SKR-V1.3

32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required
1.01k stars 1.15k forks source link

Can't compile/link for SKRv1.4 Turbo #392

Closed thomas374b closed 4 years ago

thomas374b commented 4 years ago

I can't compile/link the Marlin FW. I'm using the latest toolchain for embedded arm development (with gcc 9.3.1). It seems that a linker script is missing. I get the following errors to undefined variables

CMSIS/system/startup_LPC17xx.o: in function .ramcode_to_ram_loop': (.text+0x38): undefined reference todata_start' (.text+0x3c): undefined reference to `data_end' (.text+0x40): undefined reference to __ramcode_flash_start' (.text+0x44): undefined reference toramcode_ram_start' (.text+0x48): undefined reference to `ramcode_ram_end'

Can someone please provide a linker script for that board (BigTreeTech SKRv1.4 Turbo) and/or document the complete memory layout. Where does RAM / ROM start / end, at which address is the bootloader / user-application / vector-table, what is their size etc. pp.

Please provide appropriate description files and scripts in subdirectories

buildroot/share/PlatformIO/boards buildroot/share/PlatformIO/ldscripts

Thank You Best Regards

thomas374b commented 4 years ago

In between I've found the linker script by myself in platformio framework in subdirectory

 system/CMSIS/system

file

LPC1768.ld