It would be interesting to see if there are any decoupling capacitors under the metal shielding. I've did some MCU PCB design in the past and I remember that datasheed required putting a 100nF capacitor on each VDD pin within like few mm of it.
I don't see much point doing that if board works fine at 3.6V. You will not be using bare module anyway. And hopefully it works then in it's original place.
So OBK now works on 1MB BL602? Good job guys! I'm glad to hear it's working. So to sum up, what were the changes required to run on 1MB Flash version? Do we need a separate 1MB Flash build or does it all just boils down to setting TOML file in the flash tool?
Maybe we can create a separate topic/guide for that once we test it well so others don't have to dig through many posts. We already had 2 other questions about the same 1MB BL602 in the last few days.
I have been distracted with my apparent power problem with this module, so have not progressed in testing. I have been adding capacitors in an attempt to get it stable. No stability even at 3.6v.
Would be good to have someone else try a 1MB device. Or I could solder back into original DS-1211AN I suppose.
Ideally, it'd be operational test module. My multimeter doesn't have a capacitance test mode. @p.kaczmarek2 said try 100nF but I've only found 100uF in my collection so far. Have been also using 22pF in parallel with 100uF test.
So it works without EasyFlash, which is not very useful
What was exactly the EasyFlash problem? Wrong storage offset? Wrong storage size? Can we fix it by changing this offset, creating a separate obk binary for 1MB BL602?
to confirm, nothing saves at the moment (as stated earlier), always in AP mode after reboot. Client is incredibly quick to finish wifi negotiation with AP it seems.
Congratulations on successful boot >>21434069. Odd that your uart log doesn't show partition table Not sure if you didn't add any mods to OpenBL602 sdk, but was unable to replicate it on my bl602 temp-hum sensor using @miegapele fork and no_easyflash branch.
Still being hit with boot freeze.
Code: Text
Log in, to see the code
Played a bit with pine64 and bouffalolab (master and dev_602 branches) sdks...
"Hello world" always works fine, but whenever I'm trying wifi or anything more complicated it gets stuck exactly same place.
Not really an expert in this... are you able to share your setup that brought you guys to this flawless success ?
My module is back in original device where 3.3v through test pad provides necessary stability through capacitors /resistors I do not have separately to get module stable on its own. So, ready for testing requests.
I've played with it a bit. Appears that it freezes directly at components/hal_drv/bl602_hal/bl_flash.c @78
Code: C / C++
Log in, to see the code
Tries to read correct address as set in PSM parition:
[ 7][INFO : bl_flash.c: 78] before RomDriver_XIP_SFlash_Read_With_Lock addr: 0xE9000
It's prob something at chip config lvl... but figuring what is way above my pay grade.
Sure. Tried both partition tables (yours and buffalo) - same result, freezed.
PSM 0x000e9000
Code: Text
Log in, to see the code
PSM 0x000f9000
Code: Text
Log in, to see the code
Added after 9 [minutes]:
Not sure if that the correct place, but if this BL602L10 is actually 1MB, why the sdk/OpenBL602/components/platform/soc/bl602/bl602/evb/ld/flash.ld has this ?
Code: Text
Log in, to see the code
I've went through couple of articles from this guy https://lupyuen.github.io/ but it just convinced me to grab some books
Hmm, looks correct, but not sure.
Another idea to try maybe remove romdriver too?
there is CONFIG_BL602_USE_ROM_DRIVER :=1 below in that file. Maybe try 0?
The discussion revolves around the Cozylife DS-1211AN 3-gang touch wall switch, which utilizes a 1MB BL602 chip, making it challenging to free from Cozylife's cloud services. Users explore the possibility of replacing the BL602 with an ESP-12S module, discussing GPIO configurations and the need for additional resistors for proper booting. Several users share their experiences with firmware modifications, including attempts to disable EasyFlash and adjust partition tables to accommodate the 1MB flash size. The conversation highlights issues with power supply stability, boot loops, and the need for specific configurations in the toml files to achieve successful firmware flashing. Ultimately, a successful build for the 1MB BL602 is achieved, allowing for further development and testing. Summary generated by the language model.