cancel
Showing results for 
Search instead for 
Did you mean: 

F103, F401, F407 USB code replace

tuxcnc
Associate
Posted on June 15, 2016 at 22:41

Hi.

I found this project : https://github.com/jpbarraca/LogicAlNucleo

This code is for NucleoF401RE board, which costs about $20.

I have cheap chinese board with STM32F103C8T6, resources looks enought, but code not works.

Problem is in USB support, Linux not recognized device.

I understand this is different hardware, but don't know what I must change in code to replace STM32F401 by STM32F103 ?

My second problem and question is, will work STM32F407 with code for NucleoF401RE ?

STM32F407VET6 development board costs only $12, the chip is faster and looks better than F401RE, but I'm afraid bad surprise ...

I'm new in STM32 and can't find answers, please help me.
3 REPLIES 3
Posted on June 15, 2016 at 23:05

Seems a bit on the high side, so assuming some of your prices are with shipping at 1-up quantities.

http://www.mouser.com/ProductDetail/STMicroelectronics/NUCLEO-F401RE/?qs=fK8dlpkaUMvGeToFJ6rzdA%3D%3D

http://www.mouser.com/ProductDetail/STMicroelectronics/NUCLEO-F446RE/?qs=sGAEpiMZZMvc81WFyF5EdsQmNbgZtBbGR8SlOiVkIXM%3d

The F1 is quite antiquated at this point, and had some of it's own USB libraries and quirks. Suspect back-porting to that will be a chore. You will need to watch pin configurations, usage and clocks.

The F401 is a feature depleted F407/5, I've built several projects for the F401 and load them directly on other F4 parts. You want to pay attention to the PLL and VOS settings, and things like missing TIM and ADC peripherals. I've built other projects where the SystemInit() code detects which F4 it is running on, and selects maximal clocks for each, ie 84-180 MHz

If you're up in the $20 range the

http://www.mouser.com/ProductDetail/STMicroelectronics/NUCLEO-F429ZI/?qs=sGAEpiMZZMvt1VFuCspEMir%252bxn3gMEzrMfXnrbQu/Qo%3d

boards might be a better choice than the

http://www.mouser.com/ProductDetail/STMicroelectronics/STM32F407G-DISC1/?qs=/ha2pyFadugVtlbo/WUwLLm2DgjY/jvITzrAuNbKDdOC6NBFauSswafvVDgB7CLz

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tuxcnc
Associate
Posted on June 16, 2016 at 00:03

Thanks for reply.

I use STM32F103 board as Arduino, I have bootloader code and I made some changes for my needs.

Linux detects the device and assigns the /dev/ttyACMx port.

But the code is big, contains many files, and I don't understand it.

And above all, code contains a lot things for me unnecessary.

I need only serial communication by USB.

As to the STM32F4, I want to buy one board, quick and universal, but not expensive.

Logic analyzer I will definitely needed, but not too often, the other application may I come to mind, maybe not ...

It would be best to force the analyzer to work on the F103 ...

Posted on June 16, 2016 at 01:20

For an F401 Arduino w/SDIO I like the

https://www.ghielectronics.com/catalog/product/535

, I remove the NetMF stuff

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..