Jump to content
  • 0

Error in Debugging the Nexys A7 50T using PlatformIO


Vincent Abraham

Question

I’m trying to debug a program Factorial.c on the Nexys A7 50T FPGA board using PlatformIO. I have procured its bitstream file from the GitHub repository.

Shown below is the platformio.ini code:

[env:swervolf_nexys]

platform = chipsalliance

board = swervolf_nexys

framework = wd-riscv-sdk

monitor_speed = 115200

 

board_build.bitstream_file = D:\STUDIES\NexysFiles\Nexys-A7-50T-OOB-2018.2-1\vivado_proj\Nexys-A7-50T-OOB.runs\impl_1\nexys50t.bit

 

Shown below is the program code:

#if defined(D_NEXYS_A7)

   #include <bsp_printf.h>

   #include <bsp_mem_map.h>

   #include <bsp_version.h>

#else

   PRE_COMPILED_MSG("no platform was defined")

#endif

#include <psp_api.h>

#define N 7

 

int main(void)

{  

    int fact = 1;

    int temp = N;

    while(temp > 0){

        fact *= temp;

        temp -= 1; 

    }

    uartInit(); // Initialize UART

    printfNexys("Factorial of %d: %d ", N, fact);

}

 

Using PlatformIO, the bitstream is uploaded successfully on the board:

image.png.c238e3e4beab3eecfc4b1b4e34e46c10.png

After clicking on “Run Debug”, the compilation is also done successfully:

image.png.4ca1b54be1f7502ccbca1d537d8259c2.png

But the debug console fails with the following errors:

image.thumb.png.6a2caa31443b5ef66fc19835c97aeae3.png

image.png.287a366473dfce6e597fb9113b493356.png

My current driver used is:

image.png.07137db6fce629ec491c36e676f92b4b.png

I have installed it using Zadig and have also tried reinstalling the driver but the same issue persists. Please help me resolve this issue.

image.png

Edited by Vincent Abraham
mistake
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...