Commit Graph

23 Commits (071788de5652713b89085dd85f162c3f81b09109)

Author SHA1 Message Date
Rakshita 071788de56 fix: Address conventions and resolve MATLAB handler default issue
- Corrected naming conventions across modules for consistency.
- Fixed the issue where the MATLAB code was defaulting to the handler by initializing struct variables to zero.
- Improved CAN TX function for more reliable data transmission.
2025-01-23 16:31:22 +05:30
Rakshita b1fa1129af refactor: Improve CAN and UART handling, add documentation and checks
- Fixed UART speed inside handle and CAN speed inside handle for runtime configuration.
- Moved CAN filter setup inside the handle for more centralized control.
- Added documentation above functions for better readability.
- Included argument checks at function entry to ensure valid parameters.
- Added runtime checks to prevent memory corruption where values can change dynamically.
- Removed unnecessary `extern` declarations to improve code clarity.
- Fixed `vMCAL_MCAN_Tx()` to return success even if `if (sMcalTxFifoStatus_x.freeLvl)` fails.
- Removed unused functions to clean up the codebase.
- Fixed `xMCAL_VrefInit()` by calling vMCAL_SoftReset.
2025-01-20 15:20:15 +05:30
Rakshita 1c6fff8d24 refactor: Standardized naming conventions and improved CAN functionality
- Updated naming conventions in MCAL, ECU layers for UART and CAN, RTE, utils, and main modules.
- Applied CAN filters directly in the initialization function for better reliability.
- Restricted CAN reinitialization to bus-off errors only.
- Enhanced RX interrupt handling for CAN to improve performance and stability.
- Made updates to the CAN TX function for better data transmission.
- Updated TX functionality to replace buffer usage with queue-based implementation.
2025-01-17 18:00:45 +05:30
Rakshita a6d7b58f3d refactor: Update MCAL and ECU layers for UART and synchronize RTE layer
- Fixed the MCAL and ECU layers to handle multiple UART configurations.
- Updated the RTE layer to align with changes in UART layers for improved compatibility and functionality.
2025-01-09 17:08:04 +05:30
Rakshita 067c61f9cc feat: Added relays for Fan 1 and Fan 2
- Introduced two new relays for controlling Fan 1 and Fan 2.
- Updated the 9-bit status word to accommodate the new relays, expanding to 11 bits.
- Adjusted GPIO pin mapping to include the new relays in the control logic.
2024-12-18 16:34:53 +05:30
Rakshita 49357f5d62 feat: add macros for different PCBs (Basil, Battery Smart Basil, Battery Swapping Station) and update CPU clock frequencies
- Added macros for different PCBs: Basil, Battery Smart Basil, and Battery Swapping Station.
- Increased CPU clock frequency from 48 MHz to 72 MHz.
- Increased UART clock frequency from 24 MHz to 36 MHz.
2024-12-02 14:21:54 +05:30
@rakshita4 03a449ca7f Merge branch 'uart_Pin_Pa8&9' into uart_can_fucntional 2024-11-19 13:33:22 +05:30
@rakshita4 9999b9cfeb Merge branch 'uart_Pin_Pa8&9' into uart_can_fucntional 2024-11-19 09:46:56 +05:30
heezes e013432ef7 fix: increase uart transmit timeout to 100 ms 2024-11-08 14:41:50 +05:30
heezes 51cb91df6c fix: update the CPU clock to 48Mhz
- Update the systick period enum
- Add bootloader jump and check
- Increased the destination buffer size during rx drain
- Increased uart buffer size from 8 to 64
2024-11-07 10:32:26 +05:30
Rakshitavecmocon 56c08e98b8 fix: Correct standard ID handling in CAN RX by applying proper shift 2024-11-05 00:54:43 +05:30
heezes 9631a6c398 fix: can transmission over uart 2024-11-03 20:01:20 +05:30
Rakshitavecmocon 3896d66aa0 feat: Configure UART1 to PA8 and PA9, comment vRTE_Matlab functions, and include additional paths 2024-10-30 19:11:49 +05:30
heezes ed765079dd fix: can implementation
- add ping reply
- can mcal implementation from socmeter
- removed the dot buffer usage in TM1650
- removed unsued variables/code
2024-10-29 19:03:30 +05:30
heezes ab99333dad feat: add matlab code to display soc 2024-10-29 14:42:05 +05:30
Rakshitavecmocon 03c4f12a70 fix: command some line 2024-10-24 14:32:21 +05:30
Rakshitavecmocon ce790d74b1 feat:: changed UART pins to PA8 and PA9, switched to UART1 in new branch, removed some comments 2024-10-23 17:34:45 +05:30
Rakshitavecmocon bfabca4b6d feat: Add runtime CAN baud rate change based on UART packet mode
- Implemented functionality to change the CAN baud rate at runtime if the received UART packet has mode set to one.
2024-10-17 16:26:33 +05:30
Rakshitavecmocon 9b2c2312cb feat: Add runtime UART baud rate change based on received packet mode
Implemented functionality to change UART baud rate at runtime if the received packet has mode set to zero.
2024-10-17 13:10:51 +05:30
Rakshitavecmocon 9599f1630c feat: Implement SysTick for UART reception and enhance CAN MCAL layer
-Replaced timer-based UART data reception with SysTick timer implementation.
- Modified the UART interrupt handler to manage interrupts effectively.
- Updated MCAL layer for CAN to ensure proper handling of FIFO in RX interrupts.
- Corrected the deinitialization function in the MCAL layer of CAN.
- Implemented a handler for managing lastErrCode in CAN interrupts.
- Removed all debug print statements and unnecessary CAN filters to clean up the code.
2024-10-15 16:10:03 +05:30
Rakshitavecmocon 5b88394f22 fix: Update clock configuration and UART/CAN settings
- Corrected clock configuration according to HFXT
- Set UART baud rate based on HFXT clock
- Configured CAN timing according to DL_MCAN_FCLK_HFCLK
2024-10-10 18:39:44 +05:30
Rakshitavecmocon 85a15dc97f feat: Implement UART to CAN and CAN to UART communication
- Implemented RX and TX functionalities for UART to CAN and CAN to UART
- Updated necessary layers to support seamless communication
2024-10-04 18:51:42 +05:30
Rakshitavecmocon c5e0c06a07 Initial commit 2024-09-26 18:52:04 +05:30