Skip to main content
hjh
Associate III
Feb 25, 2018 8:55 PM UTC
Solved

StmCube LRWAN End Node will not debug either in Keil or OpenStm32 ...

Posted on February 25, 2018 at 21:55

Hi

i do have the B-L072Z-LRWAN1 board and try to make a End-node..

When i want to debug the Stm-cube LRWAN END NODE exsample it gives me a failure ...the port is in use ?

What can i do wrong ...Normally absolut no problems...

Both Keil and openstm32 make the failure..

Anyone know ?

Hjalmar

    This topic has been closed for replies.
    Tilen MAJERLE
    Tilen MAJERLEBest answer
    ST Employee
    Feb 26, 2018 8:23 PM UTC
    Posted on February 26, 2018 at 21:23

    Hello

    Skovholm_Hansen.Hjal

    ‌,

    to achieve lowest possible current consumption, SWD pins are set to analog mode without pull resistors and this is causing you error on debug.

    Check for define LOW_POWER_DISABLE and uncomment it. In this case, pins won't be changed and you should be able to debug.

    Best regards,

    Tilen

    4 replies

    Tesla DeLorean
    Guru
    Feb 25, 2018 9:16 PM UTC
    Posted on February 25, 2018 at 22:16

    Disable low power modes where it turns OFF the JTAG/SWD interface.

    See define LOW_POWER_DISABLE

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    Feb 25, 2018 11:51 PM UTC
    Posted on February 26, 2018 at 00:51

    it gives me a failure ...the port is in use ?

    Please post the exact message you get, and describe the exact steps you take up to getting it.

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Tilen MAJERLE
    Tilen MAJERLEBest answer
    ST Employee
    Feb 26, 2018 8:23 PM UTC
    Posted on February 26, 2018 at 21:23

    Hello

    Skovholm_Hansen.Hjal

    ‌,

    to achieve lowest possible current consumption, SWD pins are set to analog mode without pull resistors and this is causing you error on debug.

    Check for define LOW_POWER_DISABLE and uncomment it. In this case, pins won't be changed and you should be able to debug.

    Best regards,

    Tilen

    hjh
    hjhAuthor
    Associate III
    Feb 26, 2018 9:34 PM UTC
    Posted on February 26, 2018 at 21:34

    Hi tilen

    thanks for your help.

    it worked...

    i do program on the board you teach us in Copenhagen, and my lora node is doing progress.

    i did also set up my own lora gateway on a raspberry so Now looking into a very interesting World.

    just order some stm32L0 sx1276 and Will get Them to work When finish with the initial test on this board...

    thanks for you help again

    hjalmar