About MCU Linker Warnning (_close/_lseek/_read/_write)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About MCU Linker Warnning (_close/_lseek/_read/_write)

Jump to solution
1,563 Views
JungkyuHan1
Contributor I

Hello.

 

I am implementing w/t the base code of BLE_Shell SDK example, KW38 chip.

I have some warnning log when I compile.

Is there Anybody who can tell me the reason and solution to avoid.

Thanks

========================================================


Building target: DASAN_TGU_MCU_S.axf
Invoking: MCU Linker
arm-none-eabi-gcc -L"C:\work\commit\ble-mcu\DASAN_TGU_MCU_S\libs" -Xlinker --sort-section=alignment -Xlinker --defsym=__ram_vector_table__=1 -Xlinker --defsym=gUseNVMLink_d=1 -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker -Map="DASAN_TGU_MCU_S.map" -Xlinker --cref -mcpu=cortex-m0plus -mthumb -T DASAN_TGU_MCU_S_Debug.ld -o "DASAN_TGU_MCU_S.axf" ./utilities/fsl_assert.o ./utilities/fsl_str.o ./utilities/fsl_uart_console.o ./startup/startup_mkw38a4.o ./source/common/gatt_db/gatt_database.o ./source/common/gatt_db/gatt_database_dynamic.o ./source/common/ApplMain.o ./source/common/ble_conn_manager.o ./source/common/ble_host_tasks.o ./source/common/ble_init.o ./source/common/ble_service_discovery.o ./source/SAE_J1939/SAE_J1939-81_Network_Management_Layer/Address_Claimed.o ./source/SAE_J1939/SAE_J1939-81_Network_Management_Layer/Address_Delete.o ./source/SAE_J1939/SAE_J1939-81_Network_Management_Layer/Address_Not_Claimed.o ./source/SAE_J1939/SAE_J1939-81_Network_Management_Layer/Commanded_Address.o ./source/SAE_J1939/SAE_J1939-73_Diagnostics_Layer/DM1.o ./source/SAE_J1939/SAE_J1939-73_Diagnostics_Layer/DM14.o ./source/SAE_J1939/SAE_J1939-73_Diagnostics_Layer/DM15.o ./source/SAE_J1939/SAE_J1939-73_Diagnostics_Layer/DM16.o ./source/SAE_J1939/SAE_J1939-73_Diagnostics_Layer/DM2.o ./source/SAE_J1939/SAE_J1939-73_Diagnostics_Layer/DM3.o ./source/SAE_J1939/SAE_J1939-71_Application_Layer/Request_Component_Identification.o ./source/SAE_J1939/SAE_J1939-71_Application_Layer/Request_ECU_Identification.o ./source/SAE_J1939/SAE_J1939-71_Application_Layer/Request_Software_Identification.o ./source/SAE_J1939/SAE_J1939-21_Transport_Layer/Acknowledgement.o ./source/SAE_J1939/SAE_J1939-21_Transport_Layer/Request.o ./source/SAE_J1939/SAE_J1939-21_Transport_Layer/Transport_Protocol_Connection_Management.o ./source/SAE_J1939/SAE_J1939-21_Transport_Layer/Transport_Protocol_Data_Transfer.o ./source/Open_SAE_J1939/Closedown_ECU.o ./source/Open_SAE_J1939/Listen_For_Messages.o ./source/Open_SAE_J1939/Startup_ECU.o ./source/ISO_11783/ISO_11783-7_Application_Layer/Auxiliary_Valve_Command.o ./source/ISO_11783/ISO_11783-7_Application_Layer/Auxiliary_Valve_Estimated_Flow.o ./source/ISO_11783/ISO_11783-7_Application_Layer/Auxiliary_Valve_Measured_Position.o ./source/ISO_11783/ISO_11783-7_Application_Layer/General_Purpose_Valve_Command.o ./source/ISO_11783/ISO_11783-7_Application_Layer/General_Purpose_Valve_Estimated_Flow.o ./source/Hardware/CAN_Transmit_Receive.o ./source/Hardware/FLASH_EEPROM_RAM_Memory.o ./source/Hardware/Save_Load_Struct.o ./source/adv_ext_central.o ./source/app_config.o ./source/ble_shell.o ./source/mtb.o ./source/shell_ap.o ./source/shell_ap_packet.o ./source/shell_gap.o ./source/shell_gatt.o ./source/shell_gattdb.o ./source/shell_system.o ./source/shell_thrput.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_coding_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_common_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_gfsk_bt_0p5_h_0p32_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_gfsk_bt_0p5_h_0p5_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_gfsk_bt_0p5_h_0p7_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_gfsk_bt_0p5_h_1p0_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_mode_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/configs/nxp_xcvr_msk_config.o ./framework/XCVR/MKW38Z4/nb2p4ghz/nxp2p4_xcvr.o ./framework/XCVR/MKW38Z4/nb2p4ghz/nxp_xcvr_trim.o ./framework/XCVR/MKW38Z4/dbg_ram_capture.o ./framework/XCVR/MKW38Z4/dma_capture.o ./framework/XCVR/MKW38Z4/mathfp.o ./framework/XCVR/MKW38Z4/nxp_xcvr_ext_ctrl.o ./framework/XCVR/MKW38Z4/rsim_ctrl.o ./framework/TimersManager/source/TMR_Adapter.o ./framework/TimersManager/source/TimersManager.o ./framework/Shell/source/shell.o ./framework/Shell/source/shell_autocomplete.o ./framework/Shell/source/shell_cmdhelp.o ./framework/Shell/source/shell_cmdhist.o ./framework/SerialManager/source/SPI_Adapter/SPI_Serial_Adapter.o ./framework/SerialManager/source/SerialManager.o ./framework/SerialManager/source/UART_Serial_Adapter.o ./framework/SecLib/source/SecLib.o ./framework/Reset/source/Reset.o ./framework/RNG/source/RNG.o ./framework/Panic/source/Panic.o ./framework/OSAbstraction/source/fsl_os_abstraction_free_rtos.o ./framework/NVM/source/NV_Flash.o ./framework/NVM/source/NV_FsciCommands.o ./framework/ModuleInfo/source/ModuleInfo.o ./framework/Messaging/source/Messaging.o ./framework/MemManager/source/MemManager.o ./framework/MWSCoexistence/source/MWS.o ./framework/Lists/source/GenericList.o ./framework/LED/source/LED.o ./framework/Keyboard/source/Keyboard.o ./framework/GPIO/source/GPIO_Adapter.o ./framework/FunctionLib/source/FunctionLib.o ./framework/Flash/External/source/Eeprom_AT26DF081A.o ./framework/Flash/External/source/Eeprom_AT45DB021E.o ./framework/Flash/External/source/Eeprom_AT45DB041E.o ./framework/Flash/External/source/Eeprom_AT45DB161E.o ./framework/Flash/External/source/Eeprom_InternalFlash.o ./framework/Flash/External/source/Eeprom_MX25R8035F.o ./framework/Flash/Flash_Adapter.o ./framework/DCDC/source/DCDC.o ./drivers/freertos/MCP23017.o ./drivers/freertos/fsl_dspi_freertos.o ./drivers/freertos/fsl_flexcan_freertos.o ./drivers/freertos/fsl_gpio_input_freertos.o ./drivers/freertos/fsl_i2c_freertos.o ./drivers/freertos/nxp_pca9575.o ./drivers/fsl_adc16.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_dspi.o ./drivers/fsl_flexcan.o ./drivers/fsl_ftfx_cache.o ./drivers/fsl_ftfx_controller.o ./drivers/fsl_ftfx_flash.o ./drivers/fsl_ftfx_flexnvm.o ./drivers/fsl_gpio.o ./drivers/fsl_i2c.o ./drivers/fsl_lptmr.o ./drivers/fsl_lpuart.o ./drivers/fsl_ltc.o ./drivers/fsl_pmc.o ./drivers/fsl_power.o ./drivers/fsl_rtc.o ./drivers/fsl_smc.o ./drivers/fsl_tpm.o ./drivers/fsl_trng.o ./device/system_MKW38A4.o ./board/board.o ./board/clock_config.o ./board/gpio_pins.o ./board/hardware_init.o ./board/pin_mux.o ./bluetooth/host/config/ble_globals.o ./bluetooth/controller/task/ble_controller_task.o ./bluetooth/controller/interface/controller_init.o ./bluetooth/controller/config/ble_ll_globals.o ./amazon-freertos/freertos/portable/heap_4.o ./amazon-freertos/freertos/portable/port.o ./amazon-freertos/freertos/event_groups.o ./amazon-freertos/freertos/list.o ./amazon-freertos/freertos/queue.o ./amazon-freertos/freertos/stream_buffer.o ./amazon-freertos/freertos/tasks.o ./amazon-freertos/freertos/timers.o -lm -lc -lgcc -lnosys -l_crypto_m0 -l_ble_kw38a4_controller_gcc -l_ble_5-0_AE_host_cm0p_gcc
c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/thumb/v6-m/nofp\libc.a(libc_a-closer.o): in function `_close_r':
closer.c:(.text._close_r+0xc): warning: _close is not implemented and will always fail
c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/thumb/v6-m/nofp\libc.a(libc_a-lseekr.o): in function `_lseek_r':
lseekr.c:(.text._lseek_r+0x10): warning: _lseek is not implemented and will always fail
c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/thumb/v6-m/nofp\libc.a(libc_a-readr.o): in function `_read_r':
readr.c:(.text._read_r+0x10): warning: _read is not implemented and will always fail
c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/thumb/v6-m/nofp\libc.a(libc_a-writer.o): in function `_write_r':
writer.c:(.text._write_r+0x10): warning: _write is not implemented and will always fail
Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 353160 B 494 KB 69.81%
NVM_region: 8 KB 8 KB 100.00%
FREESCALE_PROD_DATA: 0 GB 2 KB 0.00%
SRAM: 59856 B 63808 B 93.81%
STACKSRAM: 1536 B 1536 B 100.00%
RAM_VECTOR_TABLE: 0 GB 192 B 0.00%
Finished building target: DASAN_TGU_MCU_S.axf

0 Kudos
Reply
1 Solution
1,515 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @JungkyuHan1 ,

Thanks for the information. This issue's cause maybe the new version of arm- 

This issue is due to the latest version of arm-none-eabi-gcc toolchain. It can be determined that it does not affect the correct generation of ELF. If needed, it is recommended to use the previous version of MCUXpresso IDE first.

In the meantime, I'll file this issue internally. We will also contact you as soon as there is progress.

Thanks very much!

 

Best regards,

Gavin

View solution in original post

0 Kudos
Reply
5 Replies
1,560 Views
JungkyuHan1
Contributor I

JungkyuHan1_0-1698050194716.png

 

0 Kudos
Reply
1,553 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @JungkyuHan1 ,

Thank for contacting NXP tech support.

Could you help to confirm the IDE version and SDK version you are using?

I tested with MCUXpresso IDE v11.7.1 [Build 9221] and SDK 2.6.15. It works well.

 

Gavin_Jia_0-1698060760646.png

Best regards,

Gavin

0 Kudos
Reply
1,525 Views
JungkyuHan1
Contributor I

 

SDK version is below

This is SDK version 2.6.615 manifest file. It describes the content of the FRDM-KW38 and additional settings for tools that support SDK version 2.6.615

0 Kudos
Reply
1,533 Views
JungkyuHan1
Contributor I

 

Here my IDE version. 

Thanks.

 

MCUXpresso IDE v11.8.0 [Build 1165] [2023-07-26]

(c) Copyright 2006-2023 NXP

JungkyuHan1_0-1698105306272.png

 

0 Kudos
Reply
1,516 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @JungkyuHan1 ,

Thanks for the information. This issue's cause maybe the new version of arm- 

This issue is due to the latest version of arm-none-eabi-gcc toolchain. It can be determined that it does not affect the correct generation of ELF. If needed, it is recommended to use the previous version of MCUXpresso IDE first.

In the meantime, I'll file this issue internally. We will also contact you as soon as there is progress.

Thanks very much!

 

Best regards,

Gavin

0 Kudos
Reply