Article Details

ID: 2155
Case Type: faq
Category: Device Programming
Related To: ispVM System
Family: MachXO2

Search Answer Database

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)