Hi,dialog
We want to add a floating-point arithmetic library source code into project . The source code is comprised of several *.h , *.s file 。 But it reported error when calling the function from the *.s file:(for more detail please refer to the attachment file)
E: \ DebugProject \ BasicDevkit_DA1468x_SDK__v_1.0.6\projects\dk_apps\templates\freertos_retarget\DA14681-01-Release_QSPI/../main.c:414: undefined reference to `qfp_fadd'
E: \ DebugProject \ BasicDevkit_DA1468x_SDK__v_1.0.6\projects\dk_apps\templates\freertos_retarget\DA14681-01-Release_QSPI/../main.c:423: undefined reference to `qfp_fsub'
E: \ DebugProject \ BasicDevkit_DA1468x_SDK__v_1.0.6\projects\dk_apps\templates\freertos_retarget\DA14681-01-Release_QSPI/../main.c:432: undefined reference to `qfp_fmul'
E: \ DebugProject \ BasicDevkit_DA1468x_SDK__v_1.0.6\projects\dk_apps\templates\freertos_retarget\DA14681-01-Release_QSPI/../main.c:441: undefined reference to `qfp_fdiv'
E: \ DebugProject \ BasicDevkit_DA1468x_SDK__v_1.0.6\projects\dk_apps\templates\freertos_retarget\DA14681-01-Release_QSPI/../main.c:451: undefined reference to `qfp_fdiv'
How to add assembly file into project?
⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
Wed, 2017-11-15 11:00
#1
How to add assembly file into project
Device:
Hi guxiang,
You will have to instruct the eclipse to take the .s files as assembly files in order for those files to be part of the build, so in order to do that you will have to open the properties of the project, and navigate to the "C/C++ General" go to the "File Types" and check the "Use project settings", hit the "New" button and add a new "C/C++ File Type". Type in the Pattern "*.s" and leave the Type as "Assembly Source File". With the above the files will be included in the build and it will end up successfully.
Thanks MT_dialog