logo elektroda
logo elektroda
X
logo elektroda

BL602 Temperature-Humidity Sensor Flashing Issue: BFLB Flash Size Overflow

maxim2002 468 4
ADVERTISEMENT
  • #1 21433996
    maxim2002
    Level 13  
    Hi, I've just picked up couple of temperature-humidity sensors from aliexpress. This time they on BL602 soc.
    Circuit board of a temperature-humidity sensor with electronic components on a green background.

    I've went through this topic and some others but still facing issues that I can't resolve. One of the first bumps I've hit was board pin labels. They are hidden on the back side of the board. RX and TX is swapped around. You have to connect your UART programmer RX to RX and TX to TX (maybe its just manufacturer specific, idk). I was unable to flash OpenBL602_1.18.37.bin using BouffaloLabDevCube-v1.9.0 settings presented in other topics. Every time I've selected ./chips/bl602/partition/partition_cfg_2M.toml I was hitted with "ErrorMsg: BFLB FLASH SIZE OVER FLOW", here is some more of the output:
    Code: Text
    Log in, to see the code

    So I've went for smaller size (not sure if that is the way to go), but figured since firmware is ~786,5 kB it should fit. This how my settings look like:
    Bouffalo Lab Dev Cube interface version 1.9.0 with flash settings for BL602.
    As you can see I'm using shipped with BouffaloLabDevCube startup, configuration and bootloader files. I've tried different combinations, including those from OpenBL602 repo - without any luck if i use 2M partition table.

    This is final part of the output when flashing with 1M partition table:
    Code: Text
    Log in, to see the code

    Board boots, it drains only 9-10mA and debug output looks as follows:
    Code: Text
    Log in, to see the code

    Unfortunatelly can't find device AP over the Wifi.
    Any help would be appreciated.
    Thank you.
  • ADVERTISEMENT
  • #2 21434025
    p.kaczmarek2
    Moderator Smart Home
    It's probably a 1MB flash version?

    It's being worked on like, right now, and I think you can help maybe with testing? Please check this topic:
    https://www.elektroda.com/rtvforum/topic4086736.html#21301826

    Do you have original flash backup?

    PS: This topic may be interesting for @divadiow @miegapele
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #4 21434048
    maxim2002
    Level 13  
    Yes, most likely it's 1MB. Have no firmware from this specific subject (that Chinese app "Create & Download" button got me confused with Erase flag set to True). But as mentioned I've got a couple of them. Will grab and push the dump from fresh sensor tomorrow. Sure, happy to help with whatever I can.
ADVERTISEMENT