文章详情

ID: 2155
实例类型: faq
分类: Device Programming
相关: ispVM System
产品系列: MachXO2

搜索答案数据库

Search Text Image

MachXO2/MachXO3: How can you determine if the MachXO2 has booted from the internal flash or SPI flash using dual boot?

Solution:

You can read the Flash and SRAM Status Register using ispVM or Diamond Programmer. Here are the steps to follow:


1)) Device powers up check the DONE SRAM Status Register (1=Device booted successfully, 0=Device did not boot successfully)


2) If the DONE SRAM Status Register = 1 now check to see how the device booted


3) Flash Status Register bit SPIm Fail 1 bit will be set to 0 if the boot was from the Flash, 1 if the boot was from SPI. This could also be confirmed by Read the DONE Flash Status Register (1=Pattern in the Flash, 0=No pattern in the flash)