Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Notes

  • can apply to read-only (ROPI) or read-write (RWPI)

  • use cases

    • protocol stack as as use case for PIC and PID

      • discusses specifically Nordic’s SoftDevice

    • data sets: we load the data at some address, a bit like a filesystem

    • program loader

      • discussion source level debugging of both images (bootloader and application)

  • other webinars on bootloader, ask fae@iar.com

  • IAR allows you to load multiple images

    • either binary file, in which case you manually specify offset

    • or ELF file, which already contains the offset

  • using possible independent allows loading of two apps without copying code over

  • examples though tech notes: https://www.iar.com/knowledge/support/technical-notes/compiler/ewarm-position-independent-code-and-data-ropi-and-rwpi-ewarm-5.50/

  • https://www.iar.com/academy is a great way of learning IAR

  • icf file uses exported symbol so application can use it (compiler and linker pull it at compile time)

Slides

...

Slides

View file
nameAll you need to know about Position-Independent Code and Data (PIC and PID).pdf