eeeck
2be0f0370e
Use larger baudrate
2026-06-24 08:10:49 +02:00
eeeck
58c4b66f34
Try different prescalers
2026-06-24 08:10:41 +02:00
eeeck
adcdc8b340
Fix spacing
2026-06-18 15:15:52 +02:00
eeeck
2880ae64dc
Check semaphore acquire status
2026-06-18 15:05:50 +02:00
eeeck
33a2cc8fb4
Enable USART1 global interrupt
2026-06-18 15:02:19 +02:00
eeeck
41de3851f2
Implement better ciclical method for dummy CAN frame sent on debug
2026-06-18 14:06:00 +02:00
eeeck
6f8d2a12ea
Merge branch 'stm_debug' into dev_serial-send
2026-06-18 13:43:23 +02:00
eeeck
1ad8e5b04f
Change define name
...
- "DEBUG" is also used by STM32 for... something...
2026-06-18 13:38:28 +02:00
eeeck
ef034f3195
Add debug dummy CAN frame sent regularly
...
- Activated by defining DEBUG_DUMMY_FRAME
2026-06-18 13:37:10 +02:00
eeeck
5a91a56e27
Fix spacing
2026-06-18 13:25:07 +02:00
eeeck
9f1e7ba267
Move debugger connection check to main
2026-06-18 13:24:33 +02:00
eeeck
9086bf3efb
Fix buffer overwrite while DMA is not completed
2026-06-18 13:08:11 +02:00
eeeck
3bf5a8cc19
Fix spacing
2026-06-18 13:05:54 +02:00
eeeck
b9c371ed58
Initialize semaphore with count of 1
2026-06-18 13:05:43 +02:00
eeeck
9d96b3d4f2
Start
2026-06-18 12:50:50 +02:00
eeeck
bb70e0675a
Accept for standard IDs and extended IDs
2026-06-18 09:11:25 +02:00
eeeck
11e50b05e4
Make debug print safer by checking if ST-Link debugger is connected
2026-06-18 09:10:00 +02:00
eeeck
e951eaef7c
Fix debug prints
2026-06-18 09:07:09 +02:00
eeeck
ce25cba61b
Fix typo
2026-06-18 09:06:07 +02:00
eeeck
691d5dc1ea
Fix baudrates
...
- They were wrongly calculated on 168MHz but APB1 bus is at 42 MHz (168
/ 4)
2026-06-18 08:49:52 +02:00
eeeck
052d3fc5c0
Enable CAN bus NVIC interrupts with higher priority
...
- This was blocking the CPU from vectoring to
HAL_CAN_RxFifo0MsgPendingCallback
2026-06-18 08:44:25 +02:00
eeeck
4967cd9b32
Add USART DMA in Normal mode from CubeMX
2026-06-18 08:29:21 +02:00
eeeck
825ddc6961
Add debug print after 1s of no CAN traffic
2026-06-18 08:28:56 +02:00
eeeck
604e9e603b
Add USART DMA in Normal mode from CubeMX
2026-06-18 06:21:41 +02:00
eeeck
7b30c3cedd
Fix declaration bug
2026-06-17 21:27:26 +02:00
eeeck
4afa6702fb
Return exact length
2026-06-17 20:33:38 +02:00
eeeck
907c0b170d
Move to PFP block in main.c and use more standard logic
2026-06-17 20:33:22 +02:00
eeeck
60849ebb78
Testing: SDIO stuff deactivated until implemented
...
- Goes into error handling
2026-06-17 20:32:36 +02:00
eeeck
aeb553994c
Update LED struct
2026-06-17 20:14:56 +02:00
eeeck
5e28758a5e
Use serial mode instad of JTAG
2026-06-17 20:09:45 +02:00
eeeck
9980dafb5c
Initialize JTAG hardware
...
- To debug with ST-Link
2026-06-17 18:27:55 +02:00
eeeck
17c500e39a
Add debug messages for UART
2026-06-17 18:11:46 +02:00
eeeck
91218e782e
Include main header
2026-06-17 18:05:45 +02:00
eeeck
63e3e81986
Fix spacing
2026-06-17 18:05:04 +02:00
eeeck
84ea393dd6
Implement ITM debug via ST-Link
...
- Enable Instrumentation Trace Macroblock
- Remove PB3 initialization conflict with ITM
- Add a bunch of debug prints
2026-06-17 18:04:48 +02:00
eeeck
d69cb0231b
Removing duplicate, again...
2026-06-17 08:41:19 +02:00
eeeck
6bcc977c65
Switch ISR semaphore release to normal semaphore release
2026-06-16 23:07:50 +02:00
eeeck
8ec62d9fcd
Fix typo in comment
2026-06-16 23:07:03 +02:00
eeeck
cbefb45099
Add externs
2026-06-16 23:06:54 +02:00
eeeck
f7581d49ce
Fix task priority with correct handles
2026-06-16 23:06:35 +02:00
eeeck
e123c0172f
Small variable name change
2026-06-16 22:39:30 +02:00
eeeck
cd0b412d74
Remove whitespace
2026-06-16 22:35:04 +02:00
eeeck
24e100cae6
Use better name for CAN listener task function
2026-06-16 22:34:55 +02:00
eeeck
7d5b3f9be2
Increase all queue sizes and double the UART queue
2026-06-16 22:29:00 +02:00
eeeck
c540ff7800
Remove dead code
2026-06-16 22:13:52 +02:00
eeeck
dfc116b2e9
Fix linker error by moving RTOS thread declaration to global scope
2026-06-16 22:12:40 +02:00
eeeck
59b0aca092
Refactor: implement data relay from vCANLoggerListen to xUARTQueue
...
- No RTOS event, just queue put and get: cleaner way to send data and
more clear separation of concerns
2026-06-16 22:09:49 +02:00
eeeck
5f11cf5213
Revert decision on moving CAN event flag outside ISR
...
- Would have caused destruction of the queue data itself
2026-06-16 21:34:43 +02:00
eeeck
74bf4bde77
Implement identical queue drain for CAN2 to that of CAN1
2026-06-16 21:29:32 +02:00
eeeck
3691918196
Non-blocking on CAN1 queue check
...
- Check queue instantly
- Use DMA to move tx_buffer to UART peripheral
- Use a semaphore to DMA is being done, to avoid moving to next loop
iteration and overwriting tx_buffer
- HAL_UART_TxCpltCallback will release semaphore when DMA done
2026-06-16 21:27:52 +02:00