hello everyone I am trying to use a LCD 20x4 ( 4 bits ) with a lm3s328 , but have not found a proper lib , can someone give me a hand . Thank you .
All these variables are declared.
Yes, but as I asked:
Have you forgotten to make msTicks volatile?
If you don't, then it's unlikely to work with an optimizing compiler.
//LCD.c void lcd_delay(int msec) { volatile uint32_t done = msTicks + msec; while (msTicks != done) ; } //LCD.h volatile uint32_t msTicks; //... //VTABLE.c void SysTick_Handler(void) { msTicks++; }
So it would make sense to check whether you're actually executing SysTick_Handler.