Commit Graph

29 Commits (20e27aeed4ff7e3500ad600ef58ab141f35e5bfa)

Author SHA1 Message Date
Gurpal singh 20e27aeed4 fix: temporary merge of nfc with cantouart 2025-01-24 14:44:33 +05:30
Rakshita e513e0fff1 feat: Integrate NFC functionality 2025-01-24 11:39:26 +05:30
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 bbd2a74cbf feat: Ensure runtime filters are re-applied during CAN reinitialization
- Added functionality to retain and reapply runtime filters automatically when CAN is reinitialized.
(Addressed an issue where excessive packets caused CAN errors when charger and daughter board were connected. )
2025-01-08 15:42:05 +05:30
Rakshita 9f0e5a215d refactor: Removed bootloader addresses, UART debug messages, and unused relay pin initialization 2025-01-02 17:53:24 +05:30
Rakshita 8faece3cee fix: add logic to control display time from c code and blink soc on display while charging 2024-12-30 17:48:32 +05:30
Rakshita 668462eff5 fix: Resolved specific issues with CAN deinitialization and TX buffer usage
- Corrected the `CAN_DeInit` function to address cleanup problems during deinitialization.
- Restricted TX operations to buffer 0 only, as buffer 1 was causing transmission errors.
2024-12-27 19:16: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 ff2fd2288a fix: Corrected relay order for 9-bit status word
- Reversed the relay order to align with the correct mapping.
- Bit 0 now corresponds to `charger1_en` instead of `charger9_en`.
2024-12-16 17:07:07 +05:30
Rakshita 9bf10d7bef feat: Implement 9-bit status word for relay control
- Added functionality to control 9 relays based on a 9-bit status word.
- Each bit in the 9-bit word corresponds to a relay, controlling GPIO pins to turn relays ON/OFF.
- When CAN ID 0x6FF69 is received, the relay control task is triggered.
2024-12-16 14:35:08 +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 1ed44dbf4f fix(can): restrict data transfer to buffer 0 and 1 due to issues with buffer 2
Identified an issue with the 2nd TX buffer in CAN. Updated the implementation to use only buffer 0 and buffer 1 for CAN data transfer.
2024-11-22 00:08:43 +05:30
@rakshita4 f5bba30502 fix(can): address issue with __gprv_u8Buf causing unexpected behavior in filtering
- Changed buffer number calculation from static `0` to dynamic cycling using `(__gprv_u8Buf + 1) % 3`.
- Investigating unexpected behavior affecting CAN filtering process.
2024-11-21 11:08:35 +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 a3ac0f2a1a fix: add bus ack error handling
- Add FC instead of 100% soc
2024-11-18 12:17:23 +05:30
@rakshita4 0e0423540d update(can): refine filters to decide application based on both filter ID and mask ID 2024-11-16 16:39:39 +05:30
@rakshita4 23dee00362 feat(can): apply filters based on both filter ID and mask ID for standard or extended filters 2024-11-16 16:37:15 +05:30
@rakshita4 37c087aaed refactor(can): apply filters based on filter ID for standard or extended IDs instead of mask ID
Changes filter application logic to determine standard or extended filter based on the filter ID instead of the mask ID
2024-11-14 10:17:11 +05:30
@rakshita4 d722738591 feat: Add mode 3 and mode 4 for runtime CAN filter application with mask-based filtering 2024-11-13 03:53:59 +05:30
heezes b345c3ae48 feat: add soc decoding basis received can id
- decoding the soc basis the can id received from ec200
2024-11-08 14:42:40 +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 718fc19753 feat: Apply CAN filters for both standard and extended IDs - Standard ID filters: - Filter 1: Allow IDs from 100 to 200 - Filter 2: Allow IDs from 300 to 400 - Extended ID filters: - Filter 1: Allow IDs from 3000 to 3500 - Filter 2: Allow IDs from 4000 to 4500 2024-11-05 13:12:57 +05:30
heezes 9631a6c398 fix: can transmission over uart 2024-11-03 20:01:20 +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