MCSDK 6.2.0 bug - Virtual V_bus_sensing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-22 01:59 AM - edited ‎2023-12-22 02:17 AM
When disabling Bus Voltage Sensing and Temperature Sensing in MC WB 6.2.0 the MC Application results in HardFault. After some debugging I found that the last release of the MCSDK has made a minor change to RCM_ReadOngoingConv(). This means that when RCM_handle_array[i] is null, it is still used as an input parameter to a function that tries to access its data member which causes a Memory Fault.
I have attached a bug report document explaining the error. Furthermore I have also attached a PrtSc of the debug window and a file containging the STWB6 project (OBS: the project uses a modified STEVAL-SPIN3201 board with changed current sensing network)
Hope this bug will corrected
Best Regards Nikolaj T. L.
- Labels:
-
Bug-report
-
MC Firmware
-
MCSDK6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-02 07:10 AM
Hello Nikolaj_TL,
I have tried to run a project similar to yours (STEVAL-SPIN3201 + 10kHz PWM FOC + Hall Sensor Speed Feedback + Feed Forward + No VBUS + No Temp) and it is working just fine.
Although what you said is true, the RCM_ReadOngoingConv() function is not meant to be used when no regular conversion is on going, so the previous check from version 5.4.5 is useless. In the FOC_CurrControllerM1() function, there should be the RCM_ExecNextConv() function triggering the ADC conversion that is later read by RCM_ReadOngoingConv(). This is meant for current control and should happen normally even without VBus and Temperature sensing.
Maybe the issue you are facing does not lie there. Have you modified the generated code in any way ? Have you tried with a "regular" STEVAL-SPIN3201 ?
Hope this will help,
Gaël A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-05 01:43 PM
Hi all,
This issue has already been addressed in MCSDK 6.2.1.
Regards
Cedric.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-22 02:42 AM
Hello Gael and cedric,
I am glad go hear that the issue has been addressed in the MCSDK 6.2.1. I hadn't changed anything in the generated code and it also resulted in errors on a regular STEVAL_SPIN3201 board.
I am looking forward to using version 6.2.1.
Regards
Nikolaj T.L.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-22 03:42 AM
Hi @Nikolaj_TL
Thanks for the notification.
Please confirm that 6.2.1 fixes your issue.
Thanks & Regards
Cedric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-26 02:33 AM
Hello @cedric H ,
MC SDK 6.2.1 did fix the issue. Thank you for the quick response