fenugrec
d66fda39f8
Add git version string to USB config descriptor
...
There was already provisions for this in the code. Tweaked CMake to
generate version.h automatically every build.
2021-04-06 12:03:13 -04:00
fenugrec
138e6cb433
Add basic assert checks
...
Avoid using <assert.h> because the standard assert() pulls in
fprintf and its of dependencies, as well as including __FILE__:__LINE__
strings for each assert() call. All this has an unacceptable memory
cost, as well as being useless since there is nothing to printf *to*.
Currently assert_basic() was added to check calloc() return values;
in case of failure we simply halt the core with BKPT(0). This could be
improved and refined.
2021-02-17 16:00:09 -05:00
John Whittington
1468b693a9
add Entree board to supported boards
2021-02-16 11:11:32 -05:00
John Whittington
05fe629e5c
add user data section to linker scripts
...
This had probably been accidentally reverted in
2ebc665109887bfe95a4ad63ebe5e1d7d13c0fef ? flash_data_rom ended up on the same flash page as other unrelated data, which meant flash_flush() would've erased too much.
Also reduce nvm area to 1k and use variables to calculate area. (F042
devices only have 1kB pages vs 2k for the F072)
2021-02-16 11:08:11 -05:00
fenugrec
68df7d5448
README: add note about F042 limitations
2020-12-29 10:25:50 -05:00
fenugrec
3e556d9046
forgot to commit cmake/FindDFUSuffix.cmake
2020-12-13 10:41:07 -05:00
fenugrec
3d52db0a97
Add PR #63 comment, and __ISB() after disable_irq
2020-12-13 10:38:29 -05:00
fenugrec
031edba8ce
README : more info about reflashing
2020-12-07 16:11:47 -05:00
fenugrec
9d00e884c7
cmake : forgot to specify ldscript to linker
2020-12-06 12:51:46 -05:00
Hubert Denkmair
b796282765
move USB descriptor callback table to ROM
2020-12-06 12:51:46 -05:00
Hubert Denkmair
b94a26f016
move all usb descriptors to ROM
...
copy to USBD_DescBuf when requested
(serving from ROM seemingly not supported?)
2020-12-06 12:51:46 -05:00
Hubert Denkmair
f380b5eafd
rename USBD_StrDesc to USBD_DescBuf
...
(will reuse not only for strings)
2020-12-06 12:51:46 -05:00
Hubert Denkmair
c3efe48018
shink usb descriptor string buffer to save some RAM
2020-12-06 12:51:46 -05:00
Hubert Denkmair
e921aeac87
remove useless linker option
2020-12-06 12:51:46 -05:00
Hubert Denkmair
1712fecf5e
enable link-time optimizations
2020-12-06 12:51:46 -05:00
Hubert Denkmair
643d64a9df
fix uninitialized variable warning
2020-12-06 12:51:46 -05:00
Hubert Denkmair
0aa13404d8
since Reset_Handler is now part of the main executable, no need for a OBJECT library any more
2020-12-06 12:51:46 -05:00
Hubert Denkmair
b5cc61b331
fix critical section handling
...
thanks to @ndushman for pointing this out
2020-12-06 12:51:46 -05:00
Hubert Denkmair
39c3d0c52a
remove old unused linker script
2020-12-06 12:51:46 -05:00
Hubert Denkmair
df9113fb6b
set appropriate stack sizes
2020-12-06 12:51:46 -05:00
Hubert Denkmair
c88dc27653
call __initialize_hardware_early from reset handler for USB DFU handling
2020-12-06 12:51:46 -05:00
Hubert Denkmair
c6d180edaa
add interrupt vetor table
2020-12-06 12:51:46 -05:00
Hubert Denkmair
338a0e22a0
add all header files to HAL cmake SOURCES
2020-12-06 12:51:46 -05:00
Hubert Denkmair
fef1d397b5
use startup files and linker scripts from LibreUCpp
2020-12-06 12:51:46 -05:00
Hubert Denkmair
d7332a3173
update LICENSE infos for STM32 USB library
2020-12-06 12:51:46 -05:00
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