He was at the Battle of Roliça (17 August) and commanded his corps at Vimeiro on 21 August.