20d8:10000ec4 .word0x10000ec4 20dc:00000000 .word0x00000000 000020e0 <__fclose_from_thumb>: 20e0:e51ff004 ldrpc, [pc, #-4]; 20e4 <__fclose_from_thumb+0x4> 20e4:10000ca4 .word0x10000ca4 000020e8 <__fseek_from_thumb>: 20e8:e51ff004 ldrpc, [pc, #-4]; 20ec <__fseek_from_thumb+0x4> 20ec:10000ca0 .word0x10000ca0 20f0:74735442 .word0x74735442 |
000020da: asrs r0, r0, #32 000020dc: movs r0, r0 000020de: movs r0, r0 __fclose_from_thumb: 000020e0: ; <UNDEFINED> instruction: 0xf004e51f 000020e4: lsrs r4, r4, #18 000020e6: asrs r0, r0, #32 __fseek_from_thumb: 000020e8: ; <UNDEFINED> instruction: 0xf004e51f 000020ec: lsrs r0, r4, #18 000020ee: asrs r0, r0, #32 |
// Defining these two symbols enables semihosting in the Code Red debugger volatile int fseek, fclose; |
Fault PC = 0x0000897E = _fdopen + 10 in section .text |
0000897f: blx 0x9860 <__fclose_from_thumb> |
00009860: ; <UNDEFINED> instruction: 0xf004e51f |
Building target: Sensormodul.axf Invoking: MCU Linker arm-none-eabi-gcc -nostdlib -Wl,--verbose -Xlinker -Map="Sensormodul.map" -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "Sensormodul_Debug.ld" -o "Sensormodul.axf" ./startup/cr_startup_lpc11.o ./src/MadgwickAHRS.o ./src/MahonyAHRS.o ./src/blinky_main.o ./src/flash.o ./src/i2c_sensors.o ./src/led.o ./src/nRF24AP.o ./src/powerManagement.o ./src/power_profiles.o ./src/printf_stub.o ./src/retarget.o ./src/signalProcessing.o ./src/systickDelay.o ./src/util.o ./driver/adc.o ./driver/clkconfig.o ./driver/crp.o ./driver/debug_printf.o ./driver/gpio.o ./driver/i2c.o ./driver/ssp.o ./driver/timer16.o ./driver/timer32.o ./driver/uart.o ./cmsis/core_cm0.o ./cmsis/system_LPC11xx.o ./btstack/chipset-cc256x/ant_cmds.o ./btstack/chipset-cc256x/bt_control_cc256x.o ./btstack-src/btstack_memory.o ./btstack-src/hal_uart_dma.o ./btstack-src/hci.o ./btstack-src/hci_cmds.o ./btstack-src/hci_dump.o ./btstack-src/hci_transport_h4_dma.o ./btstack-src/hci_transport_h4_ehcill_dma.o ./btstack-src/l2cap.o ./btstack-src/l2cap_signaling.o ./btstack-src/linked_list.o ./btstack-src/memory_pool.o ./btstack-src/remote_device_db_memory.o ./btstack-src/rfcomm.o ./btstack-src/run_loop.o ./btstack-src/run_loop_embedded.o ./btstack-src/sdp.o ./btstack-src/sdp_client.o ./btstack-src/sdp_parser.o ./btstack-src/sdp_query_rfcomm.o ./btstack-src/sdp_query_util.o ./btstack-src/sdp_util.o ./btstack-src/utils.o ./btstack/hal_cpu.o ./btstack/hal_tick.o ../btstack/hal_tick.c:19:1: warning: control reaches end of non-void function [-Wreturn-type] GNU ld (GNU Tools for ARM Embedded Processors) 2.21.1.20121016-crt002 Supported emulations: armelf opened script file Sensormodul_Debug.ld opened script file Sensormodul_Debug_lib.ld opened script file Sensormodul_Debug_mem.ld using external linker script: ================================================== /* * GENERATED FILE - DO NOT EDIT * (c) Code Red Technologies Ltd, 2008-2014 * (c) NXP Semiconductors 2013-2014 * Linker script memory definitions * Created from LinkMemoryTemplate * By LPCXpresso v6.1.2 [Build 177] [2013-11-28] on Fri Feb 14 10:23:53 CET 2014) */ MEMORY { /* Define each memory region */ MFlash64 (rx) : ORIGIN = 0x0, LENGTH = 0x10000 /* 64K bytes */ RamLoc8 (rwx) : ORIGIN = 0x10000000, LENGTH = 0x2000 /* 8K bytes */ } /* Define a symbol for the top of each memory region */ __top_MFlash64 = 0x0 + 0x10000; __top_RamLoc8 = 0x10000000 + 0x2000; ================================================== attempt to open ./startup/cr_startup_lpc11.o succeeded ./startup/cr_startup_lpc11.o attempt to open ./src/MadgwickAHRS.o succeeded ./src/MadgwickAHRS.o attempt to open ./src/MahonyAHRS.o succeeded ./src/MahonyAHRS.o attempt to open ./src/blinky_main.o succeeded ./src/blinky_main.o attempt to open ./src/flash.o succeeded ./src/flash.o attempt to open ./src/i2c_sensors.o succeeded ./src/i2c_sensors.o attempt to open ./src/led.o succeeded ./src/led.o attempt to open ./src/nRF24AP.o succeeded ./src/nRF24AP.o attempt to open ./src/powerManagement.o succeeded ./src/powerManagement.o attempt to open ./src/power_profiles.o succeeded ./src/power_profiles.o attempt to open ./src/printf_stub.o succeeded ./src/printf_stub.o attempt to open ./src/retarget.o succeeded ./src/retarget.o attempt to open ./src/signalProcessing.o succeeded ./src/signalProcessing.o attempt to open ./src/systickDelay.o succeeded ./src/systickDelay.o attempt to open ./src/util.o succeeded ./src/util.o attempt to open ./driver/adc.o succeeded ./driver/adc.o attempt to open ./driver/clkconfig.o succeeded ./driver/clkconfig.o attempt to open ./driver/crp.o succeeded ./driver/crp.o attempt to open ./driver/debug_printf.o succeeded ./driver/debug_printf.o attempt to open ./driver/gpio.o succeeded ./driver/gpio.o attempt to open ./driver/i2c.o succeeded ./driver/i2c.o attempt to open ./driver/ssp.o succeeded ./driver/ssp.o attempt to open ./driver/timer16.o succeeded ./driver/timer16.o attempt to open ./driver/timer32.o succeeded ./driver/timer32.o attempt to open ./driver/uart.o succeeded ./driver/uart.o attempt to open ./cmsis/core_cm0.o succeeded ./cmsis/core_cm0.o attempt to open ./cmsis/system_LPC11xx.o succeeded ./cmsis/system_LPC11xx.o attempt to open ./btstack/chipset-cc256x/ant_cmds.o succeeded ./btstack/chipset-cc256x/ant_cmds.o attempt to open ./btstack/chipset-cc256x/bt_control_cc256x.o succeeded ./btstack/chipset-cc256x/bt_control_cc256x.o attempt to open ./btstack-src/btstack_memory.o succeeded ./btstack-src/btstack_memory.o attempt to open ./btstack-src/hal_uart_dma.o succeeded ./btstack-src/hal_uart_dma.o attempt to open ./btstack-src/hci.o succeeded ./btstack-src/hci.o attempt to open ./btstack-src/hci_cmds.o succeeded ./btstack-src/hci_cmds.o attempt to open ./btstack-src/hci_dump.o succeeded ./btstack-src/hci_dump.o attempt to open ./btstack-src/hci_transport_h4_dma.o succeeded ./btstack-src/hci_transport_h4_dma.o attempt to open ./btstack-src/hci_transport_h4_ehcill_dma.o succeeded ./btstack-src/hci_transport_h4_ehcill_dma.o attempt to open ./btstack-src/l2cap.o succeeded ./btstack-src/l2cap.o attempt to open ./btstack-src/l2cap_signaling.o succeeded ./btstack-src/l2cap_signaling.o attempt to open ./btstack-src/linked_list.o succeeded ./btstack-src/linked_list.o attempt to open ./btstack-src/memory_pool.o succeeded ./btstack-src/memory_pool.o attempt to open ./btstack-src/remote_device_db_memory.o succeeded ./btstack-src/remote_device_db_memory.o attempt to open ./btstack-src/rfcomm.o succeeded ./btstack-src/rfcomm.o attempt to open ./btstack-src/run_loop.o succeeded ./btstack-src/run_loop.o attempt to open ./btstack-src/run_loop_embedded.o succeeded ./btstack-src/run_loop_embedded.o attempt to open ./btstack-src/sdp.o succeeded ./btstack-src/sdp.o attempt to open ./btstack-src/sdp_client.o succeeded ./btstack-src/sdp_client.o attempt to open ./btstack-src/sdp_parser.o succeeded ./btstack-src/sdp_parser.o attempt to open ./btstack-src/sdp_query_rfcomm.o succeeded ./btstack-src/sdp_query_rfcomm.o attempt to open ./btstack-src/sdp_query_util.o succeeded ./btstack-src/sdp_query_util.o attempt to open ./btstack-src/sdp_util.o succeeded ./btstack-src/sdp_util.o attempt to open ./btstack-src/utils.o succeeded ./btstack-src/utils.o attempt to open ./btstack/hal_cpu.o succeeded ./btstack/hal_cpu.o attempt to open ./btstack/hal_tick.o succeeded ./btstack/hal_tick.o attempt to open libcr_semihost.a failed attempt to open c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_semihost.a failed attempt to open c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a succeeded (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)__sys_write.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)_cr__main.o attempt to open libcr_c.a failed attempt to open c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_c.a failed attempt to open c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a succeeded (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)acosf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)cosf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)fabsf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)sinf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)memcpy.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)memset.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)alloc.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)fpprintf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)initio.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)memcmp.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)printf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)setvbuf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)sqrt.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)stdio.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)strcat.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)strcpy.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)strlen.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)strncmp.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)strncpy.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_asinacosf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_sincosf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)sqrtf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)__fillbuf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)__init_alloc.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_deferredlazyseek.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_fdopen.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_fflush.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_frexpl.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_hugeval.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_ldexpl.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)_writebuf.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a)errno.o attempt to open libcr_eabihelpers.a failed attempt to open c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_eabihelpers.a succeeded (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_eabihelpers.a)division.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_eabihelpers.a)double.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_eabihelpers.a)float.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_eabihelpers.a)llong.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/armv6-m\libcr_eabihelpers.a)memcpy.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)__sys_appexit.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)__sys_flen.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)__sys_istty.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)__sys_read.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)__sys_readc.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)__sys_seek.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)_cr_sbrk.o (c:/nxp/lpcxpresso_6.1.2_177/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv6-m\libcr_semihost.a)_cr_check_heap.o Finished building target: Sensormodul.axf |