Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years ago.
I have an assert using I2C
I'm using the online compiler and have a project that uses the Nucleo-L432KC board. I get the following assert when I try and use the standard I2C routines (i2c.read, i2c.write). I have googled around and searched on the site but haven't found a satisfactory answer. Does anyone know what is going on?
mbed assertation failed: _ptr == (T *)&_data, file: C:/Jenkins/workspace/mbed-2-build-library/.build/mbed/SingletonPtr.h, line 86
Just some clarification. I am running the RTOS with this which may have something to do with the issue. I also tried a very small project without the RTOS and that seems to work fine.
Thanks Kim
1 Answer
8 years ago.
Hi Kim,
Thanks for your replies,
I am not able to replicate the same issue you have. Also your board is mbed OS 5 compatible so i would suggest removing the 'mbed' library and 'mbed-rtos' and simply importing https://github.com/ARMmbed/mbed-os, this includes RTOS and no changes to your source.
To do this, go to the online compiler, right click the program, click import library -> import from URL.
Let me know how you get on.
Best Regards,
Andrea, team mbed
Hi Kim,
Sorry for the issues you are having, could you supply me with the program you are compelling for?
Regards,
Andrea, team mbed
posted by Andrea Corrado 27 Oct 2016Andrea,
I'm new to all of this and I'm wondering how I get the code to you?
Thanks Kim
posted by Kim Mansfield 27 Oct 2016Hi Kim,
SO the code is in your online compiler, right click on the program and click 'Publish', type a message and then press ok.
When its in your profileIt will then appear in your profile dashboard code: https://developer.mbed.org/users/kmansfie/code/
Send me this link to the program when you can! :)
Regards,
Andrea, team mbed
posted by Andrea Corrado 27 Oct 2016https://developer.mbed.org/users/kmansfie/code/i2ctest/
There is the link thanks for your help.
Kim
posted by Kim Mansfield 27 Oct 2016