How To Install gpsim on Debian 11

In this tutorial we learn how to install gpsim on Debian 11. gpsim is Simulator for Microchips PIC microcontrollers

Introduction

In this tutorial we learn how to install gpsim on Debian 11.

What is gpsim

gpsim is:

Gpsim is a full-featured software simulator for Microchip PIC microcontrollers.

Gpsim has been designed to be as accurate as possible. Accuracy includes the entire PIC - from the core to the I/O pins and including ALL of the internal peripherals. Thus it’s possible to create stimuli and tie them to the I/O pins and test the PIC the same PIC the same way you would in the real world.

Gpsim has been designed to be as fast as possible. Real time simulation speeds of 20Mhz PICs are possible.

Gpsim has been designed to be as useful as possible. The standard simulation paradigm including breakpoints, single stepping, disassembling, memory inspect & change, have been implemented. In addition, gpsim supports many debugging features that are only available with in-circuit emulators. For example, a continuous trace buffer tracks every action of the simulator. Also, it’s possible to set read and write break points on values (e.g. break if a specific value is read from or written to a register).

There are three methods to install gpsim on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install gpsim Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install gpsim using apt-get by running the following command:

sudo apt-get -y install gpsim

Install gpsim Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install gpsim using apt by running the following command:

sudo apt -y install gpsim

Install gpsim Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install gpsim using aptitude by running the following command:

sudo aptitude -y install gpsim

How To Uninstall gpsim on Debian 11

To uninstall only the gpsim package we can use the following command:

sudo apt-get remove gpsim

Uninstall gpsim And Its Dependencies

To uninstall gpsim and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove gpsim

Remove gpsim Configurations and Data

To remove gpsim configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge gpsim

Remove gpsim configuration, data, and all of its dependencies

We can use the following command to remove gpsim configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge gpsim

Dependencies

gpsim have the following dependencies:

References

Summary

In this tutorial we learn how to install gpsim package on Debian 11 using different package management tools: apt, apt-get and aptitude.