7 years 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 ago.

Hello Azim,
Try to delete the mbed library from your project and import the mbed-dev.

Accepted Answer

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 Azim Malik Abdul Aziz 12 Apr 2017

That'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 Zoltan Hudak 12 Apr 2017

Hey 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.

  1. BeginnerHere
posted by Azim Malik Abdul Aziz 12 Apr 2017

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.

posted by Zoltan Hudak 13 Apr 2017

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 Azim Malik Abdul Aziz 14 Apr 2017

Hi Azim,
Glad to be of help. Zoltan

posted by Zoltan Hudak 14 Apr 2017

Hey Zoltan, I had a doubt. Do you think I could implement a ping-ping-pong using this program?

posted by Azim Malik Abdul Aziz 21 Apr 2017

Hello Azim,
It seems that there could be some issues with RX and TX timeout. Try to use the code published here by Frank Agius.

posted by Zoltan Hudak 21 Apr 2017