Per ST RM0008 manual, timers 2-5 are included in ALL ATM32F10X devices.
Section 14: "General-purpose timer (TIM2 to TIM5)"
"This Section applies to the whole STM32F10xxx family, unless otherwise specified."
In the leaflabs/cores/maple/timer.h TIMER5 is included only in the high-density.
IMHO, in the timer.h register map base pointers table, the #ifdef STM32_HIGH_DENSITY line should be moved one line down, to cover TIMER6 and up.
samtal