hi, I'm new in programing in Iliad, but it seams that you don't refresh the display (ereaders needs a particular refresh, dmDisplay in erdm.h)
this thread speaks about it:
https://www.mobileread.com/forums/sho...highlight=erdm
edit:
ipdf thoes
#include <liberdm/display.h>
dmDisplay(dmCmdPriorUrgent, dmQFull);