PIL testing with Arduino - codertarget.arduinobase problem

Hello
I'm trying to proceed the the PIL testing using ESP32WROOM board. Model and board is configured, are there is no problem to built and deploy generated code to HW. The problem occurs while the generating the PIL submodel. The following error occurs:
Unable to resolve the name 'codertarget.arduinobase.board.ESP32WROOMArduinoCompatibleBoard'.
Error:Cannot perform PIL simulation for "ExampleChart".
Configuration parameters for this model do not support these connectivity configurations: Arduino Board, Texas Instruments Code Composer Studio (IDE), Texas Instruments Code Composer Studio (TCP/IP), Texas Instruments Code Composer Studio (Serial)
Is my model configuration invalid or there is problem with board drivers? I tried to make PIL testing on the simplest model available, but the error is ambiguous and I'm not able to resolve this.
Thanks for help.

Answers (1)

Hi Grzegorz,
After looking at your error messages, as per my understanding the issue may be with the board driver not properly installed or configured.
Make sure your driver is properly installed and configured and that your model settings are compatible with the PIL testing.
Attaching a documentation link with step-by-step procedure to set-up and configure ESP32 Hardware

3 Comments

Hello Sarthak,
I've followed the configuration again, but the error persists. I tried to make a new, simulink model with default configuration and configure the ESP32 only but the error still exists. I also tried to build and deploy the model directly into the HW (without PIL testing) and there is no problem with code generation, I'm able to read pins valus, communicate via I2C, see the signals' values within Simulink Display block and so on... Do you have any idea what more can I verify? I have my model tested via MIL, but i wanted to go a bit further.
One more thing that I've noticed, the unresolved name is 'codertarget.arduinobase.board.ESP32WROOMArduinoCompatibleBoard', and while selecting the board group in configuration, I've selected the ESP32-WROOM-DevKitV1(36 pin). I tried to Create custom board, but by default it's inherit from the following class (saved as P-file, so cannot open it)
classdef ESP32WROOMTemplateBoard < codertarget.arduinobase.board.ESP32WROOMBase
I check the folder where boards are defined and there is no file called ESP32WROOMArduinoCompatibleBoard. Am I missing some files thought? It's looking like problem with PIL module in Simulink, which tries to evaluate file that do no exists, while creating a PIL test harness for SUT.
Your help will be really appreciated!
Best Regards,
GDI
I have the same problem as you. Have you solved the problem in the meantime and can you help me further?
Best Regards,
Sebastian
Hello Sebastian,
Unfortunately, I've not solved this problem yet. Currently only MIL tests have been done for my systems and I will go back to SIL and PIL soon. I'll update this thread whenever any solution will be found from my side.
Regards,
GDI

Sign in to comment.

Categories

Find more on Simulink Supported Hardware in Help Center and File Exchange

Asked:

on 11 Apr 2023

Commented:

on 28 Jun 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!