feat(tools): add can_tester PC-side debugging tool#43
Draft
Yusuf-Serdar wants to merge 1 commit into
Draft
Conversation
- Port tools/can_tester/ from PicoLowLevel with updates for STM32LowLevel CAN FD protocol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports
tools/can_tester/from PicoLowLevel, updated for the STM32LowLevel CAN FD protocol.Closes #41
Changes
Protocol updates
fd=True,bitrate_switch=Trueon all sent frames;--data-bitrate/-Darg (default 2 Mbit/s) added to CLI and web dashboardDATA_PITCH = 0x04(not incommunication.h); enum now has exactly 44 entries, all verified againstInc/communication.hheader_parser
_DEFAULT_INCLUDE_DIRto point toSTM32LowLevel/Inc#if A == B/#elif A == Bregex support forMODULE_DEFINE == MK2_MOD1style guards#define NAME IDENTIFIERresolution (handles#define CAN_ID MK2_MOD1)_MODULE_ADDRESSESmap andpredefined_valuesinjection forparse_mod_config()Bug fix
cli.py_handle_send:parts[2]→args[1](wrong variable used for"permanent"flag check)Validation
test_dry.pyruns without hardware; all tests pass: