124 Commits

Author SHA1 Message Date
Hubert Denkmair
ed6152f1a2 upgrade HAL to STM32CubeF0-1.11.0 2020-12-06 12:51:46 -05:00
Hubert Denkmair
f3d86a7e73 update usb device library to STM32CubeF0-1.11.0 2020-12-06 12:51:46 -05:00
fenugrec
7f9a0ea331 CAN errors : comment some funcs + defines 2020-12-06 11:58:45 -05:00
Brian Silverman
ceeac236c4 Better bit error reporting
It reports more information with more accurate ordering with respect to
other frames sent and received.

Fixes candle-usb/candleLight_fw#59
2020-12-06 11:41:53 -05:00
Brian Silverman
8b3a7b4565 Always queue frames to the host in order
The other logic could sometimes send frames out of order. See comments
on GH issue 27,
https://github.com/candle-usb/candleLight_fw/pull/27#issuecomment-549633588
where running "canfdtest" sometimes fails after a few seconds.

I don't see why the logic was different in the first place either. The
main loop executes pretty fast, so always putting the frame in the queue
makes all the logic simpler.
2020-12-02 17:30:07 -05:00
fenugrec
d2cb1592a0 add some links to README 2020-11-22 09:11:07 -05:00
fenugrec
88ed027020 cmake : clean .bin files, and run dfu-suffix
dfu-util warns when flashing a .bin file that has no "dfu suffix". Now
we use dfu-suffix, if available, to add the dfu suffix; otherwise keep
the original dfu-util command line as a reflash target; fixes #56 GH.

Also add .bin files as BYPRODUCTS so that 'make clean' picks them up
too.
2020-11-01 15:15:34 -05:00
fenugrec
9cf7eccf3d Add new boardtype : cannette
F042-based, galvanically isolated.
2020-10-30 21:55:27 -04:00
fenugrec
2416f260bb enable power-on LED blinkage on all boards
what's not to like ?
2020-10-30 21:55:12 -04:00
Ethan Zonca
465e957db9 Update CANable-specific LED initialization 2020-10-30 21:50:08 -04:00
fenugrec
c4e02c1396 readme : document "make flash-<target_fw>" target 2020-10-30 21:47:05 -04:00
fenugrec
99a8eac354 add "make debug" target for openocd 2020-10-30 15:38:20 -04:00
Benjamin Ward
271be5ce20
Add Copperforge VulCAN to list of supported devices 2020-09-19 20:28:42 -04:00
Brandon Ros
28a31e6fd3 Clarify stm32f0x2 support 2020-04-08 20:13:48 -04:00
Andy Hempel
0c04aaa45d Adds Travis-Ci GITHUB Token via ENV
Change to one deploy archive with all binaries

Change to one deploy archive with all binaries

Add repo and branch restriction
2019-12-02 18:17:11 -05:00
Andy
b6fb1d7d5d Adds Travis-Ci and deploy on tags 2019-12-02 18:17:11 -05:00
fenugrec
70a18e1a1f Update cmake_minimum_required() version
add_link_options() requires cmake >= 3.13

pointed out by @vondraussen in github PR #39
2019-11-30 12:11:30 -05:00
Brandon Ros
bc8f3deff6 Update README.md 2019-11-12 10:25:44 -05:00
fenugrec
4dac861b8c Set explicit LED polarity and invert canalyze
the canalyze has active-high LED signals
2019-11-11 16:21:15 -05:00
fenugrec
de943d54f2 un-break cmake (missing ") 2019-11-11 16:20:40 -05:00
Brandon Ros
faa164055a CANAlyze support 2019-11-09 14:26:45 -05:00
fenugrec
9e4938492b Add sample udev rules to allow normal user reflash 2019-11-04 21:02:07 -05:00
fenugrec
079882f000 cmake: make each target a configurable option
by default, everything will be compiled. Each target may be disabled
individually.
2019-11-04 20:26:57 -05:00
fenugrec
ad9351243c cmake: add helpers to generate board targets 2019-11-04 20:20:36 -05:00
Ryan Greenblatt
68c514e8fc Added toolchain info to readme 2019-11-04 19:15:00 -05:00
Ryan Greenblatt
1367ec96b6 Added deploy instructions to readme (tested with canable) 2019-11-04 19:15:00 -05:00
nexulm
89c44fe3f1 correct LED initialization for canable interfaces 2019-11-04 19:14:58 -05:00
fenugrec
9003f5ec1d remove trailing whitespace in CMakeLists.txt too 2019-11-04 19:09:15 -05:00
Jeroen Hofstee
7618128cf6 fix whitespace
The project uses tabs with a length of 4 spaces, and spaces for
continuation, so lets use that for the whole project. There are
many trailing whitespaces and empty lines here and there; get
rid of them as well.
2019-11-04 19:04:54 -05:00
Jeroen Hofstee
cd31acce28 use unix line endings
Some files have Windows line endings which is annoying, since pathes
won't apply, diffs looks ugly etc. So do convert the few files which
have Windows line endings to use Unix line endings as well.
2019-11-04 19:04:45 -05:00
fenugrec
0434e8eeec LED functions : support GPIO pins >= 8
this requires a uint16 to save the pin #
2019-11-04 18:56:35 -05:00
fenugrec
bb6a14a8fc Fix sp-in-clobberlist error again for gcc9
We need to specify -Wno-deprecated at the top level, and not just when
building stm32_HAL because any regular source file that includes in stm32f0xx_hal.h also pulls in those cmsis headers that trigger the deprecation warning.
2019-11-04 18:53:00 -05:00
Hubert Denkmair
e3c7fde27a fix bug #14: candleLight uses F072, cantact F042
was mixed up since a long time (?)
2019-11-03 11:12:18 +01:00
Hubert Denkmair
7a11cf4897
Merge pull request #25 from candle-usb/cmake
re-organize everything to a cmake project structure
2019-11-02 20:43:40 +01:00
Hubert Denkmair
0352092cda add ASM as cmake language to get init code compiled&linked in 2019-11-02 10:02:24 +01:00
Hubert Denkmair
f24a409d19 add dfu-util flash targets 2019-10-30 20:36:42 +01:00
Hubert Denkmair
423e0f53bd add -Wno-deprecated to HAL builds to allow compile with gcc9 2019-10-30 20:32:13 +01:00
Hubert Denkmair
0b5f226d8f fix chip compile definition for STM32F042 devices 2019-10-30 20:30:22 +01:00
Hubert Denkmair
73dfc741c8 port fix for issue #15 2019-10-29 20:53:19 +01:00
Hubert Denkmair
29e8d65cdd fix whitespaces 2019-10-29 20:45:45 +01:00
Hubert Denkmair
797e15acfa return frame to pool if can_receive fails 2019-10-29 20:44:36 +01:00
Hubert Denkmair
9872639faf Merge branch 'master' of github.com:HubertD/candleLight_fw 2019-10-29 19:55:32 +01:00
Hubert Denkmair
ba1e4cce65 fix issue #15
thanks to @willtoth
2019-10-29 19:54:48 +01:00
Hubert Denkmair
f38ddcacf5 generate bin files, show compiled size 2019-10-27 16:09:02 +01:00
Hubert Denkmair
c05ca52c69
Merge pull request #18 from ndushman/patch-1
Fix enable_irq interpretation of primask
2019-10-27 13:10:49 +01:00
Hubert Denkmair
23ebdb8a78 convert to cmake 2019-10-26 16:53:43 +02:00
Hubert Denkmair
db969d72c1 remove old eclipse project 2019-10-26 14:38:49 +02:00
Nathan Dushman
35b409bf1e
Fix enable_irq interpretation of primask
The logic for enable_irq is backwards; it should enable interrupts when primask is 0, not 1.
2019-06-03 11:30:13 -07:00
Hubert Denkmair
53b4b915af
Merge pull request #7 from mbehensky/master
Thank you very much for your great contribution, will happily merge it :-)
I definitely should put more interest in the candleLight windows support, I guess.
2017-11-27 21:31:26 +01:00
Max Behensky
46b01339f5 Add new mode to pad output usb packets to max packet size for better WinUSB performance 2017-11-22 13:00:01 -08:00