Hello @ykarata1 ,
I've tried to have a look at your model but I am unable to open it. Can you please send it to me again? You can export it as .mdl and attach it like that.
Now, for your request, I think I understand the issue you are reporting. Basically, if you feed/drain the pack with a constant current, you are expecting that the CCAccumulator/CCSamples to be equal with the current that you are measuring on the Shunt Resistor (Of course, after applying the V2RES and so on).
I will investigate this and will reply with an answer.
Until that, as I've mentioned in our previous thread https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/What-is-the-logic-behind-CC-Accumulator-ou... The BCC MC3377xB is initialized with a configuration, which can be found in the "{MBDT install path}\mbdtbx_s32k\src\BCC_SDK_SW\SDK_SW_Driver\bcc_s32k" in the bcc_initial_configuration.h. Here you can access the initial which are sent to the registers. And the main point of interest for CC is the
BCC_CONF1_ADC2_OFFSET_COMP_VALUE starting with line 63. Basically, the current settings for the CC are: each reading resets the CC registers value and it is currently working in the Clamping mode. These modes are detailed in the MC33771B datasheet chapter 9.15. Maybe this is helpful information.
I will investigate the behavior and reply with an answer.
Hope this helps,
Marius