Flashing a MicroBlaze Program

Flashing a MicroBlaze Program

Step 1: Preparing for Programming

Navigate to Project Settings->Bitstream. Check the box next to -bin-file so Vivado knows to generate a bin file as well as a bit file.
Run synthesis and open the synthesized design. go to Tools->Edit Device Properties. Under General Set the Enable Bitstream Compression to “TRUE”. Under Configuration set the Configuration Rate (Mhz) to “33”. Finally under Configuration Modes select Master SPI x4. The settings for the Configuration Rate and Mode may differ for your board so check the documentation for your board.

Click OK and save the design.
Now generate the bitstream.



Step 2: Generating the Programming File From the SDK

Once the bitstream has finished generating export the hardware including the bitstream. Launch the SDK and create your C project as normal. Build the project to generate an .ELF file. This file will be used in the following steps to program the board.

Step 3: Adding the ELF to the Vivado Project

Return to Vivado and add a new constraint to the project. Locate the .ELF file generated by the SDK.

Step 4: Associate the ELF With the MicroBlaze

Open the block design and right click on the MicroBlaze block. Select the “Associate ELF files” option. Find the Design Sources->system_i->microblaze_0 and click the “…” button on the right of the window. Navigate to the .ELF file as in the last step, select it and click OK until you are back to the main window of Vivado.

Step 5: Program the Board

Regenerate the bitstream, this will build the c program into the binary.
Open the Hardware Manager and open the device.
Vivado will now erase and reprogram the memory on the board.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值