Not applicable
Dec 14, 2015
10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 14, 2015
10:36 PM
6 Replies
Not applicable
Dec 16, 2015
08:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 16, 2015
08:36 AM
HI,
What's wrong with this function? Did you add this code line in your code: #include
What's wrong with this function? Did you add this code line in your code: #include
Not applicable
Dec 16, 2015
06:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 16, 2015
06:34 PM
Yeap i am already add the #include
Not applicable
Dec 17, 2015
09:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2015
09:32 AM
HI Joy,
It is working fine on my setup. I added the following code lines.
float a,b,c;
c=9.2;
b=c*1.2;
a = sqrtf(b);
What is the error reported in your DAVE IDE?
Regards,
Daryl
It is working fine on my setup. I added the following code lines.
float a,b,c;
c=9.2;
b=c*1.2;
a = sqrtf(b);
What is the error reported in your DAVE IDE?
Regards,
Daryl
Not applicable
Dec 17, 2015
06:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2015
06:14 PM
Daryl Neo wrote:
HI Joy,
It is working fine on my setup. I added the following code lines.
float a,b,c;
c=9.2;
b=c*1.2;
a = sqrtf(b);
What is the error reported in your DAVE IDE?
Regards,
Daryl
code...
/////////////////////////////////////////////////////////////////////////////////////////////////
//**************************************************************************
// Includes
//**************************************************************************
#include
#include
#include
#include "GPIO.h"
#include "general.h"
void Get_Vout(float power, float dVBAT, float dResistance)
{
float Vout=0;
float duty;
unsigned char mode;
IO_Ctr_BUCK_OD(1);
mode = 0;
Vout = sqrtf(power*dResistance);
}
/////////////////////////////////////////////////////////////////////////////////////////////////
Compile result:
Invoking: ARM-GCC C Linker
"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\ARM-GCC/bin/arm-none-eabi-gcc" -T"../ECIG_ENG.ld" -nostartfiles -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../CMSIS/Infineon/Lib" -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../Examples/Lib" -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../emWin/Start/GUI" -Wl,-Map,"ECIG_ENG.map" -mcpu=cortex-m4 -mthumb -o "ECIG_ENG.elf" "@makefile.rsp"
source/PWM.o: In function `Get_Vout':
PWM.c:(.text.Get_Vout+0x26): undefined reference to `sqrtf'
collect2.exe: error: ld returned 1 exit status
make: *** [ECIG_ENG.elf] Error 1
**** Build Finished ****
Not applicable
Dec 17, 2015
06:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2015
06:20 PM
Hi DaryI
my code...
/////////////////////////////////
//**************************************************************************
// Includes
//**************************************************************************
#include //Declarations from DAVE3 Code Generation
#include
#include
#include "GPIO.h"
#include "general.h"
/**************************************************************************************************************/
void Get_Vout(float power, float dVBAT, float dResistance)
{
float Vout=0;
float duty;
unsigned char mode;
IO_Ctr_BUCK_OD(1);
mode = 0;
Vout = sqrtf(power*dResistance);
}
/**************************************************************************************************************/
Building target: ECIG_ENG.elf
Invoking: ARM-GCC C Linker
"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\ARM-GCC/bin/arm-none-eabi-gcc" -T"../ECIG_ENG.ld" -nostartfiles -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../CMSIS/Infineon/Lib" -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../Examples/Lib" -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../emWin/Start/GUI" -Wl,-Map,"ECIG_ENG.map" -mcpu=cortex-m4 -mthumb -o "ECIG_ENG.elf" "@makefile.rsp"
source/PWM.o: In function `Get_Vout':
PWM.c:(.text.Get_Vout+0x26): undefined reference to `sqrtf'
collect2.exe: error: ld returned 1 exit status
make: *** [ECIG_ENG.elf] Error 1
**** Build Finished ****
my code...
/////////////////////////////////
//**************************************************************************
// Includes
//**************************************************************************
#include
#include
#include
#include "GPIO.h"
#include "general.h"
/**************************************************************************************************************/
void Get_Vout(float power, float dVBAT, float dResistance)
{
float Vout=0;
float duty;
unsigned char mode;
IO_Ctr_BUCK_OD(1);
mode = 0;
Vout = sqrtf(power*dResistance);
}
/**************************************************************************************************************/
Building target: ECIG_ENG.elf
Invoking: ARM-GCC C Linker
"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\ARM-GCC/bin/arm-none-eabi-gcc" -T"../ECIG_ENG.ld" -nostartfiles -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../CMSIS/Infineon/Lib" -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../Examples/Lib" -L"C:\DAVE-3.1.10\DAVE-3.1.10\DAVE-3.1.10\eclipse\/../emWin/Start/GUI" -Wl,-Map,"ECIG_ENG.map" -mcpu=cortex-m4 -mthumb -o "ECIG_ENG.elf" "@makefile.rsp"
source/PWM.o: In function `Get_Vout':
PWM.c:(.text.Get_Vout+0x26): undefined reference to `sqrtf'
collect2.exe: error: ld returned 1 exit status
make: *** [ECIG_ENG.elf] Error 1
**** Build Finished ****
Not applicable
Dec 22, 2015
02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 22, 2015
02:49 AM
Did you add the 'm' option to the project properties ?