For what it's worth, a lot of Gibraltar courts martial proceedings are recorded in the Garrison Orders in the War Office papers at TNA. The Garrison Orders for 1802-5 are at WO 284/12, WO 284/13, and WO 284/14.
Jacqueline