* "A defendant in a criminal case has the right of appeal under these rules. The trial court shall enter a certification of the defendant's right to appeal in every case in which it enters a judgment of guilt or other appealable order. In a plea bargain case -- that is, a case in which a defendant's plea was guilty or nolo contendere and the punishment did not exceed the punishment recommended by the prosecutor and agreed to by the defendant -- a defendant may appeal only:
(A) those matters that were raised by written motion filed and ruled on before trial, or
(B) after getting the trial court's permission to appeal." TEXAS RULE OF APPELLATE PROCEDURE 25.2(a)(2).
Tex. R. App. P. FIVE app D