2008-02-25 12:27 AM
UM0306 GPIO CRH Conflicts with Firmware library
2011-05-17 03:23 AM
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 Giles2011-05-17 03:23 AM
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-322011-05-17 03:23 AM
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 :)