The former Brazilian president is on trial for his role in an alleged attempted coup, which he denies.