The Deutsche Werft shipyard in Hamburg built her during 1941, she was completed in December, ready for her working-up period in the Baltic Sea to train her crew and iron out any engineering problems.
Following this, she was detailed to cross the Atlantic Ocean and operate off the northern coast of South America in order to catch unescorted Allied shipping heading for or leaving the Panama Canal.
[4] Departing from Kiel on the 15 August 1942, U-512 headed into the Atlantic via the Norwegian coast and the gap between Iceland and the Faeroe Islands and then to the southwest, arriving in her designated patrol zone by the second week in September.
[7] On the 2 October, while still lurking off the South American coast, U-512 was spotted off Cayenne by a B-18 Bolo aircraft belonging to the 99th Bombardment Group of the United States Army Air Forces.
Only one man, Matrosengefreiter Franz Machon (Polish: Franciszek Machoń) escaped the boat and was rescued from his raft by the Wickes-class destroyer USS Ellis ten days later.