⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
wisilica
Offline
Last seen:10 months 4 weeks ago
加入:2015-03-17 08:16
Boot from SPI flash - U

Hi,

We have already designed a custom board, with SPI pins P0_0 as CLK, P0_1 as CS, P0_2 as MISO and P0_3 as MOSI. The device has to boot from flash. Is there any work around, for overriding the default pin configuration required for booting from flash ? Please suggest.

Thanks

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi wisilica,

Hi wisilica,

The only workaround requires the secondary bootloader, so you can use the secondary bootloader burned in OTP in order for the 585 upon bootup to load the secondary loader and then the loader to use your custom pins on order to boot from an external flash memory. In order to do so, change define the SUPPORT_AN_B_001 and have only the flash support defined (SPI_FLASH_SUPPORTED) and offcourse change the pins of the SPI interface.

Thanks MT_dialog

wisilica
Offline
Last seen:10 months 4 weeks ago
加入:2015-03-17 08:16
Hi,

Hi,

非常感谢您的及时回复。We have performed the steps you have suggested, and the device got successfully booted up from flash. I would also like to know if the loading of secondary bootloader to the OTP, would have any repercussions on the performance of the device, in terms of speed or other implications.

Thanks

MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi wisilica,

Hi wisilica,

Yes it will have some repercussions, the device will boot faster since it will immidiatelly boot from OTP and will immidiatelly search for the flash in the specified pins instead of executing the bootloader thus searching each interface for a way to boot, as long as you are operating in extended sleep without OTP copy offcourse.

Thanks MT_dialog

wisilica
Offline
Last seen:10 months 4 weeks ago
加入:2015-03-17 08:16
Hi,

Hi,

The default sleep mode is ARCH_EXT_SLEEP_ON. And, we are only placing the secondary bootloader in the OTP. The code is placed entirely in the flash. So, it should not have impercussions know ?

Thanks

MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi wisilica,

Hi wisilica,

No, i dont see any issue on this, just the fast booting of the device.

Thanks MT_dialog