I added support to run cantact-fw on STM32F072B-DISCO and build files for MDK-ARM/Keil#20
I added support to run cantact-fw on STM32F072B-DISCO and build files for MDK-ARM/Keil#20trollcop wants to merge 5 commits intolinklayer:masterfrom
Conversation
Made LED pins/GPIO configurable instead of hardcoded. Corrected HSI48 init code (did not work out of the box on -disco, didn't bother investigating why, just replaced with working code)
|
…ULID_HW=disco, default cantact, if no arguments specified) Added (well, actually copied from CMSIS template folder) startup/linker files for stmf072 for gcc build Made LED GPIO ports selectable for each LED (still need to edit LED_GPIO_CLK by the user but at that point they should know what they're doing)
|
Allright, I added a new commit taking care of those requests (I don't use gcc/Makefile but I tested both builds and they work). can be invoked as just |
|
This is nice. Just one more thing, maybe it is better to define seperate |
I've left a comment in the PR regarding that - there's no simple way other than duplicating the define, and at the point where a user need to change this they probably know what they're doing. If you have a suggestion of how to implement it better than something like I'm all ears, or else it can just be made that way. |
Since STM32F072B-DISCO is kinda ubiquitous and can be had for $12 I've added support to run cantact-fw on this board.
An external canbus transceiver breakout can be connected to VDD/PB8/PB9/GND pins on the -DISCO easily. No soldering or modifications needed on the board.
During making the port, I made LED pins configurable, fixed some compile/style warnings and properly fixed running off internal oscillator (072B-DISCO doesn't have a crystal mounted).
I don't have a linklayer board to test with but the changes are pretty simple and should not affect operation on original board.
Oh, and I added build files for MDK-ARM v4, shouldn't hurt anyone I suppose.