-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completly clear flash? #7
Comments
Sorry for taking so long to reply. Please correct me if I am wrong. BL602 has its built-in boot loader, which reads Flash in a specific format and load it into memory in runtime. So blflash will only write the necessary data. The rest of the data should not be loaded into memory(or mapping to address). I am not an expert in bl602, but I think it maybe something wrong with dtb. You can see all flash options by running |
It might well be the DTB. Thing is that I got another DT BL10 board which immediately works correctly performing the same steps as with my bricked(?) Magichome board (i.e. also using the same DTB). blflash will also apply the DTB definitions, won't it? |
By default, blflash will apply a built-in dtb even if no dtb parameter is specified. See ro_params.dtb. |
This was my understanding as well... so if i am able to use a vanilla compile of blflash and bl_iot_sdk and it works on the 2nd board everything should be fine and the same setup should also correctly flash/run on the Magichome board... alas it does not... :-( Could a potentially wrong flashed dtb have caused any damage on that board maybe? |
I have the same issue, mucked around with dtbs and now the board restarts even with the default dtb. I disabled automatic WiFi stack startup so I can definitely verify that it's WiFi-related - the reboot happens when I issue the
|
Interesting... Seems to match my observations. Any idea what might be the underlying cause? Could a DTB performa a persistent change in the SoC? |
See also apache/nuttx#4336. When building NuttX I need to use https://github.com/xouillet/bl_rfbin to merge the device tree otherwise Wifi doesn't work. Maybe it can also be used to reset the DTB? |
I am not sure where the problem is actually rooted but after some playing around, Wifi related stuff for my BL602 does not seem to work anymore. The SDK's demo bl602_demo_wifi flashes correctly but immediately gets into a reboot loop when booting the system. The sdk_app_http_client_socket firmware just prints on all WiFi related stuff "Wait Wi-Fi Mgr Startup..." in an endless loop.
I presume there is some junk somewhere in the flash memory left from previous attempts that now cause a problem. Is there a way to fully erase the flash with blflash so I can be sure everything is clean and tidy before reflashing a new firmware?
The text was updated successfully, but these errors were encountered: