可以引导到产品ion test mode via application firmware ?

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
uta_lc
Offline
Last seen:1 year 18 hours ago
加入:2016-05-03 07:39
可以引导到产品ion test mode via application firmware ?

Dear Dialogue support,

Our client is seeking a solution to boot into production test mode by triggering a software switch in their firmware. Can you please check if the following proposal is feasible?

1. burn boot loader combined with production test function into OTP - need to integrate bootloader and production test together into a single binary
2. burn application firmware into flash (2 banks)
3. when booting, normally boot into application firmware if a special flag (boot_into_production) is not set in the SRAM
4.while running application firmware, writing into certain UUID triggers the boot_into_production flag is set in the SRAM and a reboot is initiated
5. bootloader check the boot_into_production flag is set and boot into production test image

Is it possible to implement above procedure? What's the main catch if there is a way?

Looks like the key issue is how to preserve the boot_into_production flag after the reboot? Is there a solution to it?

Thanks for your attention,
uta_lc

Device:
PM_Dialog
Offline
Last seen:13 hours 47 min ago
工作人员
加入:2018-02-08 11:03
Hi uta_lc,

Hi uta_lc,

Be aware that integrating the secondary bootloader and the production test together into a single binary, this will be a little bit tricky. If you store the boot_into_production flag into the SRAM and when booting from otp, the firmware will be mirrored into the SRAM, so you will not be completely sure that the flag’s value will not be overwritten. I suppose that the safest way to do that is to store the value of the boot_into_production flag into the SPI flash.

Thanks, PM_Dialog