Hi,
I am getting compilation error with MAXREFDES103 source code using Mbed CLI.
I downloaded [SFW0011650F.zip] file on the MAXIM homepage.
https://www.maximintegrated.com/en/design/software-description.html/swpart=SFW0011650F?cq_ck=1599525844185
And I extracted the [Maxim Wellness Suite Library Integration Sample Code] folder.
I followed the steps in README.txt file in the Sample Code folder.
The libMxmWellnessSuite.a is used in [Wellness_Suite_V1_1_11.zip\out_wellness_suite_android\static\x86_64] folder.
Please refer to the attached files.
- my project folder tree
******** Error log ***********
$ make clean; make
rm -rf BUILD
mbed deploy
[mbed] Working path “d:\16\SampleCode_HighLevelAlgoWrapper_with_Sonsorhub_MAX32664C_30.12.0\projectName” (program)
[mbed] Updating library “mbed-os” to rev #e4b81f67f939 (tags: latest, mbed-os-5.15.4)
[mbed] Updating library “Drivers\USBDevice” to rev #dad310740b28 (tag: tip)
mbed compile -t GCC_ARM -m MAX32630FTHR
[mbed] Working path “d:\16\SampleCode_HighLevelAlgoWrapper_with_Sonsorhub_MAX32664C_30.12.0\projectName” (program)
[Warning] @,: Compiler version mismatch: Have 6.3.1; expected version >= 9.0.0 and < 10.0.0
Building project projectName (MAX32630FTHR, GCC_ARM)
Scan: projectName
Compile [ 0.1%]: USBHAL_EFM32.cpp
Compile [ 0.2%]: USBHAL_LPC11U.cpp
Compile [ 0.3%]: USBHAL_LPC40.cpp
Compile [ 0.5%]: USBHAL_KL25Z.cpp
Compile [ 0.6%]: USBHAL_LPC17.cpp
Compile [ 0.7%]: USBHAL_RZ_A1H.cpp
Compile [ 0.8%]: USBHAL_STM32F4.cpp
Compile [ 0.9%]: USBMouse.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
[Warning] USBMouse.cpp@84,5: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] USBMouse.cpp@84,13: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] USBMouse.cpp@91,5: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] USBMouse.cpp@91,14: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
Compile [ 1.0%]: USBAudio.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
[Warning] USBAudio.h@134,30: ‘void mbed::Callback<R(ArgTs …)>::attach(R ()(ArgTs …)) [with R = void; ArgTs = {}]’ is deprecated: Replaced by simple assignment 'Callback cb = func [since mbed-os-5.4] [-Wdeprecated-declarations]
[Warning] USBAudio.cpp@25,230: 'mbed::FunctionPointerArg1<R, void>::FunctionPointerArg1(R ()()) [with R = void]’ is deprecated: FunctionPointer has been replaced by Callback<void()> [since mbed-os-5.1] [-Wdeprecated-declarations]
Compile [ 1.1%]: USBHID.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
Compile [ 1.3%]: USBDevice.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
Compile [ 1.4%]: USBKeyboard.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
Compile [ 1.5%]: USBHAL_Maxim.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
Compile [ 1.6%]: USBMIDI.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
Compile [ 1.7%]: USBMouseKeyboard.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] toolchain.h@21,2: #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] [-Wcpp]
[Warning] USBMouseKeyboard.cpp@632,5: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] USBMouseKeyboard.cpp@632,13: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] USBMouseKeyboard.cpp@639,5: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] USBMouseKeyboard.cpp@639,14: ‘void wait(float)’ is deprecated: ‘wait’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
Compile [ 1.8%]: AlgoWrapper.cpp
[Warning] mxc_device.h@49,0: “TARGET_NAME” redefined
[Warning] SHComm.h@726,45: type qualifiers ignored on function return type [-Wignored-qualifiers]
[Warning] SHComm.h@728,31: type qualifiers ignored on function return type [-Wignored-qualifiers]
[Warning] AlgoWrapper.cpp@103,5: this ‘if’ clause does not guard… [-Wmisleading-indentation]
[Warning] AlgoWrapper.cpp@159,35: statement has no effect [-Wunused-value]
[Warning] AlgoWrapper.cpp@146,6: variable ‘status’ set but not used [-Wunused-but-set-variable]
[Warning] AlgoWrapper.cpp@185,1: no return statement in function returning non-void [-Wreturn-type]
[Warning] AlgoWrapper.cpp@213,8: ‘void wait_ms(int)’ is deprecated: ‘wait_ms’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait_ms’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] AlgoWrapper.cpp@213,17: ‘void wait_ms(int)’ is deprecated: ‘wait_ms’ is deprecated in favor of explicit sleep functions. To sleep, ‘wait_ms’ should be replaced by ‘ThisThread::sleep_for’ (C++) or ‘thread_sleep_for’ (C). If you wish to wait (without sleeping), call ‘wait_us’. ‘wait_us’ is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
[Warning] AlgoWrapper.cpp@230,63: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@230,63: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@231,63: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@231,63: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@232,63: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@232,63: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@233,60: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@233,60: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@234,60: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@234,60: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@235,60: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@235,60: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@237,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@238,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@239,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@242,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@244,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@248,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@248,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@248,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@249,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@249,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@249,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@250,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@250,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@250,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@251,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@251,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@251,88: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@254,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@256,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@258,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@269,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@271,54: operation on ‘ptr’ may be undefined [-Wsequence-point]
[Warning] AlgoWrapper.cpp@283,35: variable ‘highLevelAlgoSample’ set but not used [-Wunused-but-set-variable]
[Error] AlgoWrapper.cpp@414,25: ‘sh_disable_sensor_list’ was not declared in this scope
[Warning] AlgoWrapper.cpp@141,1: control reaches end of non-void function [-Wreturn-type]
[Warning] AlgoWrapper.cpp@417,1: control reaches end of non-void function [-Wreturn-type]
[Warning] simpleDataCapture.h@166,3: ‘scdSmConfigStruct’ defined but not used [-Wunused-variable]
[ERROR] In file included from ./mbed-os/targets/TARGET_Maxim/TARGET_MAX32630/mxc/mxc_config.h:40:0,
from ./mbed-os/targets/TARGET_Maxim/TARGET_MAX32630/mxc/uart.h:43,
from ./mbed-os/targets/TARGET_Maxim/TARGET_MAX32630/objects.h:48,
from ./mbed-os/targets/TARGET_Maxim/TARGET_MAX32630/device.h:37,
from ./mbed-os/hal/ticker_api.h:25,
from ./mbed-os/features/netsocket/SocketStats.h:24,
from ./mbed-os/features/netsocket/InternetSocket.h:30,
from ./mbed-os/features/netsocket/UDPSocket.h:23,
from ./mbed-os/features/netsocket/nsapi.h:40,
from ./mbed-os/mbed.h:26,
from .\SSwrapper\AlgoWrapper.cpp:56:
./mbed-os/targets/TARGET_Maxim/TARGET_MAX32630/device/mxc_device.h:49:0: warning: “TARGET_NAME” redefined
#define TARGET_NAME STRING_NAME(TARGET)
:0:0: note: this is the location of the previous definition
In file included from .\SSwrapper\AlgoWrapper.cpp:57:0:
./SHComm/SHComm.h:726:45: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const int sh_get_bootloader_delayfactor(void);
^
./SHComm/SHComm.h:728:31: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const int sh_get_ebl_mode(void);
^
.\SSwrapper\AlgoWrapper.cpp: In function ‘int start_sensorhub_measurement_for_algowrapper()’:
.\SSwrapper\AlgoWrapper.cpp:103:5: warning: this ‘if’ clause does not guard… [-Wmisleading-indentation]
if( status != SS_SUCCESS )
^~
.\SSwrapper\AlgoWrapper.cpp:106:3: note: …this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if(accelBehavior == SH_INPUT_DATA_FROM_HOST) {
^~
.\SSwrapper\AlgoWrapper.cpp: In function ‘int init_wrapper_algos()’:
.\SSwrapper\AlgoWrapper.cpp:159:35: warning: statement has no effect [-Wunused-value]
algosuite_init_data.stressConfig.dummy_config_for_compilation;
.\SSwrapper\AlgoWrapper.cpp:146:6: warning: variable 'status' set but not used [-Wunused-but-set-variable]
int status = -1;
^~~~~~
.\SSwrapper\AlgoWrapper.cpp:185:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
.\SSwrapper\AlgoWrapper.cpp: In function 'int fetch_measurement_samples_from_sensorhub(mxm_algosuite_input_data*)':
.\SSwrapper\AlgoWrapper.cpp:213:8: warning: 'void wait_ms(int)' is deprecated: 'wait_ms' is deprecated in favor of explicit sleep functions. To sleep, 'wait_ms' should be replaced by 'ThisThread::sleep_for' (C++) or 'thread_sleep_for' (C). If you wish to wait (without sleeping), call 'wait_us'. 'wait_us' is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
wait_ms(5);
^~~~~~~
In file included from ./mbed-os/mbed.h:89:0,
from .\SSwrapper\AlgoWrapper.cpp:56:
./mbed-os/platform/mbed_wait_api.h:95:6: note: declared here
void wait_ms(int ms);
^~~~~~~
.\SSwrapper\AlgoWrapper.cpp:213:17: warning: 'void wait_ms(int)' is deprecated: 'wait_ms' is deprecated in favor of explicit sleep functions. To sleep, 'wait_ms' should be replaced by 'ThisThread::sleep_for' (C++) or 'thread_sleep_for' (C). If you wish to wait (without sleeping), call 'wait_us'. 'wait_us' is safe to call from ISR context. [since mbed-os-5.14] [-Wdeprecated-declarations]
wait_ms(5);
^
In file included from ./mbed-os/mbed.h:89:0,
from .\SSwrapper\AlgoWrapper.cpp:56:
./mbed-os/platform/mbed_wait_api.h:95:6: note: declared here
void wait_ms(int ms);
^~~~~~~
.\SSwrapper\AlgoWrapper.cpp:230:63: warning: operation on 'ptr' may be undefined [-Wsequence-point]
ppgDataSample.led1 = (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:230:63: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:231:63: warning: operation on 'ptr' may be undefined [-Wsequence-point]
ppgDataSample.led2 = (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:231:63: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:232:63: warning: operation on 'ptr' may be undefined [-Wsequence-point]
ppgDataSample.led3 = (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:232:63: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:233:60: warning: operation on 'ptr' may be undefined [-Wsequence-point]
ppgDataSample.led4 = (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:233:60: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:234:60: warning: operation on 'ptr' may be undefined [-Wsequence-point]
ppgDataSample.led5 = (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:234:60: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:235:60: warning: operation on 'ptr' may be undefined [-Wsequence-point]
ppgDataSample.led6 = (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:235:60: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:237:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
accelDataSamp.x = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:238:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
accelDataSamp.y = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:239:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
accelDataSamp.z = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:242:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.hr = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:244:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.rr = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:248:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.walk_steps = (*ptr++ << 24) + (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:248:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:248:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:249:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.run_steps = (*ptr++ << 24) + (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:249:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:249:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:250:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.kcal = (*ptr++ << 24) + (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:250:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:250:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:251:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.cadence = (*ptr++ << 24) + (*ptr++ << 16) + (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:251:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:251:88: warning: operation on 'ptr' may be undefined [-Wsequence-point]
.\SSwrapper\AlgoWrapper.cpp:254:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.adj_led_cur1 = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:256:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.adj_led_cur2 = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:258:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.adj_led_cur3 = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:269:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.r = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:271:54: warning: operation on 'ptr' may be undefined [-Wsequence-point]
algoDataSamp.spo2 = (*ptr++ << 8) + (*ptr++ << 0);
~~~^~
.\SSwrapper\AlgoWrapper.cpp:283:35: warning: variable 'highLevelAlgoSample' set but not used [-Wunused-but-set-variable]
mxm_algosuite_input_data highLevelAlgoSample;
^~~~~~~~~~~~~~~~~~~
.\SSwrapper\AlgoWrapper.cpp: In function 'int run_algorithm_wrapper_consuming_whrm_outputs()':
.\SSwrapper\AlgoWrapper.cpp:414:25: error: 'sh_disable_sensor_list' was not declared in this scope
sh_disable_sensor_list();
^
.\SSwrapper\AlgoWrapper.cpp: In function 'int start_sensorhub_measurement_for_algowrapper()':
.\SSwrapper\AlgoWrapper.cpp:141:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
.\SSwrapper\AlgoWrapper.cpp: In function 'int run_algorithm_wrapper_consuming_whrm_outputs()':
.\SSwrapper\AlgoWrapper.cpp:417:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from .\SSwrapper\AlgoWrapper.cpp:59:0:
.\SSwrapper\../simplest/simpleDataCapture.h: At global scope:
.\SSwrapper\../simplest/simpleDataCapture.h:166:3: warning: 'scdSmConfigStruct' defined but not used [-Wunused-variable]
} scdSmConfigStruct;
^~~~~~~~~~~~~~~~~
[mbed] ERROR: "C:\Python27\python.exe" returned error.
Code: 1
Path: "d:\16\SampleCode_HighLevelAlgoWrapper_with_Sonsorhub_MAX32664C_30.12.0\projectName"
Command: "C:\Python27\python.exe -u d:\16\SampleCode_HighLevelAlgoWrapper_with_Sonsorhub_MAX32664C_30.12.0\projectName\mbed-os\tools\make.py -t GCC_ARM -m MAX32630FTHR --source . --build .\BUILD\MAX32630FTHR\GCC_ARM"
Tip: You could retry the last command with "-v" flag for verbose output
---
make: *** [all] Error 1
Thanks and Regards,
YS