custom device driver block not supported for esp32

I have created a custom device driver block accoding to link Create Custom Device Driver Block for Arduino Library - MATLAB & Simulink - MathWorks 中国. While this block is used in my model, Simulink(build or generate code) alway output "unsolved name codertarget.arduinobase.board.ESP32-WROOM(ArduinoCompatible)Board". So, the question is whether "custom device driver block" is supported for esp32.
Thanks & Best Regargs

4 件のコメント

Walter Roberson
Walter Roberson 2023 年 11 月 11 日
https://www.mathworks.com/help/supportpkg/arduino/ug/add-custom-esp32-arduino-compatible-boards-to-support-package.html certainly suggests ESP32 WROOM and ESP32 WROVER are supported at the very least.
xiaoke
xiaoke 2023 年 11 月 11 日
that's true. If i only add some built-in blocks(eg: WIFI、PWM..)to my model, then building or deploy to HW,everything works well. When a "customed device driver block" added to my model, the error message appeared.
in addition, i debug the process of building, the message appeared when Executing the expression “arduino.supportpkg.getBoardInfo”。arduino.supportpkg has methods like getSAMLibraryROot、 getAVRRoot...
getESPxxx not found. maybe that's the point ?
my simulink version is 2022a, it seems that this version has no option "Create Custom board" like your link
thanks
Walter Roberson
Walter Roberson 2023 年 11 月 11 日
It apears that documentation page is new as of R2022b, https://www.mathworks.com/help/releases/R2022b/supportpkg/arduino/ug/add-custom-esp32-arduino-compatible-boards-to-support-package.html which implies that potentially the support was added in R2022b.
xiaoke
xiaoke 2023 年 11 月 11 日
Maybe worth a try

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

製品

リリース

R2022a

質問済み:

2023 年 11 月 11 日

コメント済み:

2023 年 11 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by