Wiki has quite a bit about mining and metal production in pre-colonial & colonial Mexico
https://en.wikipedia.org/wiki/Traditional_metal_working_in_Mexico
The Aztecs made decorative/religious items with gold & silver
Mining was a major effort of the Spanish, enslaving the nativos, but the gold, silver, copper, iron, lead, platinum and tin was shipped to Spain and metal working was significantly restricted for fear the nativos would make weapons. It does seem unlikely that the bronze canon was made in Mexico.

Article about the first modern foundry, and lots of British mining engineers were part of the industry
https://storymaps.arcgis.com/stories/4b7914111d014832899362c53def7c97