Jump to content
  • 0

MicroBlaze resumes execution after reset and not restarting the application


Fawaz

Question

Hello,

I am trying to run simple application on MicroBlaze using Arty A7 development kit. I was able to run the application successfully from BRAM as expected without any issues. However, when I run on MIG, I noticed a strange behavior, after pushing the reset button, Microblaze continues the execution, and not restarting from the beginning.

Here is the C code I used:

 

#include <stdio.h>
#include "platform.h"
#include "xil_printf.h"
#include "unistd.h"

int i=0;

int main()
{
    init_platform();

    print("Hello World !!!!!!!!!!!!!!!!!!!!\n\r");
    while(1){
        print("bye\n\r");
        for (i=0;i<=1000000;i++){

i=i+1;

         }
    }
    cleanup_platform();
    return 0;
}

 

 

When executing, I see Hello World !!!!!!!!!!!!!!!!!!!!   with sequence of bye msgs. After pushing the reset, I see only bye msg. This means Microblaze resumed the execution and didnt start from main. I tried to boot from QSPI, and I also noticed similar behavior.

 

Below is the vivado doagram.

image.thumb.png.b7cb6e474f314395ff0a4c597ff5c572.png

 

 

 

Any Help would be appreciated.

 

Thank you,

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...