Add 1M and 4M data bit rate, change clk to 160MHz#1
Add 1M and 4M data bit rate, change clk to 160MHz#1Sl-Alex wants to merge 5 commits intonormaldotcom:mainfrom
Conversation
|
Hello It is great that you improved the code. I just posted a new issue on Normaldotcom but I'am sure nobody will ever care, although this can be fixed in 5 minutes. |
|
Hi @Elmue, |
|
Hey guys! Fortunately I'm still alive over here, but I haven't been able to give this project much love in a long time. I don't have any hardware set up to test at the moment and don't like to merge PRs without hardware testing. Since I don't have time to test this, @Sl-Alex if you get around to testing, please post in here and I will merge in your change. Thanks! |
That is good news because this project seems to be dead. I wrote a completely new Slcan and Candlelight firmware 2.5 which is 100% backward compatible with yours, but adds many new useful features. Can you add a link in your project description that leads people to the new version ? I also offer a new Firmware Updater that people without programming skills can use to update their CANable with one click. I wrote a very detailed description here: |
This PR changes the following:
- Changes system clock from 170 to 160MHz, making it possible to easily calculate high bit rates
- Fixes low bit rates (prescaler must be smaller than 512)
- Implements additional bit rates, such as 1M and 4M
- Implements transceiver delay (very useful, especially for isolated transceivers with the high loopback delay)
- Adds missing confirmation messages in SLCAN protocol
Important
There is a bug in cangaroo SW, that sets the data bit rate to 2M regardless of the user's choice. I already tested the fix, will clean up the code and prepare a PR.