Page 1 of 1

EBM019 ultrasonic sensor

Posted: Tue Nov 29, 2022 12:46 pm
by mikelateo
hello,

I am used to using the basic setup of flowcode.

I am attempting to compile the EBM019 ultrasonic test flowcode project provided in the example EBM files.

below is the error report.

is it a simple fix ?

help appreciated

Mike

Copyright (C) 2019 Microchip Technology Inc.
EBM019_-_Test_Program.c: FCD_0e401_EBM019_Ultrasonic1__GetDistance()
303: FCL_SAMPLE = FC_CAL_ADC_Sample(0);
^ (361) function declared implicit int (warning)
using updated 32-bit floating-point libraries; improved accuracy might increase code size
.

EBM019_-_Test_Program.c: 303: (1464) number of arguments passed to function "_FC_CAL_ADC_Sample" does not match function's prototype (warning)
0: (499) undefined symbol:
_FC_CAL_ADC_Sample(EBM019_-_Test_Program.obj)
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1

Re: EBM019 ultrasonic sensor

Posted: Wed Nov 30, 2022 12:43 pm
by BenR
Hello Mike,

Thanks for letting you know, looking for you now.

Re: EBM019 ultrasonic sensor

Posted: Mon Dec 12, 2022 10:39 am
by mikelateo
any news about the error ?

Re: EBM019 ultrasonic sensor

Posted: Wed Dec 14, 2022 11:43 am
by BenR
Hello,

I've had a go at fixing the issue for you and pushed the fix to the library update system. Go to Help -> Library updates to get the latest fixes and hopefully this will solve the problem for you.