Hello @shukla007,
From what I've seen in the attached video, you are using a dedicated device for emulating the battery pack. I want to first ask you to please check the connections you have performed between the device and the MC3377 battery cell controller. For a complete schematic, there is a screen shot here, that might support you with that https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-...
Now, regarding the FreeMASTER, I would kindly ask you to link again the generated elf. file in the FreeMASTER project. For such action, please go to Project -> Options -> MAP Files and under Default symbol file, please browse for the .elf file inside the generated code folder.

From your video, I could see that the FreeMASTER is connected. In case the proposed solution is not working, could you please tell me the MATLAB version you are trying to run the example from?
Regards,
Marius