MCB-STR 9 running problems

Hello everyone,

The program with several source files and it compiles fine and there is no problems writing to flash memory.

Initially, the main() program only writes some characters to the LCD. If I run it, all is well.

Problems arise when I add a function (very long one) after the LCD.

int main (void) {

  /* LCD Setup                                                                */
        GPIO8->DDR       = 0xFF;                /* P8.0..7 Outputs (LCD Data)       */
        GPIO9->DDR       = 0x07;                /* P9.0..2 Outputs (LCD Control)    */

        lcd_init();
        lcd_clear();
        lcd_print ("Test");

        init_EPL();

}

When the application starts on the eval-board the LCD is frozen (nothing is written to the LCD). Its as if the code didnt even make it to the lines where the microcontroller writes to the LCD. But when I remove the function again the application runs fine.

I realize this is a long shot, and that this might be way too little information for you to be able to help me, but I have no idea on how to fix this problem and I am just looking for some suggestions or any ideas.

Thank you and regards,
Leon

Parents Reply Children
No data
More questions in this forum