Before we start, I assume that you have embedded hardware for system design and implementation.

If not, it's okay. We can still use virtualization technology to do

Environment setup

Since my target machine is based on ARM, I need to prepare a cross-platform tool chain to compile and build the target binary file

sudo apt-get install -y g++-aarch64-linux-gnu ## Virtualization tool used for further simulation ## If you have hardware, you can skip this installation sudo apt-get install -y qemu-system-aarch64

I don't think we need to do complicated things, such as compiling the source codeโ€ฆ, so we download directly from the package manager.

After installing the toolchain, you should have these tools.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

And the qemu system.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

If you have completed the above installation, you can go to the next section to do a simple implementation.

But every engineer always encounters bugs, one comes after anotherโ€ฆ

[Optinoal] Debugger compilation

## Step 1 wget http://ftp.gnu.org/gnu/gdb/gdb-9.1.tar.gz ## Step 2 tar -xvf gdb-9.1.tar.gz gdb-9.1/ ## Step 3 cd gdb-9.1 && mkdir build ## Step 4 ../configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-linux-gnu ## Step 5 export CC=aarch64-linux-gnu-gcc ## Step 6 sudo make ## Step 7 sudo make install

Step 6 -

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Step 7 -
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’


@ arm platform series - 0

tags: CY