Forum Discussion
Nooraini_Y_Intel
Frequent Contributor
7 years agoHi MJone6,
Why do you need to control the nCONFIG pin? There is no need to control the nCONFIG pin at all. You only need to set these 2 bit config_sel_overwrite bit and config_sel bit before triggering the reconfiguration. Did you try to read Read reconfiguration trigger status to check the actual error? Previously I have tested the Dual Boot IP functionin correctly with a simple code as shown in the snippet below:
case 2: /*set CONFIG_SEL overwrite to 1 and CONFIG_SEL to 0*/
IOWR(DUAL_BOOT_0_BASE, 1, 0x00000001);
state++;
break;
case 3: /*Trigger reconfiguration to Image 0*/
if(IORD(DUAL_BOOT_0_BASE,3) == 0)
{
IOWR(DUAL_BOOT_0_BASE, 0, 0x00000001);
state=0;
}
break;
case 4: /*set CONFIG_SEL overwrite to 1 and CONFIG_SEL to 1*/
IOWR(DUAL_BOOT_0_BASE, 1, 0x00000003);
state++;
break;
case 5: /*Trigger reconfiguration to Image 1*/
if(IORD(DUAL_BOOT_0_BASE,3) == 0)
{
IOWR(DUAL_BOOT_0_BASE, 0, 0x00000001);
state=0;
}
break;Regards,
Nooraini