DotExamples build with mbed cli doesn't work

Home Forums mDot/xDot DotExamples build with mbed cli doesn't work

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23554
    Rafael Mamro
    Participant

    Hey guys,

    I’m trying to build and run the ota_example from DotExamples project.
    The image built with the mbed online compiler seems to work without problems. But when I try to build the project offline with the mbed cli and GCC the built image gets stuck on initialising the mDot when calling:
    dot = mDot::getInstance(plan);
    throwing the following error on the serial output:
    [INFO] Initialize radio…
    Timer 0x200059f8 error -3: Resource not available

    The toolchains (GCC version 6 and 7) used seems to work, because I’ve already successfully build a couple of projects for other STM32 MCUs.

    It would be nice if you could help me to fix the problem.
    Thanks in advance!
    Rafael

    #23558
    Jason Reiss
    Keymaster

    GCC Version 6 should be used
    https://os.mbed.com/docs/v5.8/tools/index.html

    I use the 2017 q2 release without problem.
    gcc-arm-none-eabi-6-2017-q2

    #23566
    Rafael Mamro
    Participant

    Hey Jason,
    thanks for your reply!

    Indeed, my first attempts were building the example with latest available gcc-arm-none-eabi-7-2017-q4-major. But I already read in this topic that version 6 is recommended. So I also tried to downgrade the toolchain, hoping that this step would solve my problems. I’ve tried all three version 6 toolchains but unfortunately the problem persists.

    I’ve uploaded the project and the image binaries to GitHub. Maybe this will help someone to help me 😀

    Thanks again and best regards
    Rafael

    • This reply was modified 5 years, 11 months ago by Rafael Mamro.
    • This reply was modified 5 years, 11 months ago by Rafael Mamro.
    • This reply was modified 5 years, 11 months ago by Rafael Mamro.
    #23615

    Hey Rafael,

    I have the same problem like you under Ubuntu 18.04.
    Did you make any progress? Or somebody else?

    Regards
    Dennis

    #23695
    Rafael Mamro
    Participant

    Hey Dennis,

    sorry for my late reply. I was on vacation 😉

    Okay I made some progress in this case and can maybe track down the cause a little bit. Now, with current version of the libmdot-dev-mbed5 I can build a release version of the Dot-Examples, that seems to work.
    But if I try to build it with:
    mbed compile --profile debug -m MTS_MDOT_F411RE -t GCC_ARM
    the built image will fail with the same error as mentioned in my first post.

    Is it possible, that the precompiled libraries have no debugging symbols and that’s why it is failing for some reason?

    Regards
    Rafael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.