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:
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
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
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
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
Hi wisilica,
No, i dont see any issue on this, just the fast booting of the device.
Thanks MT_dialog