I have a board (our custom hardware) with a STM32F100C6T6B on it. Its running (my) firmware that has exception detection and handling in it.
I just added the following code to see if I could reproduce your issue. temp = TIM15 -> CR1; temp = TIM16 -> CR1; temp = TIM17 -> CR1; The above ran without issue (no fault generated). Are you sure you have a Value Line (F100) device? Timers 15-17 don't exist in other families.
I am sure that it is a STM32F100 derivate and not F101 or F103. Could it be, that this controller has a defect memory region? Maybe i will solder another one on the board. First I will have a look for possible software issues.
I changed the processor and now it works. Seems that some of the processors memory was defectous. This looks very strange to me. I never have seen something like this before. How is it possible that some (only a few) memory regions can be defectous?
I don't know if i have beta-chips. I have 5 and 5 samples and assume that they are from different production lots. The last 5 from package marking are: MYS 018 and MYS 940.