- This topic has 0 replies, 1 voice, and was last updated 1 month, 2 weeks ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
(This message was transferred over from our old forum)
Posted January 18, 2016
By Bill Fleming
[hr]
This has not yet gone through formal release testing across all platforms, but the following changes will fix the linking problems when opening uEZ 2.07 projects in Crossworks 3.6.2.
Go to uEZ\\Source\\Processor\\NXP\\LPC17xx_40xx\\CrossWorks and open the “thumb_crt0.s” file.
At the end of the file where “#ifdef FULL_LIBRARY” starts, replace that section with the text below. Then the project will link correctly. For reference these partial changes were merged in from the Crossworks provided thumb_crt0.s file in 3.6.2. Similar changes might be needed for future versions.
// default C/C++ library helpers
.macro HELPER helper_name
.section .text.\\helper_name, \”ax\”, %progbits
.global \\helper_name
.weak \\helper_name
\\helper_name:
.thumb_func
.endm
HELPER __aeabi_read_tp
ldr r0, =__tbss_start__-8
bx lr
HELPER __heap_lock
bx lr
HELPER __heap_unlock
bx lr
HELPER __printf_lock
bx lr
HELPER __printf_unlock
bx lr
HELPER __scanf_lock
bx lr
HELPER __scanf_unlock
bx lr
HELPER __debug_io_lock
bx lr
HELPER __debug_io_unlock
bx lr
#ifdef FULL_LIBRARY
.bss
args:
.space ARGSSPACE
#endif
/* Setup attibutes of stack and heap sections so they don\’t take up room in the elf file */
.section .stack, \”wa\”, %nobits
.section .stack_process, \”wa\”, %nobits
.section .heap, \”wa\”, %nobits