Commit Graph

77 Commits (5255da823f74ff9e1e8766f1b422d0702684274f)

Author SHA1 Message Date
Tej Sharma 5255da823f Merge branch 'stable' into dev-tej-TI_BLE_smd_stable 2025-07-28 14:51:20 +05:30
Tej Sharma ca3d7ec555 fix: add conditional watchdog init to prevent reinitialization if already running in bootloader code 2025-07-28 14:48:46 +05:30
vibhu d7faac9502 chore : add release-it config 2025-07-25 18:42:10 +05:30
Tej Sharma f346070551 perf: refactor code
- Add new watch dog enable disable wrapper function
2025-07-24 20:12:23 +05:30
Tej Sharma 6b74e25455 fix: add watchdog support and MCU recovery logic for fault scenarios
- Added watchdog initialization and periodic refresh in application code.
- Implemented software reset trigger when code enters Default_Handler (catch-all for unhandled interrupts).
- Improved FOTA robustness: added logic to restore code execution and CAN communication when the IOT module resets unexpectedly during firmware update.
- Verified recovery flow and communication reinitialization after system reset scenarios.
2025-07-24 19:13:37 +05:30
vibhu 402214e58c chore: release v0.1.0 2025-07-23 18:52:06 +05:30
vibhu 4b3dde9ada docs: add initial CHANGELOG.md 2025-07-23 18:48:06 +05:30
Tej Sharma 6f5919c517 Release 1.1.1 2025-07-11 18:59:24 +05:30
Tej Sharma bb1c37b910 feat: add npm package for releasing the code 2025-07-11 18:58:39 +05:30
Tej Sharma d3391047d6 fix: remove CAN reinit when bus goes off, add api to restore busoff error 2025-07-10 14:16:24 +05:30
Rakshita 801d483792 chore: reduce 7-segment brightness from level 8 to 6 2025-06-18 15:56:31 +05:30
Rakshita f29d164142 feat: send SMD and false touch status over CAN and UART
- Added functionality to transmit SMD (Significant Motion Detection) status via CAN and UART
- Included false touch status in the same packet
- Status data is sent every 5 seconds
2025-06-04 19:15:29 +05:30
Rakshita 17445c182e fix: Correct relay pin configuration and bit mapping 2025-04-15 12:04:55 +05:30
Gurpal singh 892b038c1f fix: all ids are being replaced by abcdef 2025-03-17 11:45:53 +05:30
Rakshita e3bdc83387 feat: Update clock configuration for UART3 2025-03-11 19:56:06 +05:30
Rakshita 9d4bd991d5 feat: Add UART3 functionality and parse specific IDs 2025-03-11 17:52:24 +05:30
Rakshita 2e4b44259a feat: Send ACK before jumping to bootloader
- Added functionality to send an acknowledgment (ACK) before executing the bootloader jump.
- Ensures the sender receives confirmation before transitioning to the bootloader.
2025-03-10 18:38:24 +05:30
Rakshita e3f185fa26 feat: Send ACK before jumping to bootloader
- Added functionality to send an acknowledgment (ACK) before executing the bootloader jump.
- Ensures the sender receives confirmation before transitioning to the bootloader.
2025-03-10 18:37:19 +05:30
Rakshita dfdb8d0c64 feat: Parse UART data from CC and forward over CAN
- Implemented parsing of incoming UART data from CC and transmitting it over CAN.
- Added functionality to send received CAN data back to CC via UART.
2025-03-10 18:22:39 +05:30
Rakshita 4704529a3b Merge branch 'stable' of https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti into stable 2025-02-20 17:32:01 +05:30
Rakshita aea1dda731 refactor: Improve OTA request handling in bootloader
- Device will now perform a soft reset only when VECIOT is received.
- Prevents TI from booting during BMS FOTA operation.
2025-02-20 17:31:53 +05:30
Altamash 22f3173c41 feat: Add UART flash API and integrate with NFC write function .
-Added UART Flash API for improved NFC functionality.
-Integrated the Flash API into the NFC write function to resolve issues where NFC scans failed after 3-4 attempts.
-Ensured smooth NFC operation by addressing write-related problems.
2025-02-06 12:47:38 +05:30
Rakshita d1f9c1eeff feat: Add NFC support 2025-02-04 12:23:37 +05:30
Rakshita cf901f42d3 Merge branch 'dev-rakshita-nfc' into stable 2025-01-29 16:09:20 +05:30
Rakshita 60c93c2210 fix: Disable retry for CAN-transmitted data in FOTA.
- Resolved issue where FOTA retry count reduced unexpectedly (from 50 to 44-35).
- Root cause: CAN transmission failures triggered delayed retries.
- Solution: Disabled retry mechanism for CAN-transmitted data to maintain expected retry count.
2025-01-29 15:31:21 +05:30
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 c28008621c feat(can): add default CAN speed of 500 if an invalid speed is entered 2025-01-08 16:30:45 +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 bd226465f7 fix: update prescaler and other configs to change CAN speed to 250kbps 2024-12-30 16:57:18 +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 d3412ccb36 fix: Correct MCAL layer issues and increase UART read timeout
- Resolved issues in the MCAL layer introduced during merge.
- Increased UART read timeout from 1ms to 300ms for improved data handling.
2024-12-12 17:39:27 +05:30
Rakshita ec5ae72cab fix: Correct UART ports for Battery Swapping Station 2024-12-02 14:43:35 +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 b3979c79bc chore: update the linker scrip to support bootloader 2024-11-18 14:16:16 +05:30
heezes a363d1c1f0 fix: update the ext id filter id from 25 bit to 29 bits 2024-11-18 14:12:41 +05:30
@rakshita4 5146999b44 feat(can): add default CAN speed of 500 if an invalid speed is entered 2024-11-18 14:03:45 +05:30