cancel
Showing results for 
Search instead for 
Did you mean: 

UM0306 GPIO CRH Conflicts with Firmware library

giles
Associate II
Posted on February 25, 2008 at 09:27

UM0306 GPIO CRH Conflicts with Firmware library

3 REPLIES 3
giles
Associate II
Posted on May 17, 2011 at 12:23

Hi I'm using the Registers directly rather than with the ST firmware library basing my code off the Reference Manual (UM0306)

In the Reference manual it states the GPIO CRH is setup as:

00: Input mode (reset state)

01: Output mode, max speed 2 MHz.

10: Output mode, max speed 10 MHz.

11: Output mode, max speed 50 MHz.

The Firmware Library uses

00: Input mode (reset state)

01: Output mode, max speed 10 MHz.

10: Output mode, max speed 2 MHz.

11: Output mode, max speed 50 MHz.

for both CRL and CRH

in the firmware reference manual the has the 2 and 10 the other way round for CRH.

I suspect the Firmware library is correct can anyone confirm this?

Cheers

Giles

16-32micros
Associate III
Posted on May 17, 2011 at 12:23

Dear Giles,

UM0306 is not more relevant and is an obsolete document. It was changed to RM0008 on www.st.com web site. The Firmware is inline with RM0008 where this typo was updated on the Reference Manual. Refer to page 77/501 ( rev 2 - Nov 2007 ) - Table 12 and subsequent pages.

PS: Did you downloaded this UM0306 from ST web pages recently ? Thanks for reporting it.

Regards, STOne-32

giles
Associate II
Posted on May 17, 2011 at 12:23

Thanks STOne-32, i've now downloaded RM008 :)

It was quite an old version of UM0306 that i was using

Though i have found another typo (old version of UM0306, & uptodate version of RM008 Rev3 Feb 08) on the RCC CFGR page:

ADCPRE

Bits 14:12 ADCPRE ADC prescaler (UM0306 page55)

Bits 14:14 ADCPRE ADC prescaler (RM008 page56)

Should be

Bits 15:14 ADCPRE ADC prescaler

Regards

Giles :)