Ethan Zonca
0e2e9169f1
Wait on USB TX busy instead of abort. Add error register reporting over USB. Update flash cmdline to leave bootloader after complete.
2023-01-21 14:56:37 -05:00
Ethan Zonca
3c0a6fc53b
Disable interrupts during critical period
2023-01-13 14:50:52 -05:00
Brian Daniels
7b06b04fe7
Enable CAN FIFO Transmit priority
...
This is required for segmented transmission, which is used in ISO
15765-2 (ISO-TP).
2021-02-22 11:58:40 -05:00
Ethan Zonca
8c005eb537
Increase flash latency to 1. This may have caused some previous intermittent issues. Increase USB buffer size to accomodate version string. Add fault ISRs for debugging.
2021-02-21 16:02:21 -05:00
Ethan Zonca
cb2fa58fbc
Add data buffering: backport of major buffering features from g4: CAN TX buffering, CDC RX buffering. No USB TX buffering yet.
2021-02-21 13:03:27 -05:00
Ethan Zonca
100f0fe01b
Big update: Bump HAL library, CMSIS, and USB library. Largest changes is the CAN library, now sanely adds messages to TX mailboxes.
2020-03-05 19:57:22 -05:00
Ethan Zonca
6c5075c20f
Increase version hash length, update USB descriptor
2019-04-07 22:37:54 -04:00
Ethan Zonca
da4c91cbff
Add firmware version reporting via V slcan message and via USB descriptor
2019-04-07 22:29:33 -04:00
Ethan Zonca
0bc8ec5b42
Set CRS polarity; don't force software sync event on startup
2019-04-05 09:16:25 -04:00
Ethan Zonca
f6a60edd48
Indentation and commenting, no functional changes
2019-01-01 12:24:33 -05:00
Ethan Zonca
430db8223f
Disable ACK/NACK as it causes lockup. Need to debug.
2019-01-01 12:23:26 -05:00
Ethan Zonca
91b4fb8fd3
Fix support for disabling autoretransmission. Tested; works.
2019-01-01 11:59:37 -05:00
Ethan Zonca
3a0efec0b9
Add transmission of ack/nack over USB
2019-01-01 11:59:15 -05:00
Ethan Zonca
23061febec
Update README and add support for autoretransmit enable/disable
2018-12-31 14:24:46 -05:00
Jared Sanson
e2610ad57d
Fix USB priority preventing CAN TX from timing out
...
The blocking CAN implementation relies on SysTick for its timeout. USB had a higher priority than Systick, so the TX never timed out, causing the serial port to hang indefinitely.
2018-10-28 15:25:37 -07:00
Ethan Zonca
8b2ae813fe
Port to new HAL, fixes USB issues. Revert to blocking CAN RX/TX. Add unique serial number from chip UID.
2018-10-07 14:19:58 -04:00
Ethan Zonca
f5fbbd10cb
Add green LED blink to see if processor is alive
2016-08-18 22:24:30 -04:00
Ethan Zonca
08fdf43675
Minor change to rearming, although the processor seems to be locking up again
2016-08-18 22:19:14 -04:00
Ethan Zonca
f6fe885d55
Bump HAL and CMSIS libraries to latest version
2016-08-18 22:08:04 -04:00
Ethan Zonca
ae392017eb
Appears that Receive_IT rearm call is returning HAL_BUSY as the CAN module is locked on txing. Need to resolve HAL issue.
2016-08-18 21:49:09 -04:00
Ethan Zonca
ff1036f57b
Defer some work to the main loop. Deferring slcan parse from usbd_cdc_if receive interrupt fixes freezing but CANables stop talking.
2016-08-16 22:15:20 -04:00
Ethan Zonca
2c5f345955
Transition to interrupt-based CAN transmission, which is now functional. Full duplex still hangs, however.
2016-08-13 14:22:24 -04:00
Ethan Zonca
90be8b3524
Untested transition to interrupt-based CAN communication
2016-08-12 17:12:52 -04:00
Ethan Zonca
037e7a9c6d
Updated main loop, small changes to LED handler
2016-08-12 16:56:25 -04:00
Ethan Zonca
75939cf68d
Include and source directories now lower case
2016-08-11 22:12:58 -04:00