Skip to main content
obabo
Associate
February 27, 2021
Solved

CubeMX, Fatal Error[Pe035]:#error directive:"Unknown target" in IAR Workbench

  • February 27, 2021
  • 2 replies
  • 4157 views

Hello,

I have been having trouble getting CubeMX to generate a EWARM project that will compile in IAR Workbench. I looked at this thread so far, but I do not think it will fix my issue since I am currently used IAR 8.50.9. I do not know what is causing the error and do not know what additional debugging information I should post. If any one knows what could be causing this, please let me know.

0693W000007ZfqkQAC.png 

Thank you

-U

This topic has been closed for replies.
Best answer by Khouloud ZEMMELI

Hello @obabo​ 

Thanks for raising the question,

In fact, you need first to download the stm32F3 patch for IAR if you don't have it, then right click on the name of your project in the IAR workbench IDE, click on option and finally add your device as mentioned in the images below ( the device is None in your case and therefore a similar issue will appear) .

0693W000007Zk4gQAC.png0693W000007Zk4lQAC.png 

Hope my answer helped you, when your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Thanks for your contribution, Khouloud

2 replies

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
March 1, 2021

Hello @obabo​ 

Thanks for raising the question,

In fact, you need first to download the stm32F3 patch for IAR if you don't have it, then right click on the name of your project in the IAR workbench IDE, click on option and finally add your device as mentioned in the images below ( the device is None in your case and therefore a similar issue will appear) .

0693W000007Zk4gQAC.png0693W000007Zk4lQAC.png 

Hope my answer helped you, when your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Thanks for your contribution, Khouloud

Khouloud ZEMMELI
ST Employee
March 3, 2021

Hello @obabo​ 

Did the solution shared solve your problem?

I'll be waiting for your feedback :)

Thanks, Khouloud

obabo
obaboAuthor
Associate
March 3, 2021

Yes, this solved my problem! Thank you for the help!