The Dirac Lagrangian $$\mathcal{L} = i\bar{\psi}\gamma^{\mu}\partial_\mu \psi - m \bar{\psi}\psi$$ gives a Hamiltonian $$\mathcal{H}(\Pi,\bar{\Pi},\psi,\bar{\psi})=\Pi \dot{\psi}-\mathcal{L}=-\bar{\psi}\gamma^{i}\partial_i \psi + m \bar{\psi}\psi,$$ $$\text{where}\quad \Pi=i\bar{\psi}\gamma^0.$$ So the Hamiltonian is actually independent of $\Pi,\bar{\Pi}$. Suppose I wanted to start from this Hamiltonian and tried to find the equations of motion via Hamilton's equations $\dot{\psi} = \partial\mathcal{H}/\partial \Pi$ and $\dot{\Pi} = -\partial\mathcal{H}/\partial \psi$, plus equivalent ones for conjugate field.
Clearly something is wrong as the first of Hamilton's equations gives $\dot{\psi}=0$, while the second gives $\dot{\Pi}=i \partial_i\bar{\psi}\gamma^i +m\bar{\psi}$ and I don't see the Dirac equation popping out...