On 12 January 2015 at 00:44, Peter Fillmore <pe...@peterfillmore.com> wrote:
> heres the code which creates the memory (contained in a custom driver):
>
>> memory_region_init_ram(&s->iomem, OBJECT(dev), "arm-lpc213x-iap", 0x1000, 
>> NULL);
>> sysbus_init_mmio(sd, &s->iomem);
>> char *memptr = memory_region_get_ram_ptr(&s->iomem) ;
>> memcpy(memptr,iapcode, sizeof(iapcode));

Have you remembered to actually map the RAM MemoryRegion into
system memory at the right address?

-- PMM

Reply via email to