Smart Bluetooth Forum Discussions
I installed WICED Smart IDE 2.1.1 on OSX Yosemite, but I am unable to build the apps due to the following error:
----------
dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib
Referenced from: /Users/sagarnargundkar/Documents/WICED/WICED-Smart-SDK-2.1.1/WICED-Smart-SDK/Wiced-Smart/spar/../../Tools/common/OSX/perl
Reason: image not found
---------
It looks like OSX Yosemite uses Perl v5.18 while the SDK's version of perl is 5.12
Show Less===
SDK: 2.1.
Tag: 920737.
app: OTA hello-sensor.
OTA firmware size ~ 25KB.
===
There are some questions below,
- For factory MP process, can we just update BT MAC without downloading main image?
if yes, how to do it, like below?
from
./chipload.exe -BLUETOOLMODE -BAUDRATE 115200nfc -PORT COM4 -MINIDRIVER uart_DISABLE_EEPROM_WP_PIN1.hex -CONFIG A_20737A1-PlanAir-rom-ram-spar.hex -NODLMINIDRIVER -BTP 20737_EEPROM.btp
to
./chipload.exe -BLUETOOLMODE -BAUDRATE 115200nfc -PORT COM4 -MINIDRIVER uart_DISABLE_EEPROM_WP_PIN1.hex -NODLMINIDRIVER -BTP 20737_EEPROM.btp
remove - Config option or , simplify it like
./chipload.exe -BTP 20737_EEPROM.btp
or
./chipload -option DLConfigBD_ADDRBase = "20737A10xxxx" and what is the option -xx? |
- If our product needs SN(series number) to calibrate into flash area as BT MAC;
does SDK2.1 has already settle the space for this kinds of parameters or any layout region that we can
calibrate it into EEPROM. If yes, any UART tool for us to calibrate it or we can not communicate 920737 tag
via local PC site. TKS.
In below discussion, i was informed that:
floating point arithmetic are not included within the ROM and SDK because they consume a lot of precious resources.
I made some simple tests best on hello sensor app on WICED 2.1.1
Test 1,
float a = 1.4;
float b = 2.9;
float c = a * b;
float d = b / a;
ble_trace2("c=%d, d=%d", c, d);
build passed and the output is c=4, d=2, which is a correct result.
However from the generated assembly(hello_sensor.s), i did not find any symbol like __aeabi_fmul or __aeabi_fdiv.
Test 2,
float my_fmul(float x, float y)
{
return x*y;
}
float my_fdiv(float x, float y)
{
return x/y;
}
float a = 1.4;
float b = 2.9;
float c = my_fmul(a, b);
float d = my_fdiv(b, a);
ble_trace2("c=%d, d=%d", c, d);
build passed and the result is "c=4, d=2" which is also a correct result.
From hello_sensor.s, i found below symbols:
.global | __aeabi_fmul |
bl | __aeabi_fmul |
.global | __aeabi_fdiv |
bl | __aeabi_fdiv |
I try to search which module did those two symbol reside in. Below is what i found in the generate list file:
_aeabi_cdrcmple ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_d2ulz ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_dadd ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_ddiv ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_dmul ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_drsub ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_dsub ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_fdiv ../../build/hello_sensor_tmp-BCM920736TAG_Q32-rom-ram-Wiced-release/hello_sensor.o
__aeabi_fmul ../../build/hello_sensor_tmp-BCM920736TAG_Q32-rom-ram-Wiced-release/hello_sensor.o
__aeabi_lasr ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_llsl ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_llsr ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_memclr ../tier2/brcm/mandatory/bld/20736/patch.elf
__aeabi_memclr4 ../tier2/brcm/mandatory/bld/20736/patch.elf
I still have no idea where did these symbol come from:-(
Test 3:
A little bit modification on below function:
float my_fmul(float x, float y)
{
x =x*y*x; // added
return x*y;
}
Build OK.
Test 4:
Added one more line:
float my_fmul(float x, float y)
{
x =x*y*x;
y = x*y*x; // added
return x*y;
}
Clean and build again, but this time i got many errors like:
C:\Data\Work\Broadcom\BLE\WICED_Smart_SDK\WICED-Smart-SDK-2.1.1\WICED-Smart-SDK_Test\Wiced-Smart\spar/../../Apps/hello_sensor_tmp/hello_sensor.c:398: undefined reference to `__aeabi_fmul'
I also check __aeabi_fmul and __aeabi_fdiv, they still appear in the hello_sensor.s and ***.list file.
why, why, why?
Any one can help me?
thanks
Show LessHi All,
I am trying to change compiler options in Eclipse and was wondering how to do this? I am hoping to add -mfloat-abi=soft.
Thank You,
George
Show LessDear support,
I have a customer that will use your WICED SMART device for an application that is cover by a BROADCOM Patent.
If customer uses your device are they release from liabilities regards BROADCOM patent?
In other word, can customer reuse your patent without any fee/license or something like that if they use your devices?
Thanks a lot,
BR,
Giordano
Show LessHi,
I am using MIT App inventor2 to talk to wiced sense, but, it always gives ERROR 507 or 511. Has anyone successfully used the APP inventor2 to talk to Wiced sense?
Thanks,
Eshwar
Show LessHi all,
is anybody familiar with file system on Android devices?
I have a SQLite based BLE App created. In general it works, just:
- Android does not have really "shared folders". Every App will have its own data folder (which is not visible for other Apps,
or neither from PC). It works fine when using the App data folders. I can create a DB, open and update next time (e.g. new sensor values). - But putting DB on a visible folder, even SD Card: I can create and see it but it works only once. On a second App start the DB is "read only".
- And it looks to me (after hours on Google): in general it is not possible to share files, a database between different Apps. They need the same App ID in their Manifest XML file. But with a third-party I have no clue about it and I cannot change (to give two Apps the same App ID so that they look like the same and can use the same folder and files)
Does anybody has an idea how to deal with shared folders and files on Android?
Thank you.
Show LessHi,
I read from below doc and it said:
Yes. The SDK may be used with two IDEs, an open source IDE (Eclipse CDT) and a commercial IDE
(Real View IDE). Usage and setup documentation for both IDEs is provided with the SDK.
http://community.broadcom.com/docs/DOC-1024
But i did not find any document about how to use RealView IDE in SDK.
Can anyone help?
thanks.
Show Less