simplified cppgen a bit
simplified error issuance from PortalMemory
added callback for dmaError to tests/memread_manual