# Rebuilding and uploading gateware for LimeSDR mini

**URL:** <https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381>\
**Category:** LimeSDR\
**Created:** [1 November 2021 20:52 UTC](https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381 "2021-11-01T20:52:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nalostta](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nalostta](https://discourse.myriadrf.org/u/nalostta)\
**Post date:** [1 November 2021 20:52 UTC](https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381/1 "2021-11-01T20:52:04Z")

</div>

I want to modify the gateware on the limeSDR mini board but I am unable to make it work.

I tried to recompile the gateware shared in the github repository (LimeSDR mini factory gateware), convert it into a .rpd file and upload it to the limeSDR mini board to verify the src code to deployment process but Whenever I try to convert the programming file, I get a message saying 2 pages are needed for conversion:  
What does this mean?

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/a/a2cb8c9a2284e2650780acbd7c42fe9fff00a985.png)

Here is the config:

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/2/2d337acb0695a25f4b5ea77cd2201e0b701165cc.jpeg)

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [2 November 2021 08:52 UTC](https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381/2 "2021-11-02T08:52:19Z")

</div>

@Zack, any suggestions?

---

<div class="post-metadata">

**Author:** ![Zack](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/zack/32/89_2.png) [@Zack](https://discourse.myriadrf.org/u/Zack)\
**Post date:** [3 November 2021 10:56 UTC](https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381/3 "2021-11-03T10:56:44Z")

</div>

Hi @nalostta,

Use gen\_pof\_file.cof from:

> **[LimeSDR-Mini\_GW/LimeSDR-Mini\_bitstreams at master · myriadrf/LimeSDR-Mini\_GW](https://github.com/myriadrf/LimeSDR-Mini_GW/tree/master/LimeSDR-Mini_bitstreams)**
>
> master/LimeSDR-Mini\_bitstreams

---

<div class="post-metadata">

**Author:** ![nalostta](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nalostta](https://discourse.myriadrf.org/u/nalostta)\
**Post date:** [9 November 2021 20:49 UTC](https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381/4 "2021-11-09T20:49:39Z")

</div>

Thank you so much @Zack! I was able to rebuild the gateware and upload it.

I have followup question,  
I tried to modify the system in the top-level design by connecting the terminals of the led1\_R and led1\_G to a counter. I was able to generate the programming data file but upon uploading it the modifications did not appear and the system seemed to working exactly as it did unmodified.

I added a small counter into the design to implement the blinking part as follows: (the blue wires are the additions along with the counter block):

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/3/375a23aa8a9c6ed18a405ce2708a37ff87aa719b.png)

---

<div class="post-metadata">

**Author:** ![Zack](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/zack/32/89_2.png) [@Zack](https://discourse.myriadrf.org/u/Zack)\
**Post date:** [10 November 2021 07:29 UTC](https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381/5 "2021-11-10T07:29:11Z")

</div>

Hi @nalostta,  
It looks like you are using old bitstream file. Just make sure you point to recompiled file in the pof.

---

<div class="post-metadata">

**Author:** ![nalostta](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nalostta](https://discourse.myriadrf.org/u/nalostta)\
**Post date:** [10 November 2021 14:07 UTC](https://discourse.myriadrf.org/t/rebuilding-and-uploading-gateware-for-limesdr-mini/7381/6 "2021-11-10T14:07:06Z")

</div>

![image](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/3/3b338ec01daef6b87c98c721ef609cee9f9dfbe3.png)

I checked the timestamps of “LimeSDR-Mini\_factory.sof” file, they were the latest and I also selected a new path for the pof file. still the same issue. Also I haven’t modified the LimeSDR-mini\_lms\_trx.sof is that also required to be modified?

From what I understand, the 2 paged sof files are the inputs and the pof is the conversion output (along with rpd) correct?
