From e3f185fa26dd2e12b0ae2ada6aefb11bb7b66170 Mon Sep 17 00:00:00 2001 From: Rakshita Date: Mon, 10 Mar 2025 18:37:19 +0530 Subject: [PATCH 1/4] 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. --- .cproject | 1 - .project | 4 ++-- .settings/org.eclipse.core.resources.prefs | 8 ++++++++ ivec_RTE/src/ivec_rte.c | 13 +++++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.cproject b/.cproject index ad91ba0..9be6ad7 100644 --- a/.cproject +++ b/.cproject @@ -480,7 +480,6 @@ - diff --git a/.project b/.project index 5e8f81a..4d5f51c 100644 --- a/.project +++ b/.project @@ -38,12 +38,12 @@ lib 2 - C:/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/lib + C:/ti/mspm0_sdk_2_03_00_07/source/ti/driverlib/lib m0p 2 - C:/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/m0p + C:/ti/mspm0_sdk_2_03_00_07/source/ti/driverlib/m0p diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index 6462da1..e37e7c6 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -207,6 +207,8 @@ encoding//Test__GNU/lib/gcc/m0p/mspm0g1x0x_g3x0x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/gcc/m0p/mspm0g1x0x_g3x0x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/gcc/m0p/mspm0gx51x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/gcc/m0p/mspm0gx51x/subdir_vars.mk=UTF-8 +encoding//Test__GNU/lib/gcc/m0p/mspm0l111x/subdir_rules.mk=UTF-8 +encoding//Test__GNU/lib/gcc/m0p/mspm0l111x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/gcc/m0p/mspm0l11xx_l13xx/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/gcc/m0p/mspm0l11xx_l13xx/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/gcc/m0p/mspm0l122x_l222x/subdir_rules.mk=UTF-8 @@ -217,6 +219,8 @@ encoding//Test__GNU/lib/iar/m0p/mspm0g1x0x_g3x0x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/iar/m0p/mspm0g1x0x_g3x0x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/iar/m0p/mspm0gx51x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/iar/m0p/mspm0gx51x/subdir_vars.mk=UTF-8 +encoding//Test__GNU/lib/iar/m0p/mspm0l111x/subdir_rules.mk=UTF-8 +encoding//Test__GNU/lib/iar/m0p/mspm0l111x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/iar/m0p/mspm0l11xx_l13xx/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/iar/m0p/mspm0l11xx_l13xx/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/iar/m0p/mspm0l122x_l222x/subdir_rules.mk=UTF-8 @@ -227,6 +231,8 @@ encoding//Test__GNU/lib/keil/m0p/mspm0g1x0x_g3x0x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/keil/m0p/mspm0g1x0x_g3x0x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/keil/m0p/mspm0gx51x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/keil/m0p/mspm0gx51x/subdir_vars.mk=UTF-8 +encoding//Test__GNU/lib/keil/m0p/mspm0l111x/subdir_rules.mk=UTF-8 +encoding//Test__GNU/lib/keil/m0p/mspm0l111x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/keil/m0p/mspm0l11xx_l13xx/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/keil/m0p/mspm0l11xx_l13xx/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/keil/m0p/mspm0l122x_l222x/subdir_rules.mk=UTF-8 @@ -237,6 +243,8 @@ encoding//Test__GNU/lib/ticlang/m0p/mspm0g1x0x_g3x0x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/ticlang/m0p/mspm0g1x0x_g3x0x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/ticlang/m0p/mspm0gx51x/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/ticlang/m0p/mspm0gx51x/subdir_vars.mk=UTF-8 +encoding//Test__GNU/lib/ticlang/m0p/mspm0l111x/subdir_rules.mk=UTF-8 +encoding//Test__GNU/lib/ticlang/m0p/mspm0l111x/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/ticlang/m0p/mspm0l11xx_l13xx/subdir_rules.mk=UTF-8 encoding//Test__GNU/lib/ticlang/m0p/mspm0l11xx_l13xx/subdir_vars.mk=UTF-8 encoding//Test__GNU/lib/ticlang/m0p/mspm0l122x_l222x/subdir_rules.mk=UTF-8 diff --git a/ivec_RTE/src/ivec_rte.c b/ivec_RTE/src/ivec_rte.c index 0028660..718046d 100644 --- a/ivec_RTE/src/ivec_rte.c +++ b/ivec_RTE/src/ivec_rte.c @@ -468,6 +468,19 @@ void vRTE_ProcessUartData(void) if(l_eRetCode > -1) { + if( (l_u32Id == 0x16) && (g_pu8UartBuffer[ecuUART_PKT_HEADER_u8] == 'V') && \ + (g_pu8UartBuffer[ecuUART_PKT_HEADER_u8 + 1] == 'E') &&(g_pu8UartBuffer[ecuUART_PKT_HEADER_u8 + 2] == 'C') && \ + (g_pu8UartBuffer[ecuUART_PKT_HEADER_u8 + 3] == 'I') && (g_pu8UartBuffer[ecuUART_PKT_HEADER_u8 + 4] == 'O') && \ + (g_pu8UartBuffer[ecuUART_PKT_HEADER_u8 + 5] == 'T')) + { + uint32_t u32Id = 0x36; // ID to pass + uint8_t pu8Data[1] = {0x79}; // Data array containing 0x79 + uint8_t u8Len = sizeof(pu8Data); // Length of data array + iECU_UartInitiateTransmit(&g_xUartHandle, u32Id, pu8Data, u8Len); + iECU_UartInitiateTransmit(&g_xUartHandle, 0x8, NULL, 0); + vMCAL_softReset(); + } + if(l_eRetCode > 0 && l_u32Id == 0x00) { uint32_t l_u32Baudrate = 0; From 4b3dde9ada01ef7d5cdc5c5153bb282e6afd2f17 Mon Sep 17 00:00:00 2001 From: vibhu Date: Wed, 23 Jul 2025 18:48:06 +0530 Subject: [PATCH 2/4] docs: add initial CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a2e5837 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ +"# Changelog" From 402214e58cdfa4a4e52d616cfeb3094a2b364dbd Mon Sep 17 00:00:00 2001 From: vibhu Date: Wed, 23 Jul 2025 18:52:06 +0530 Subject: [PATCH 3/4] chore: release v0.1.0 --- CHANGELOG.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2e5837..e4c97f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,56 @@ -"# Changelog" +# Changelog + +## 0.1.0 (2025-07-23) + +### Features + +* add macros for different PCBs (Basil, Battery Smart Basil, Battery Swapping Station) and update CPU clock frequencies ([49357f5](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/49357f5d6240cba13fb1c254eb05f5b7d2b37cf2)) +* add matlab code to display soc ([ab99333](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/ab99333dad147f02ea42034ccc3b8fa82a2b7537)) +* Add mode 3 and mode 4 for runtime CAN filter application with mask-based filtering ([d722738](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/d722738591fd414f6159c8983fc3c3613de727bc)) +* Add NFC support ([d1f9c1e](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/d1f9c1eeff4bc048a5361531bf3a7f0c1a7347c1)) +* Add runtime CAN baud rate change based on UART packet mode ([bfabca4](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/bfabca4b6d78c7a858e5ff4de92a6cb59f92c98d)) +* Add runtime UART baud rate change based on received packet mode ([9b2c231](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/9b2c2312cb1f1bb21e71f38a359bda54bb468a01)) +* add soc decoding basis received can id ([b345c3a](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/b345c3ae485f456c711ca9350f8e5057ad594d05)) +* Add UART flash API and integrate with NFC write function . ([22f3173](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/22f3173c4149a9b34f9d2d359f86f00fcefed832)) +* Added relays for Fan 1 and Fan 2 ([067c61f](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/067c61f9cc9ecb41c213ec897cfffb1426c9f947)) +* 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 ([718fc19](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/718fc19753380dc40fed05eef4bf66223679678c)) +* **can:** add default CAN speed of 500 if an invalid speed is entered ([c280086](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/c28008621c094ca90e32dd51c6f1b68c2ecb1826)) +* **can:** add default CAN speed of 500 if an invalid speed is entered ([5146999](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/5146999b44114642a5508d6fb05e94897e73b80b)) +* **can:** apply filters based on both filter ID and mask ID for standard or extended filters ([23dee00](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/23dee0036225b7a9716c24d7a2b86b18ff2e00a6)) +* Configure UART1 to PA8 and PA9, comment vRTE_Matlab functions, and include additional paths ([3896d66](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/3896d66aa04b5ab417269c87ca0a5ba368b95759)) +* Ensure runtime filters are re-applied during CAN reinitialization ([bbd2a74](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/bbd2a74cbf0d47582bf1ba2925bd3a050ed64946)) +* Implement 9-bit status word for relay control ([9bf10d7](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/9bf10d7beffc77ead1d73a8b4c41582d83052851)) +* Implement SysTick for UART reception and enhance CAN MCAL layer ([9599f16](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/9599f1630c6dcc28edc86b769369e4f5b9a55f67)) +* Implement UART to CAN and CAN to UART communication ([85a15dc](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/85a15dc97fdbdc526ee66cd16e79238d987feb1e)) +* Integrate NFC functionality ([e513e0f](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/e513e0fff136fc5415a841d5d98c77e5622625fe)) +* reject 0x500 to 0x600 CAN id ([3d3b399](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/3d3b39960e64531d912d022b6402c69fe950303b)) +* Send ACK before jumping to bootloader ([e3f185f](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/e3f185fa26dd2e12b0ae2ada6aefb11bb7b66170)) + +### Bug Fixes + +* add bus ack error handling ([a3ac0f2](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/a3ac0f2a1af4b3e4cb9b64badab77dd1e4570889)) +* add logic to control display time from c code and blink soc on display while charging ([8faece3](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/8faece3cee93301d672d9311649749468c90d405)) +* Address conventions and resolve MATLAB handler default issue ([071788d](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/071788de5652713b89085dd85f162c3f81b09109)) +* can baudrate change from 250 to 500 ([4a623a0](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/4a623a0defd54ededef21e739305b3ee36a220e8)) +* can implementation ([ed76507](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/ed765079dd1bce1f5192d9884587d61b79e303db)) +* can transmission over uart ([9631a6c](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/9631a6c398af17be198ffa9487c8faf583f1b267)) +* **can:** address issue with __gprv_u8Buf causing unexpected behavior in filtering ([f5bba30](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/f5bba3050270f7e73c4ae4272b552841a89d19dc)) +* **can:** restrict data transfer to buffer 0 and 1 due to issues with buffer 2 ([1ed44db](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/1ed44dbf4f06002e9fb24a5c797c14b105791063)) +* command some line ([03c4f12](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/03c4f12a7033914580165b47a90be9b24cce0487)) +* Correct CAN RX interrupt to handle extended IDs ([01b8476](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/01b847661b86f3d7ee3790962151742d930cb5ed)) +* Correct CAN RX interrupt to handle extended IDs and remove CAN filters ([c9482f4](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/c9482f46bbd750e179376a8f7eac3263859bc3cd)) +* Correct MCAL layer issues and increase UART read timeout ([d3412cc](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/d3412ccb3673e64d73c90794d22c8bb4360ed385)) +* Correct standard ID handling in CAN RX by applying proper shift ([56c08e9](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/56c08e98b8b8d593af6aced0cc6b475a0c009220)) +* Correct UART ports for Battery Swapping Station ([ec5ae72](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/ec5ae72cab16742870f9d47fa5c4dc1be1d781ae)) +* Corrected relay order for 9-bit status word ([ff2fd22](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/ff2fd2288a27d1dd894ea467a33ef3416cf15cfd)) +* Disable retry for CAN-transmitted data in FOTA. ([60c93c2](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/60c93c2210bf7e555c5b502bfc32fd2b2ba1176f)) +* Implement error handling for CAN ([17131c3](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/17131c3a34d0fb381d4b4525b2205eb3416013c8)) +* increase uart transmit timeout to 100 ms ([e013432](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/e013432ef7fb87b24b95270bf18e54e352043df6)) +* Resolved specific issues with CAN deinitialization and TX buffer usage ([668462e](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/668462eff55d204dc8d40765d849efbccd05fbbd)) +* temporary merge of nfc with cantouart ([20e27ae](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/20e27aeed4ff7e3500ad600ef58ab141f35e5bfa)) +* Update clock configuration and UART/CAN settings ([5b88394](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/5b88394f22a4dc7edcaeca7ec63aa2ab02f88f8f)) +* update prescaler and other configs to change CAN speed to 250kbps ([bd22646](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/bd226465f782a6e7e6487c9e21fbdd172cac7664)) +* update the CPU clock to 48Mhz ([51cb91d](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/51cb91df6ce601b122a1881c8709922118c2a4a4)) +* update the ext id filter id from 25 bit to 29 bits ([a363d1c](https://gitea.vecmocon.com/Vecmocon_Technologies/cantouart_ti/commit/a363d1c1f05af5e3978c97891179720499d22a01)) + +"" From d7faac9502fc765153f618fbedc6bd01869d9817 Mon Sep 17 00:00:00 2001 From: vibhu Date: Fri, 25 Jul 2025 18:42:10 +0530 Subject: [PATCH 4/4] chore : add release-it config --- .release-it.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .release-it.json diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 0000000..c017b94 --- /dev/null +++ b/.release-it.json @@ -0,0 +1,17 @@ +{ + "plugins": { + "@release-it/conventional-changelog": { + "preset": "conventionalcommits", + "infile": "CHANGELOG.md" + } + }, + "git": { + "requireCleanWorkingDir": false, + "commitMessage": "chore: release v${version}", + "tagName": "v${version}", + "add": "CHANGELOG.md" + }, + "npm": { + "publish": false + } +}