# Reset device without Xlnk function

**URL:** <https://discuss.pynq.io/t/reset-device-without-xlnk-function/3894>\
**Category:** Support\
**Created:** [March 23, 2022, 4:08am UTC](https://discuss.pynq.io/t/reset-device-without-xlnk-function/3894 "2022-03-23T04:08:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leeokki](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@leeokki](https://discuss.pynq.io/u/leeokki)\
**Post date:** [March 23, 2022, 4:08am UTC](https://discuss.pynq.io/t/reset-device-without-xlnk-function/3894/1 "2022-03-23T04:08:22Z")

</div>

Hi. I am using the Pynq - z1 with v2.7 offical image. and When I run the BNN-example offerred by the github. It reset with the Xlnk package like below which was removed in 2.7 image.

// Reset the device  
**from pynq import Xlnk**

**xlnk = Xlnk();**  
**xlnk.xlnk\_reset()**

How can I replace these code for software resetting?

the example link [BNN-PYNQ/CNV-BNN\_SVHN.ipynb at master · Xilinx/BNN-PYNQ · GitHub](https://github.com/Xilinx/BNN-PYNQ/blob/master/notebooks/CNV-BNN_SVHN.ipynb)

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [March 23, 2022, 8:37am UTC](https://discuss.pynq.io/t/reset-device-without-xlnk-function/3894/2 "2022-03-23T08:37:34Z")

</div>

Hi,

This has been asked a few times already. A solution is here [Repalcement for xlnk.xlnk\_reset() in PYNQ v2.7 - #8 by Annew](https://discuss.pynq.io/t/repalcement-for-xlnk-xlnk-reset-in-pynq-v2-7/3741/8)

Mario

---

<div class="post-metadata">

**Author:** ![leeokki](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@leeokki](https://discuss.pynq.io/u/leeokki)\
**Post date:** [March 23, 2022, 1:51pm UTC](https://discuss.pynq.io/t/reset-device-without-xlnk-function/3894/3 "2022-03-23T13:51:02Z")

</div>

Hello Marioruiz

I am not sure the was that same cause I am not deleting the specific part?  
If just for reseting the device as a software reset, what should I modify the parameter(the del function include) as the solution demo.

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [March 23, 2022, 2:15pm UTC](https://discuss.pynq.io/t/reset-device-without-xlnk-function/3894/4 "2022-03-23T14:15:20Z")

</div>

As mentioned in the link I shared, there is no replacement for this since 2.7. You have to remove this from the code.

Be aware that the BNN-PYNQ is not longer supported by the maintainers.
