EmbeddedRelated.com
Forums
Memfault Beyond the Launch

STM32F2 series users group

Started by Mike Perkins March 11, 2013
Can anyone point me in the direction of a suitable user's group?

I'm currently battling with a STM32F205 and come across a couple of snags!!

-- 
Mike Perkins
Video Solutions Ltd
www.videosolutions.ltd.uk
Mike Perkins schrieb:

> Can anyone point me in the direction of a suitable user's group? > > I'm currently battling with a STM32F205 and come across a couple of snags!!
<https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx> Tilmann
On 11/03/2013 16:01, Tilmann Reh wrote:
> Mike Perkins schrieb: > >> Can anyone point me in the direction of a suitable user's group? >> >> I'm currently battling with a STM32F205 and come across a couple of >> snags!! > > <https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx> > > Tilmann >
I'm conscious the f2 series doesn't seem to be in particularly common use, and this forum has less that 200 posts in total concerning the STM32F2/F205/F207 and none in the past 10 days. I will give it a go. Many thanks. -- Mike Perkins Video Solutions Ltd www.videosolutions.ltd.uk
Mike Perkins <spam@spam.com> writes:

> Can anyone point me in the direction of a suitable user's group? > > I'm currently battling with a STM32F205 and come across a couple of snags!!
You could ask here - I've been using this part a bit. -- John Devereux
On 11/03/2013 16:28, John Devereux wrote:
> Mike Perkins <spam@spam.com> writes: > >> Can anyone point me in the direction of a suitable user's group? >> >> I'm currently battling with a STM32F205 and come across a couple of snags!! > > You could ask here - I've been using this part a bit. >
I'm finding the ST documents a little lacking and using an old library hasn't helped. I've got a UART running, or at least sending characters but the interrupt for USART_SR->TC isn't working. There is very little information of the NVI in the Reference Manual (RM0033) about the NVIC though at least I've now sussed out I need to read more of the Cortex-M3 documents. Many thanks for the offer, I might yet pick your brains. -- Mike Perkins Video Solutions Ltd www.videosolutions.ltd.uk
>I've got a UART running, or at least sending characters but the >interrupt for USART_SR->TC isn't working. There is very little >information of the NVI in the Reference Manual (RM0033) about the NVIC >though at least I've now sussed out I need to read more of the Cortex-M3 >documents.
Basically, there's one interrupt per USART. Several conditions, each with its own interrupt enable, can trigger it. This is all documented in the STM32F2 Reference Manual. The NVIC is documented by ARM, as are others such as the SysTick timer, because the NVIC is a peripheral designed by ARM. The thorough solution is to download the Cortex M3 reference manuals from http://www.arm.com and flog your way through the website until you find what you need. There's a great deal of commonality between the peripherals on all STM32 devices, except that you need to be cautious with the early F1 devices. If you get stuck, feel free to contact me offline. Stephen -- Stephen Pelc, stephenXXX@mpeforth.com MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691 web: http://www.mpeforth.com - free VFX Forth downloads
>I've got a UART running, or at least sending characters but the >interrupt for USART_SR->TC isn't working. There is very little >information of the NVI in the Reference Manual (RM0033) about the NVIC >though at least I've now sussed out I need to read more of the Cortex-M3 >documents.
Basically, there's one interrupt per USART. Several conditions, each with its own interrupt enable, can trigger it. This is all documented in the STM32F2 Reference Manual. The NVIC is documented by ARM, as are others such as the SysTick timer, because the NVIC is a peripheral designed by ARM. The thorough solution is to download the Cortex M3 reference manuals from http://www.arm.com and flog your way through the website until you find what you need. There's a great deal of commonality between the peripherals on all STM32 devices, except that you need to be cautious with the early F1 devices. If you get stuck, feel free to contact me offline. Stephen -- Stephen Pelc, stephenXXX@mpeforth.com MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691 web: http://www.mpeforth.com - free VFX Forth downloads
>I've got a UART running, or at least sending characters but the >interrupt for USART_SR->TC isn't working. There is very little >information of the NVI in the Reference Manual (RM0033) about the NVIC >though at least I've now sussed out I need to read more of the Cortex-M3 >documents.
Basically, there's one interrupt per USART. Several conditions, each with its own interrupt enable, can trigger it. This is all documented in the STM32F2 Reference Manual. The NVIC is documented by ARM, as are others such as the SysTick timer, because the NVIC is a peripheral designed by ARM. The thorough solution is to download the Cortex M3 reference manuals from http://www.arm.com and flog your way through the website until you find what you need. There's a great deal of commonality between the peripherals on all STM32 devices, except that you need to be cautious with the early F1 devices. If you get stuck, feel free to contact me offline. Stephen -- Stephen Pelc, stephenXXX@mpeforth.com MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691 web: http://www.mpeforth.com - free VFX Forth downloads
Mike Perkins <spam@spam.com> writes:

> On 11/03/2013 16:28, John Devereux wrote: >> Mike Perkins <spam@spam.com> writes: >> >>> Can anyone point me in the direction of a suitable user's group? >>> >>> I'm currently battling with a STM32F205 and come across a couple of snags!! >> >> You could ask here - I've been using this part a bit. >> > > I'm finding the ST documents a little lacking and using an old library > hasn't helped. > > I've got a UART running, or at least sending characters but the > interrupt for USART_SR->TC isn't working. There is very little > information of the NVI in the Reference Manual (RM0033) about the NVIC > though at least I've now sussed out I need to read more of the > Cortex-M3 documents.
Like Stephen said the NVIC is part of the CM3 core; you are supposed to read the ARM documentation for that. Although there are examples in the ST peripheral library.
> Many thanks for the offer, I might yet pick your brains.
Stephen posted a better answer than I would have (so good he posted it thrice :) ). I have not used the TC irq specifically yet, but not had any issues with interrupts generally. Have you got any interrupts working at all yet? Can you see the TC flag active in the SR? If so should be matter of setting the USART_CR1 TXEIE bit (bit 7) for the UART. Then you need to handle the TX interrupt and check the status register there to see what triggered it. If I get time I may change my debug uart to be interrupt driven, get it working properly. John -- John Devereux
On Mon, 11 Mar 2013 18:08:58 +0000, John Devereux
<john@devereux.me.uk> wrote:

>Stephen posted a better answer than I would have (so good he posted it >thrice :) ).
Thanks. My ISP's news servers seem to have forgotten part of the NNTP protocol, and I pressed the "Send now button" again. Stephen -- Stephen Pelc, stephenXXX@mpeforth.com MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691 web: http://www.mpeforth.com - free VFX Forth downloads

Memfault Beyond the Launch