2017-11-13 03:59 AM
How can I use '
stm32f4xx_hal_uart_emul.c' driver in STM32F303CC MCU ?
http://www.st.com/en/embedded-software/stsw-stm32156.html
Please help in porting/using this Software UART driver in STM32F303CC
What all changes do I need to do in original driver for STM32F4 to make it work in STM32F3 MCU ?
#stm32f4 #software-uart #stm32f32017-11-13 12:47 PM
I don't use Cube and won't go studying the code, but based on what's written in the accompanying appnote it should be matter of assigning proper DMA channel to the timer (and maybe even that's solved by cube's automagic), and/or adjusting the 'formatters' to a chosen set of pins.
They say HAL is here to make porting easy.
JW
2017-11-13 02:39 PM
>>
What all changes do I need to do in original driver for STM32F4 to make it work in STM32F3 MCU ?
At that point it would be cheaper to just pay them to do the work.
>>
They say HAL is here to make porting easy.
In some respects yes.
Start by understanding what the library is doing, and how it does so in the context you are using it, and then roughly frame a project to pull the code into. Look at how much is actually F4 specific, and the parts which are relatively generic across the STM32 families.
2017-11-13 10:28 PM
It's very difficult. I get tons of errors if try to use Stm32f4 driver just by changing the header file to stm32f3.
I was wondering why emulated driver not included in CubeMx software and it's only available for STM32F4 series MCUs