jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.76k stars 616 forks source link

Page 0 not present; on Raspi4 with custom LED strip #443

Closed wardd64 closed 3 years ago

wardd64 commented 3 years ago

testing program crashes for me during initHardware():

if (((pfn >> 55) & 0xfbf) != 0x10c) {  // pagemap bits: https://www.kernel.org/doc/Documentation/vm/pagemap.txt
    fatal("Page %d not present (pfn 0x%016llx)\n", i, pfn);
}

specifically I get the following error message Page 0 not present (pfn 0xa100000000075841). I'm running the code on Raspberry Pi 4 for a custom LED strip (LC8812B-RGBX-XX if you're curious). Though the board setup for this strip is identical to ws281x, I've tested the same setup with the Neopixel library in python which works fine. Any help? I'm not too experienced with c or linux, so I might be missing something obvious.