# Please help me to fix this error: 'identifier "PLX\_INITIALIZE" is undefined' when using Simple\_PIL\_Model

**URL:** <https://forum.plexim.com/t/please-help-me-to-fix-this-error-identifier-plx-initialize-is-undefined-when-using-simple-pil-model/1092>\
**Category:** TI C2000\
**Created:** [February 15, 2022, 9:28pm UTC](https://forum.plexim.com/t/please-help-me-to-fix-this-error-identifier-plx-initialize-is-undefined-when-using-simple-pil-model/1092 "2022-02-15T21:28:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hang](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@hang](https://forum.plexim.com/u/hang)\
**Post date:** [February 15, 2022, 9:28pm UTC](https://forum.plexim.com/t/please-help-me-to-fix-this-error-identifier-plx-initialize-is-undefined-when-using-simple-pil-model/1092/1 "2022-02-15T21:28:56Z")

</div>

Good evening everyone, I’m having trouble trying to flash the MCU in the PIL process. The build step error in “Controller\_hal.c”, line 149: error: identifier “PLX\_INITIALIZE” is undefined. So, I can’t build my model even I used the " simple\_PIL\_model" in the demo models. Can someone help me to fix this error? Thanks in advance for your help.

I attached the model and error image to this post.

 ![Error (1).png](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/6278dabaa939678c827112dde298c20b4727f181.png)

[simple\_PIL\_model.plecs](https://forum.plexim.com/uploads/short-url/yDUs33fFzAvhMvXG3GZQ66UwH02.plecs) (112 KB)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [February 16, 2022, 3:22pm UTC](https://forum.plexim.com/t/please-help-me-to-fix-this-error-identifier-plx-initialize-is-undefined-when-using-simple-pil-model/1092/2 "2022-02-16T15:22:00Z")

</div>

Based on your error message, it looks like PLECS, the TI C2000 TSP (in the Coder Targets folder), and the model itself are all located in a OneDrive folder. Please try reinstalling PLECS and the TI C2000 TSP to a location on your local drive that is not associated with OneDrive.

---

<div class="post-metadata">

**Author:** ![hang](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@hang](https://forum.plexim.com/u/hang)\
**Post date:** [February 17, 2022, 7:34pm UTC](https://forum.plexim.com/t/please-help-me-to-fix-this-error-identifier-plx-initialize-is-undefined-when-using-simple-pil-model/1092/3 "2022-02-17T19:34:22Z")

</div>

Thanks for your response. However, I tried to reinstalling PLECS and TI C2000 TSP in disk C of the computer and I get the same error. I don’t know where to search about this error and can’t fix it until now. Could you give me some idea to fix this error? Thanks you very much for your help.

 ![Error3.png](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/e594e57c5860d59fb26a7ef0e63db814146be785.png)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [February 18, 2022, 10:55am UTC](https://forum.plexim.com/t/please-help-me-to-fix-this-error-identifier-plx-initialize-is-undefined-when-using-simple-pil-model/1092/4 "2022-02-18T10:55:47Z")

</div>

Thanks for making those changes. Can you please try deleting the “simple\_PIL\_model\_codegen” folder and retrying? I’m assuming you copy/pasted your original folder structure after reinstalling everything.

Also, can you comment on the TSP Version you are using?

Lastly I noted in your recent error message you changed the version of the TI CGT. You may want to revert back to the version distributed with the TSP (cgt-c2000\_18.12.8.LTS).

---

<div class="post-metadata">

**Author:** ![hang](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@hang](https://forum.plexim.com/u/hang)\
**Post date:** [May 3, 2022, 9:27pm UTC](https://forum.plexim.com/t/please-help-me-to-fix-this-error-identifier-plx-initialize-is-undefined-when-using-simple-pil-model/1092/5 "2022-05-03T21:27:22Z")

</div>

Thank you for responding. I apologize for the late reply as I have to finish another project. I solved this error using another computer and installed the TI C2000 TSP on the desktop this morning.
