When i mount an 8MHz crystal on my board with 2x 47pF to ground and i switch off the RC-oscillator, the ST7 seems to 'die'. I can't read or write anymore with the ST-Stick and the program doesn't run. When i put the scope on the crystal, the clock doesn't run. Anyone an idea what's going wrong??? Regards.
I never used RC-oscillator (not internal nor external) so I'm not sure abuot the following procedure...
I'm programming on ST72324 using inDart. If you use a crystal you should set ''Resonator Oscillator'' in the option bytes. You should program the option bytes when the uC is ''alive'', so: - switch on RC-oscillator - reprogram option bytes with ''Resonator Oscillator'' - connect the crystal and switch off the RC-oscillator In the 72324 datasheet, typical values of capacitors (for a 8MHz xtal) are 33pF each. I hope that can help, Patrik
Programming is OPT enable. Had the problem with the st7lite29 and with the st7dali. I'm using an 8MHz crystall. I choose the 4/8MHz Medium Speed resonator, program this. After doing this (like Patrik told) i switch off the internal oscillator and program the option bytes for a second time. After this the IC died... I must do something wrong but i can't figure out what. Greets
* as by default, the clock is internal RC, program your Flash * then the option byte (no matter if the quartz is already on the appli board, it will be ignored when configured in internal RC thanks to internal switches): Resonnator oscillator, oscillator mid-range, internal RC off + the other options * remove your ICC cable * make a reset of the MCU