2010-11-01 12:48 PM
I am using UM_0884 to learn more about STM8S-discovery and everything wa going good until I connected the beeper as shown on page 6/23. The problem is it doesn't work. hyperterminal.c seems to work and it calls beeper enable but nothing happens. It does get into BEEP_Cmd but how does it send information to an io port? It looks like it uses tim2 but time2 is never initialized. can anyone tell me were the mistake is in the manual or code?
charles2010-11-01 11:55 PM
To enable beeper output on PD4 you need to set AFR7 using STVP go in the option byte tab.
brazov22010-11-05 05:55 AM
2010-11-05 06:48 AM
2010-11-05 07:49 AM
Hello Charles,
Do not mix STVD and STVP. They are both part of the ST toolset. The option byte tab brazov2 is talking about is part of STVP menu. Best regards stefast2010-11-05 08:22 AM
I am using Device: STM8S105x6
Board: ST-LINK Port: USB Programming Mode: SWIM but it seems as if after trying to set AFR7 that i have lost communication with my RS232 ie. my computer. Any suggestions? I am not sure I did anything in the ioptons byte I simply clicked on AFR7 both left adn right and nothing seemed to happen. Also, I don't know how I installed STVD in the first place. I am a newbee to the stm8s-discovery kit2010-11-05 09:03 AM
I am making improvments, but still not there. I have AFR7 set in STVD but it still doesn't work so I hve some debugging to do thanks so far
chaarles2010-11-06 12:14 PM
On STVD select menu TOOLS, then PROGRAMMER then select tab SETTINGS and finally click on button RUN STVP and see attachment.
brazov2