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.
7 years, 8 months ago.
Error in Ping Pong Application
I have already imported the Ping Pong program file on to my mbed compiler. I get an error after compiling which reads the following:
1) Can not open source input file mbed.h : No such file or directory This generally means you have somehow deleted the mbed library from your project. Add it again by clicking on the "Import latest build" button on this page: http://mbed.org/users/mbed_official/code/mbed/builds/
2) Can not open source input file device.h : No such file or directory This generally means that the version of the mbed library in your project does not support the selected device in the top right corner of the Online IDE. Update your mbed library to the latest version by selecting it and clicking on the "Update" button in the right "Build Details" panel.
The library is up-to-date. I have no clue what's causing the error.
1 Answer
7 years, 8 months ago.
Hello Azim,
Try to delete the mbed library from your project and import the mbed-dev.
Thanks Zoltan. I did import thet mbed-dev library. I have a new error. Error 20 in the callback.h
Identifier"MBED_STATIC_ASSERT" is undefined "MBED_STATIC_ASSERT(sizeof(Callback) - sizeof(_ops) >= sizeof(F),". :(
posted by 12 Apr 2017That's strange. I have:
- SX1276PingPong program open in online compiler
- SX1276Lib library revision 25
- mbed-dev library revision 162
- NUCLEO-L073RZ platform selected as target board
And that compiles smoothly with no errors.
posted by 12 Apr 2017Hey Zoltan, It's working. I had another mbed file in the same folder. Once I removed it compiled successfully. Now my question: How do you implement ping pong with two shields. I have two SX1272 + Nucleo L073RZ. Both are registered to a private cloud network through a gateway. Is there a specific documentation that I could refer to? I appreciate your time and effort.
- BeginnerHere
Hello Azim,
Unfortunately I do not have any experience with the SX1272 or any other LoRa device yet. But I'm pretty sure if you post your question here on mbed there are already plenty of experts who can give you a hand. All I can do for you is to provide this link to the LoRa specification.
Hello Zoltan, I figured out how to run it using two boards. I just had to open a terminal that displayed the operations. Thanks a lot.
posted by 14 Apr 2017Hey Zoltan, I had a doubt. Do you think I could implement a ping-ping-pong using this program?
posted by 21 Apr 2017Hello Azim,
It seems that there could be some issues with RX and TX timeout. Try to use the code published here by Frank Agius.