"I didn´t understand" is correct.
Always use the infinitive of the main verb following the auxiliary verb "to do"!
I didn´t + (infinitive)
or I did + (infinitive)
The same rules apply for the present tense:
She does love him
(Does + infinitive)
He doesn't like fish