Webinar
All you need to know about Position-Independent Code and Data (PIC and PID)
- On-demand
- 40 min
When a MCU or MPU wants to run an update or new image, it must first load it into memory. Code that can run regardless of where it is loaded is so called position-independent code, while code that needs to be loaded into a specific location is called position-dependent or absolute code.
In some systems, the code image can be quite complex because the complete program consists of several images which increases the complexity when it comes to coding, memory allocation and debugging.
In this webinar, we will talk about the different strategies that are available for multiple image loading when working with position-dependent/absolute or position-independent code and data. We will explore the differences and advantages of each use case and show you how to setup the projects and how to perform debugging of multiple images, especially when you take advantage of the position-independent code that professional tools can generate.
Working with multiple images simultaneously with absolute code or with PC-relative references and optimizing the available resources can be challenging, but it all can be tackled easily if you know how to use the development tools properly.