Skip to content

Comment on Raspberry Pi Pico: What is this code doing in its boot ROM, line 442?parent

Comments

A trampoline in code is something you jump off of - essentially, a redirection snippet. You jump into it and it bounces you somewhere else.

In this case, the use is documented where it's implemented: https://github.com/raspberrypi/pico-bootrom/blob/master/boot... . It's a custom wrapper to call ROM functions. When the ROM function returns, the trampoline executes a debugger breakpoint. This is done so that the debugger can call into ROM easily without needing to set a hardware breakpoint.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.