hello,
we got a TWR-K70F120M + TWR-LCD-RGB, all the set, using Kinetis Design Studio 3.0.0 IDE.
I added LCDC_LDD componnent, configuried pins of RGB and V/H sync, added code from help "typicla use", but every time that code tried to use PutPixel(x, y, c); it throwing to ISR
PE_ISR(Cpu_ivINT_Hard_Fault)
{
/* This code can be changed using the CPU component property "Build Options / Unhandled int code" */
PE_DEBUGHALT();
}
this is the code:
void main(void)
{
/* Write your local variable definition here */
LDD_TDeviceData* dd;
LDD_LCDC_TBitmap bitmapInfo;
LDD_LCDC_TWindow windowInfo;
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Setup drawing variables for buffer */
bitmapAddress = LCD_START_ADDRESS;
bitmapWidth = LCD_RES_X;
bitmapHeight = LCD_RES_Y;
/* Clear buffer - red color */
ClearScreen(63, 0, 0);
/* ... draw some primitives or load image data ... */
dd = LCD_Init(NULL);
/* Fill bitmap information */
bitmapInfo.Address = (LDD_TData*)bitmapAddress;
bitmapInfo.Width = bitmapWidth;
bitmapInfo.Height = bitmapHeight;
/* Fill window information */
windowInfo.X = 0;
windowInfo.Y = 0;
windowInfo.Width = bitmapWidth;
windowInfo.Height = bitmapHeight;
/* Initialize background plane 0 */
LCD_SetupBitmap(dd, LDD_LCDC_PLANE_0, &bitmapInfo);
LCD_SetupWindow(dd, LDD_LCDC_PLANE_0, &windowInfo);
LCD_SetupWindowPosOnScreen(dd, LDD_LCDC_PLANE_0, 0, 0);
/* Enable LCD */
LCD_Enable(dd);
for(;;) { }
}
what do I miss?
as I understood there are no examples for KDS.
is there any demo app that I can boot to mk70 to see something on the screen, the screen is always white, like there is no signal to it.
please help, thank you!