STM8 TIM2 interrupt not taking place. What am I missing?
Okay, My problem has been solved. The definition of root address for the TIM2 in the stm8s.h file was not in hex(The author must have missed putting '0x' before 5300), so all the commands were not going to the TIM2. 
A big 'Thank You' goes to Richard Hodges of the SDCC user mail list for this.
I've already informed the owner of the blog where I got the header file.

Cheers!