AnsweredAssumed Answered

Memory read/write utility for P5040DS-PB

Question asked by RAM MURMU on Jan 6, 2017
Latest reply on Jan 10, 2017 by Pavel Chubakov

Hi,

    Can anyone share the memory read/write utility for P5040DS-PB. I do have devmem2.c ( as attached ) that works fine for other targets. However it is not working for P5040.

 

The function "mmap" fails with EPERM [Operation not permitted] error. The "prot" argument was changed to "PROT_READ | PROT_WRITE | PROT_EXEC" , still it shows the same error[Operation not permitted].

 

Thanks and Regards

Ram

Original Attachment has been moved to: devmem2.c.zip

Outcomes