CASTELL DE VERNET, Sant Martí del Canigó, S-XI-XII