Programming the internal STM32 microcontroller



  • Dear All,
    I am trying to use the RAK811 module standalone, that is, I am trying to program the internal STM32l151CBA processor. I am using the the code you provide here https://github.com/RAKWireless/WisNode-LoRa

    I created a Makefile and am using gcc.
    I have a Wisnode development board.

    The code compiles just fine. I have a problem flashing the board though. I tried both the bootloader and the SWD programmer. The programming seems to work, but the board does not boot from flash (boot0 connected to ground). Considering the binary files you provide for AT firmware work OK, I assume I am missing something either in the startup or in the linker files.

    Are there any special considerations that have to be taken into account?
    Do you have a minimal example for this processor?
    Do you have an example with gcc and Makefile?

    Thanks in advance,



  • Sorry I am not example with gcc and Makefile.
    you can reference the CoIDE :https://github.com/RAKWiskey/RAK811_LoRaMac_CoIDE



  • thanks a lot @xc-c. I will have a look.

    Could you please tell me what's the exact reference of the internal STM32 arm?

    Best



  • I found it out. Thanks!



  • I'am use rak811 and this software - https://github.com/RAKWiskey/RAK811_LoRaMac_CoIDE. Node can not join the lora gateway. Console output:

    OTAA

    DevEui= 60-C5-A8-FF-FE-00-00-01

    AppEui= 11-22-33-44-55-66-77-88

    AppKey= 11 22 33 44 55 66 77 88 11 22 33 44 55 66 77 88

    Freq=868300000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868300000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868300000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868300000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868300000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868300000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868300000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868300000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868500000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868500000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868500000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868500000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868100000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868100000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868500000, txP=14 dbm, DR4 , txtime=114

    1.Frequency=868500000,Datarate=4,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Freq=868300000, txP=14 dbm, DR5 , txtime=62

    1.Frequency=868300000,Datarate=5,Bandwidth=0,RxWindowTimeout=9

    2.Frequency=869525000,Datarate=3,Bandwidth=0,RxWindowTimeout=9

    Gateway receive join request and send Join-Accept



  • Okay, let's test this question, thank you.



  • hi
    we updata the code , you can test again. thanks
    https://github.com/RAKWireless/RAK811_LoRaMac_CoIDE


Log in to reply
 

Looks like your connection to RAK Support Center was lost, please wait while we try to reconnect.