Jump to content
  • 0

Confusing phenomenon when verifying PmodBT2 in Vivado 2018.3 and SDK2018.3


HomaGOD

Question

When building microblaze in SDK, it prompts that some parameters are undefined, especially those related to axi_uartlite.(Does that be related to not adding )

For example, #define SYS_UART_DEVICE_ID      XPAR_AXI_UARTLITE_0_DEVICE_ID can not be found during executing. 

 

image.thumb.png.ce247c7775d7c5631b7b5587dc563e2f.png

 

Link to comment
Share on other sites

17 answers to this question

Recommended Posts

  • 0

This is the initial error when I re-install vivado2015.3 and re-build microblaze.

Still, same error occur, which makes me collapsed. 

Having tried numerous ways, they ALL turn to fail.

Wish your help, all engineers and professionals.

 

image.png.db3bd9b9cdd8a7b8880cd48af86daf96.png

Link to comment
Share on other sites

  • 0
3 hours ago, thinkthinkthink said:

Have you looked in xparameters.h for the correct definition of your uart's DEVICE ID ?

I looked up to it. The error finally is resolved when I add axi_uartlite IP to board design diagram. 

However, when I run the applicaiton project as "Launch on Hardware", Recv data displays all zero in HEX and space in ASCII on UartAssist as follows.

image.png.af1dca3c9c725c6e68ba7633cd2f2caa.png

image.png.685363e8fd431095245b579efd84003a.png

 

 

The correct situation should be that Recv HEX displays "Initialized PmodBT2 Demo Received data will be echoed here, type to send data". It seems that FPGA cannot send data to PC. How should I find where the problems exist?

Thank you very much.

HomaGOD

 

The next screenshot display the running info when I run as Hardware, which I think might help you judge the porblem.

image.png.4adb1728429ad032c0485a0940b57655.png

Edited by HomaGOD
Link to comment
Share on other sites

  • 0
6 hours ago, thinkthinkthink said:

The PmodBT2 IP already contains an UART IP inside it no need to add another one in your block design, you just need to look in the xparameters.h header file for the correct DEVICE ID of that UART.

Strange is that I do not find the DEVICE ID in the xparameters.h, which confuses me a lot.

Link to comment
Share on other sites

  • 0
17 hours ago, Ana-Maria Balas said:

@HomaGOD,

Could you post a screencapture of your whole block design from Vivado? Then screen capture from the Adress Editor tab?

Thanks for your reply and sorry for the late reply.

Next is the whole block design from Vivado.

123.thumb.png.0a25f377402d115559c20c038dd844e8.png

 

This figure is screen capture from the Address Editor tab and .hdf file read in SDK.

1171412958_addresseditor.PNG.61650db04a105158cb264b2fb5d235ca.PNG

111160812_.PNG.f30ff1e4c152774818f9798875235db3.PNG

 

For convenience, I want to upload the whole project file created in vivado2017.4. That is because that the tool can't find the Microblaze GCC like the following screen capture. But there is a limit of file size, is there any other alternative?

error_in_vivado2018.3.png.91bd4649b416f74a1bf653c9750fce7b.png

 

Link to comment
Share on other sites

  • 0

Go to your hardware platform in vitis and double click on platform.spr, once that opens click on the Modify BSP Settings... button.

image.thumb.png.2d2e23073961a209589f3908f91117f6.png

A new window will popup and then go to standalone under the Overview dropdown. Make sure that both stdin and stdout have their Value field set to axi_uartlite_0 (or whatever name your axi uartlite ip that you added later has). If you had to change them then don't forget to rebuild the whole workspace (meaning both the hardware platform and the application project).

image.png.9c90af7f8583bc884d942fa18d72c225.png

I don't get any of the errors you get while trying to create a project like yours, except that Vitis can't create an .elf file and my theory, just like James Colvin has told you, is that unfortunately the Basys3 does not have sufficient BRAM and no RAM to run applications like this one.

Edited by thinkthinkthink
Link to comment
Share on other sites

  • 0
On 11/4/2021 at 4:56 PM, thinkthinkthink said:

Go to your hardware platform in vitis and double click on platform.spr, once that opens click on the Modify BSP Settings... button.

image.thumb.png.2d2e23073961a209589f3908f91117f6.png

A new window will popup and then go to standalone under the Overview dropdown. Make sure that both stdin and stdout have their Value field set to axi_uartlite_0 (or whatever name your axi uartlite ip that you added later has). If you had to change them then don't forget to rebuild the whole workspace (meaning both the hardware platform and the application project).

image.png.9c90af7f8583bc884d942fa18d72c225.png

I don't get any of the errors you get while trying to create a project like yours, except that Vitis can't create an .elf file and my theory, just like James Colvin has told you, is that unfortunately the Basys3 does not have sufficient BRAM and no RAM to run applications like this one.

 

Many thanks to your warm reply and sorry for my late reply.

First, Confusing is that when I clicks on the Modify BSP Settings... button, the value of both stdin and stdout is NONE ratherthan axi_uartlite_0. Would you please be so kind to give me some guidance.

Second, I noticed that there is an error in your screen capture of kojima_system tab as is marked in the following figrue. Could you be please provide a figure with that error if convenient? Thank you. 

image.png.ef12f54895825a802c8278304b93a8d0.png

 

image.png.50f04096e1a21bdbad0dc4b6effcd4ac.png

 

Besides, I have confusion about the theory you and James Colvin have told me.

I have looked up to the user manual of Basys3, which says it has 50 BRAM, with every BRAM's scale is 36kb, thus Basys3 can provide 225KB(50*36kb/8) size of BRAM. Meantime, I open the implemented design and report the utilization of the whole board design. It prompts that it only consuming 8% of the BRAM.

Therefore, I do not know how to judge whether Basys3 has sufficient BRAM to run applications like BlueTooth transmission. In other words, what is the common basis of judgment?

image.png.e9f3c2f7e75c2bec8b3ffa357cb81735.png

 

Finally, what I want to add is that this link http://digilent.com.cn/community/222.html#top gives a proof that Basys3 can run demo application (print some info). 

But the above design's demo program is unlike main.c in directory xxx\drivers\PmodBT2_v1_0\examples, maybe different versions of example program require different BRAM? Of course, this is only my personal guess.

Wish your reply, when convenient.

 

Thanks,

HomaGOD

 

Edited by HomaGOD
add some info
Link to comment
Share on other sites

  • 0
23 hours ago, thinkthinkthink said:

image.thumb.png.7b179354a61e13c944494a01484a2042.png

This is the error I was getting, but look at what it says when I scroll to the right. BRAM has overflowed.

image.thumb.png.874b29fd87e63780a4b3778505b6fe01.png

 

To change stdin and stdout you can just choose from the dropdown list in their Value field.

image.png.44d208362d0fc407b035e4686aa0f07e.png

 

Thanks for your warm reply!

Strange is that I can not set the value of stdin and stdout as axi_uartlite_0. The dropdown list of of Value field is none like this. I do not know what went wrong.

737284612__20211109144410.png.97b5e0cee338f9e25bb29d39dc9d43d0.png

 

 

Secondly, the error you presented really makes sense. But, strange is that the results of my building platform and application are quite different from yours.

Everytime when I build application, it always prompts fatal error: xuartlite.h: No such file or directory, which confuses me a lot.

image.thumb.png.70316b79e4b3214bc6dcb71a8310daed.png

 

image.thumb.png.fa58934eaea675d946071ba6c159903b.png

 

I attach the .xsa file, would you please spare time to check what went wrong if convenient?

 

Thanks a lot.

HomaGOD.

 

BT2_design_wrapper.xsa

Link to comment
Share on other sites

  • 0
4 hours ago, thinkthinkthink said:

Do you even have an AXI UartLite IP in your block design ? If not you have to add it, re-Generate Bitstream and export hardware, then go to Vitis, right click on your hardware platform and select Update Hardware Specification.  

image.png.55b0d5a28079fc361cdf00c00c165744.png

 

I do not add an AXI UartLite IP in my block design in that I remember a digilent engineer told me that there is already an UART ip in PmodBT2.

 

According to your hint, I right click on my hardware platform and select Update Hardware Specification, but it failed. The error info is as follows.

image.png.b28ef57fe33c5e7ca54b32465785a3ca.png

 

Edited by HomaGOD
Link to comment
Share on other sites

  • 0
7 hours ago, thinkthinkthink said:

Well you need to add an axi uartlite to your block design cuz the uart inside PmodBT2 is for a different purpose.

Could you please give a more detailed description of the uart inside PmodBT2?

Then, I add an axi uartlite to my block design, re-generate bitstream and build the platform and application project.

But no error occurs, especially related to BRAM, which is shocking.

The next two screen-captures are console info after I build the application.

image.png.0770ab9d650fbcd56376785289159753.png

 

image.thumb.png.f915908c61a2814aea225de4382a90db.png

 

Still, sometimes after I build application project, it prompts that make: Nothing to be done for 'all'.

image.png.51d52ef2f722ff3d1d539e045fdc7a2b.png

 

What is the difference between the two parts that the arrow points to in the next screen-capture? 

image.thumb.png.727ac280175e1d226e33c3e36a10c58a.png

 

Thanks a lot in advance.

Wish your reply.

HomaGOD.

 

Edited by HomaGOD
Link to comment
Share on other sites

  • 0
On 11/8/2021 at 3:43 PM, thinkthinkthink said:

image.thumb.png.7b179354a61e13c944494a01484a2042.png

This is the error I was getting, but look at what it says when I scroll to the right. BRAM has overflowed.

image.thumb.png.874b29fd87e63780a4b3778505b6fe01.png

 

I just remember that your error about BRAM might should be related to the following settings. In my design, I set Local Memory optons as 32KB.

This might explain why I do not met with an error as yours.

 image.png.2499848e3c084ca07e1c6301afd5e489.png

 

 

Link to comment
Share on other sites

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...