Search found 276 matches
- Tue Dec 11, 2012 12:02 pm
- Forum: STM32 Support
- Topic: Serial over USB problem
- Replies: 39
- Views: 19163
Re: Serial over USB problem
I installed USB Analyzer program (USBlyzer) and see strange things: After device plugged all works fine. I start my program to communicate with device and it start read data. Communication was successful but USB sniffer still receive packets 0 byte length and doing it forever every 1 ms. The report ...
- Tue Dec 11, 2012 9:37 am
- Forum: STM32 Support
- Topic: Serial over USB problem
- Replies: 39
- Views: 19163
Re: Serial over USB problem
The driver should NAK incoming data if the program does not consume them fast enough, so that should not be the case. That code does not tell me much, all actual calls to the USB driver are hidden. Are you running with debug options enabled? Giovanni I tried both variants: with full debug on and al...
- Mon Dec 10, 2012 7:53 pm
- Forum: STM32 Support
- Topic: Serial over USB problem
- Replies: 39
- Views: 19163
Serial over USB problem
I can not get USB to work properly. I used last trunk 2.5.1 and STM32F103 board. The problem is that for some time it is functioning properly, but after a number of transactions the device stops responding. After USB cable reinsertion the process starts again. I noticed that this happens when transf...
- Mon Dec 10, 2012 11:15 am
- Forum: General Support
- Topic: RTC driver uses BKP registers!
- Replies: 22
- Views: 9494
Re: RTC driver uses BKP registers!
alexblack Could you test updated driver? It works as expected on my STM32-103STK board. I tested the driver on my board - everything works as planned. The only thing I do not understand why set RTC hw ON, if RTC driver not used? And maybe for high reliability switching RTC ON is better to move to l...
- Sat Dec 08, 2012 3:57 pm
- Forum: General Support
- Topic: RTC driver uses BKP registers!
- Replies: 22
- Views: 9494
Re: RTC driver uses BKP registers!
If I remeber correct, the reasons to store whole value of preload register is to avoid initializing of this register every system startup. After all, why not eliminate the use of the backup memory, because its so little. Prescaler value - a constant that does not change in the project. The sole pur...
- Fri Dec 07, 2012 7:26 pm
- Forum: General Support
- Topic: RTC driver uses BKP registers!
- Replies: 22
- Views: 9494
Re: RTC driver uses BKP registers!
Giovanni The reason is in the comment, and we must use a non volatile register for this. I am not sure if there is an alternate way to verify if the RTC has already been initialized. I think RCC_BDCR_RTCEN bit in RCC->BDCR register must be used to detect that RTC hasn't been initialized yet but it ...
- Fri Dec 07, 2012 2:24 pm
- Forum: General Support
- Topic: RTC driver uses BKP registers!
- Replies: 22
- Views: 9494
Re: RTC driver uses BKP registers!
I studied the STM32 RTC V.1 DRIVER and found that the macro function probably has a mistake: 55 /** 56 * @brief Wait for synchronization of RTC registers with APB1 bus. 57 * @details This function must be invoked before trying to read RTC registers 58 * in the backup domain: DIV, CNT, ALR. CR regist...
- Fri Dec 07, 2012 8:53 am
- Forum: General Support
- Topic: RTC driver uses BKP registers!
- Replies: 22
- Views: 9494
Re: RTC driver uses BKP registers!
I'm sure you can not just use the resources without defining them anywhere - it's like reserve a memory with const address like this: static int *hidden = (int *) 0x40001000; *hidden = 10; ... Because no compiler or the programmer will not know that the cell is used and may try to use it again! For ...
- Thu Dec 06, 2012 7:21 pm
- Forum: General Support
- Topic: RTC driver uses BKP registers!
- Replies: 22
- Views: 9494
RTC driver uses BKP registers!
Before ChibiOS V.2.5.1 I used BKP registers freely in STM32F103 board, but now some of it are used in RTC_LLD: 136 void rtc_lld_init(void){ 137 138 /* Required because access to PRL.*/ 139 rtc_lld_apb1_sync(); 140 141 /* 142 * Writes preload register only if its value is not equal to desired value. ...
- Mon Nov 26, 2012 3:47 pm
- Forum: General Support
- Topic: Serial over USB driver on STM32, cable unplug detecting
- Replies: 30
- Views: 17270
Re: Serial over USB driver on STM32, cable unplug detecting
I have one EventSource on all events in program and how can I distinguish events if I 'broadcast' zero? Or I must have one event source for each event?