cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3

kvresto
Senior
Posted on March 03, 2016 at 11:19

The original post was too long to process during our migration. Please click on the attachment to read the original post.
4 REPLIES 4
Posted on March 03, 2016 at 13:29

You will need to special case the clock. USART3 is on APB1 not APB2

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
kvresto
Senior
Posted on March 03, 2016 at 23:03

Clive I had it set to APB1. I think there must be some is issue with how I edited this post.

AS4ST32 wont let me compile if its set to APB2, it flags an error. I cant explain why my edit didn't go through????

I was sure I looked at Figure13's clock tree and set up for APB1 in the first place??

Can you please have another look into my problem? Could it be anything else?

Also when I logged in I saw it as APB2 as well, but I have not edited my last post????

Some forum editor issue??
Posted on March 04, 2016 at 01:04

#define EVAL_COM3_CLK  RCC_APB1Periph_USART3

/* Enable USART clock */

RCC_APB2PeriphClockCmd(COM_USART_CLK[COM], ENABLE);

The USART1 will be on APB2, USART3 on APB1, you will have to special case which function you call to enable the clock, a define and table alone will not suffice. You can't compare the values as they are just a bit vector. You'd need to look at the USART#

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
kvresto
Senior
Posted on March 04, 2016 at 02:41

Thanks Clive, I think I need an eye doctor. What makes it worse is the fact that I looked at this in the F103 example code I looked at some weeks ago.

Thanks again, appreciate your help.