In the title compound, C16H17NO5, the dihydropyridine ring adopts a sofa conformation. In the crystal, intermolecular N—H[cdots, three dots, centered]O hydrogen bonds link the molecules into chains running along the b axis.
In the title compound, C14H14BrNO4, the dihydropyridine ring adopts a screw-boat conformation. In the crystal, pairs of N—H[cdots, three dots, centered]O hydrogen bonds link the molecules into inversion R 2 2(10) dimers.