2010-06-29 09:05 AM
st-link + IAR debugger
2011-05-17 04:56 AM
Check processor speed setting and flash wait states. One PCB gave all zeros in flash @72 MHz no wait states. Same code another PCB kinda - sorta worked. 'Twaz very confising. Used two wait states as docs said. Both worked.
2011-05-17 04:56 AM
how do you set speed/flash wait states?
in the IAR IDE the st-link has no options at all.2011-05-17 04:56 AM
Earlier you said
>it's an STM32F107VCT6 chip on a stm32f107vc-sk development board from IAR Use unmodified IAR demo code for this PCB. Or, if you are like me, RTFM (Read The Fine Manual) on clock tree and flash setup registers. Note the following from page 48: zero wait state, if 0 < SYSCLK ≤ 24 MHz one wait state, if 24 MHz < SYSCLK ≤ 48 MHz two wait states, if 48 MHz < SYSCLK ≤ 72 MHz The linker itself knows nothing about the above. It has to work on non-ST parts.2011-05-17 04:56 AM