Beginner questions

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

aimatt
Posts: 18
Joined: Tue Jun 05, 2012 7:11 pm

Re: Beginner questions

Post by aimatt »

Tectu wrote:Feel free to post the servo code under the forum "Code Samples" would like to see it :)



~ Tectu



Here you go: viewtopic.php?f=4&t=474
aimatt
Posts: 18
Joined: Tue Jun 05, 2012 7:11 pm

Re: Beginner questions

Post by aimatt »

Giovanni wrote:Hi,

It is portable across similar STM32 devices, F2 and F4 are practically the same, L1/F0 are similar but mapping can change, F1 are different.

That "2" is the number of the alternate function for that pin, there is a table in the datasheet with all possible mappings: "Table 6. Alternate function mapping".

Giovanni


Giovanni, it's nice to hear it will be pretty portable. I am looking at the datasheet: http://www.st.com/internet/com/TECHNICA ... 039084.pdf but I only see Table 5 (not table 6) and for example, USART2_TX is on PA2, but listed as the first alternate function, rather than the 7th. Is it based on a particular version of the datasheet?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Beginner questions

Post by Giovanni »

That document is the user manual for the Discovery board, you have to look into the STM32F407 datasheet.

Giovanni
aimatt
Posts: 18
Joined: Tue Jun 05, 2012 7:11 pm

Re: Beginner questions

Post by aimatt »

Aha! That explains it. Thank you!!!!
Post Reply