-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LIN protocol implemetation #4
Comments
Do you want to enhance the FW with also LIN implementation? |
Yep, I think i will use uart1/uart2 and some pins to do master/slave stuff and so on,it currently in my TODO list only, maybe something be changes in future |
|
STM32G4 is a good choose for CAN FD support. |
OK for the G4 model. Other than:
are there some other requirements? Is there any way I can directly contact you? |
Nope, firstly i want to implements all protocol specific thing, hardware realisation it is most easiest part i think, i will add information about it after i finish software part.
I already answered to @Linjieqiang for this question, my main goal is CAN-adapter what can be easy to reproduce and works well with Linux and Windows including professional software. Software support is most important thing for such device, that's why i made this project. About FDCAN part, all protocol related thing already implemented and well tested on real hardware, so where is no problem to port it on G series or any other what support FDCAN, but it possible only for custom solution.
It is good idea, but main disadvantage it is more expensive and required more skill to use it ( soldering, components buying, PCB manufacturing and etc )
You can live your e-mail here and i will contact to you, also my profile has public available e-mail too ( i think it must be visible for all registered users ) |
Dual-channel CAN FD up to 24 Mbit/s, it needs a USB HiSpeed interface. |
You are right: microcontroller MUST be in the STM32H7xx line... |
Only in theory, actually FDCAN has slow and fast part of frame + some frame overhead bit + bit stuffing and in real life application you never has non stop bit-stream on 12Mbit speed ( so real speed is slower ), another thing what USB FS 12Mbit is not really 12Mbit too, it is speed of single packet ( MAX is 64byte for FS ) what will transfer from one point to another, and to archive maximum speed we need transfer continuous transfer of data what can't be reached in real application too. Also we have some protocol level overhead... I think for real life application if you use 1 channel it be OK in most cases on hi speed FDCAN buses too. p.s: i also read your amobbs forum thread, thanx it makes this project very popular ^_^
You can use also external HS phy for USB as example USB3300, but you must also use external CAN controllers ( as example mcp1517/18 ) becouse ST can't be configured to use HS USB and two CAN on STM32F series.... you no need to use powerfull MCU to do this, but fast USB is good point for 2/4/6 FDCAN channels and other features |
TODO:
LIN protocol implementation stubs, internal message table, internal message scheduler logic
The text was updated successfully, but these errors were encountered: