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.
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.
Question
Fawaz
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.
Any Help would be appreciated.
Thank you,
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.