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
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
@rakshita4
3d3b39960e
feat: reject 0x500 to 0x600 CAN id
2024-11-12 16:54:07 +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
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
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
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
4a623a0def
fix: can baudrate change from 250 to 500
2024-10-27 23:34:20 +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
01b847661b
fix: Correct CAN RX interrupt to handle extended IDs
2024-10-16 19:04:15 +05:30
Rakshitavecmocon
c9482f46bb
fix: Correct CAN RX interrupt to handle extended IDs and remove CAN filters
...
- Fixed the MCAL layer of CAN where RX interrupts were discarding extended IDs and only processing standard IDs.
- Removed CAN filters from the CAN configuration to allow better reception of all messages.
2024-10-15 21:15:22 +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
17131c3a34
fix: Implement error handling for CAN
2024-10-07 18:32:06 +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