DA14580 and BMI160 IOT firmware

⚠️
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.
6 posts / 0 new
Last post
erenvar
Offline
Last seen:2 years 3 months ago
加入:2017-03-08 10:32
DA14580 and BMI160 IOT firmware

Hello,

What I would like to do is to have a custom design with DA14580 and only the BMI160 sensor. I already have the IOT board with the DA14583 and 12DOF sensors on the board. The code I use is this IOT SDK but I had to remove a lot of code (for example the bme280.c and bmm150.c along with their usage in user_periph_setup.c). I also had to remove all the spi flash related lines since DA14580 does not have a flash like DA14583 has. I do a direct RAM download from smartsnippets and it downloads the firmware successfully. Then it starts advertising and I can connect it with another bluetooth chip but when I send the start command to acquire the gyro and the accelerometer data I cannot receive the data. My question is whether there is a modified firmware for DA14580 . I have done a stand alone test for the sensor(bmi160) and it works. I strongly think that the firmware is not compatible with DA14580. Thank you for your answer...
Eren

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi erenvar,

Hi erenvar,

There is no IoT fw for the 580, the IoT reference design is exclusively for the 583 and it can not run directly on the 580, so yes the IoT fw as is, is not compatible with the 580. The differences between the 580 and the 583 is mostly the flash thus some of the pins and connections with the sensors of the reference design should also be different.

Thanks MT_dialog

erenvar
Offline
Last seen:2 years 3 months ago
加入:2017-03-08 10:32
Thank you for your reply. Is

Thank you for your reply. Is there any way I can modify the IoT SDK so that I can have custom design with DA14580+bmi160 sensor chip.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi erenvar,

Hi erenvar,

The SDK that the IoT uses is the standard SDK for all the 58x devices, you can just use the drivers from the IoT reference design on a clean template SDK and start implementing. If you mean an identical design with an external flash and the appropriate sensors on a 580, then you can use the IoT as is and undefine the 583 definition, also you might need a few tweeks in the spi flash implementation.

Thanks MT_dialog

erenvar
Offline
Last seen:2 years 3 months ago
加入:2017-03-08 10:32
Thanks for the response.

Thanks for the response. Where do I undefine 583 in the IoT SDK ? Is it in the da1458x_config_basic.h ?

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi erenvar,

Hi erenvar,

Just go to the "options for target" and choose the C/C++ tab, and under the Preprocessor Symbols remove the __DA14583__ definition, that should be enough to build the fw for the 580.

Thanks MT_dialog