I'm working with a custom board based on the MCF5485EBV board. I have several periferals attached to the Flexbus including flash, some general purpose latched i/o for leds and device resets, and the LCD display.
An issue that has raised it's ugly head is that when I can work the LCD display with graphics with no problem. I can work my leds (just board is alive indicators) with no problems. But when I work with them together the system crashes (locks up). I've checked my application and what I'm doing is so trivial (using /dev/mem and mmap to allocate memory and then setting the appropriate bit for an LED) that I'm 99% sure the problem must be with the mask I'm setting up when I initialize the Flexbus.
Any thought or ideas greatly appreciated. If I can't work out what's causing this my project is in serious jeopardy....
My flexbus configuration is as follows:
// Code Flash (2x32MB Flash)
MCF_FBCS_CSAR0 = FLASHBASE;
MCF_FBCS_CSMR0 = 0x03ff0001;
MCF_FBCS_CSCR0 = 0x00002500; // 0x00004900
// Init Chip selects 1, 2, 3, 4, 5
MCF_FBCS_CSAR1 = CS1BASE;
MCF_FBCS_CSMR1 = 0x000f0001;
MCF_FBCS_CSCR1 = 0x00000000;
// LEDs and Device Resets
MCF_FBCS_CSAR2 = CS2BASE;
MCF_FBCS_CSMR2 = 0x000f0001;
MCF_FBCS_CSCR2 = 0x00000580;
MCF_FBCS_CSAR3 = CS3BASE;
MCF_FBCS_CSMR3 = 0x000f0001;
MCF_FBCS_CSCR3 = 0x00000000;
// LCD Display
MCF_FBCS_CSAR4 = CS4BASE;
MCF_FBCS_CSMR4 = 0x01ff0001;
MCF_FBCS_CSCR4 = 0x00000080;
MCF_FBCS_CSAR5 = CS5BASE;
MCF_FBCS_CSMR5 = 0x000f0101;
MCF_FBCS_CSCR5 = 0x00000580;