RAK473 in Deepsleep loop - how to break out?



  • Hi

    By accident I uploaded a firmware which sets my rak611 (rak473) into deepsleep for 1min. after setup/init. How can I prevent this and enable firmware upload again? I read to set PIN18 to GND. If I do this, the BLUE LED3 lights up, but the sleep cycle still exists. Is this because I set the gpios to output? before deepsleep?

    Oh no - I hope I didn't brick the module - thx for help! :(



  • One idea: is there a way to get into AT-command mode and earse the current firmware? how?



  • on serial output (PIN 32) I get:

    ===================
    <RTL8195A>
    =========================================================
    ROM Version: 0.3
    Build ToolChain Version: gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003) 
    =========================================================
    Check boot type form eFuse
    SPI Initial
    Image1 length: 0x3a88, Image Addr: 0x10000bc8
    Image1 Validate OK, Going jump to Image1
    BOOT from Flash:YES
    ===== Enter Image 1 ====
    SDR Controller Init
    load NEW fw 1
    Flash Image2:Addr 0x80000, Len 195292, Load to SRAM 0x10006000
    Image3 length: 0x17b79, Image3 Addr: 0x30000000
    Img2 Sign: RTKWin, InfaStart @ 0x10006049 
    ===== Enter Image 2 ====
    Firmware revision version: 2
    led 0 init:
    key 0 init:
    [GPIO Err]HAL_GPIO_MaskIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_UserRegIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_IntCtrl_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]HAL_GPIO_UnMaskIrq_8195a: This pin(24:87) is'nt an interrupt pin
    led 1 init:
    key 1 init:
    [GPIO Err]HAL_GPIO_MaskIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_UserRegIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_IntCtrl_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]HAL_GPIO_UnMaskIrq_8195a: This pin(24:87) is'nt an interrupt pin
    led 2 init:
    key 2 init:
    [GPIO Err]HAL_GPIO_MaskIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_UserRegIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_IntCtrl_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]HAL_GPIO_UnMaskIrq_8195a: This pin(24:87) is'nt an interrupt pi
    led 3 init
    key 3 init:
    [GPIO Err]HAL_GPIO_MaskIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_UserRegIrq_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]Only GPIO PORT_A can be Interrupt Source
    [GPIO Err]HAL_GPIO_IntCtrl_8195a: This pin(24:87) is'nt an interrupt pin
    [GPIO Err]HAL_GPIO_UnMaskIrq_8195a: This pin(24:87) is'nt an interrupt pin
    


  • do you have the creator pro board for programming rak611?



  • @harry yes



  • Can' t you upload firmware now ? I think the deepsleep did not effect the upload. notice that when upload firmware, do not connect battery.



  • @harry No I can't. It looks like the deepsleep effects the upload completely with or without battery...
    I'm pretty sure I tried this before, but will do one more time later.. and let you know.. thx



  • Can you send your code which lead this problem, let me to have a test?



  • @harry Good new: I finally was able to flash a new firmware. I did as you describe, just connected the dash via all JTAG cable + no battery. Baam - it work. I bet I did this before - apparently not. Weird.

    Thanks for your help!


Log in to reply
 

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