MATLAB Answers

Undefined reference to "mbed_assert_internal" and "GPIO_INIT_OUT"

1 view (last 30 days)
Jack Lee
Jack Lee on 5 Jul 2016
Commented: Abhishek GS on 13 Jul 2016
Hi all, was running through some Freescale Companion Apps examples and I was unable to deploy the "Line Camera Scan" to the FRDM-KL25Z board. I was prompted by the MATLAB about error in "Undefined reference to 'mbed_assert_internal' and 'GPIO_INIT_OUT'".
The code is done compiling by MATLAB (I suppose?). Thanks


Sign in to comment.

Answers (1)

Abhishek GS
Abhishek GS on 7 Jul 2016
Hi Jack,
I understand that you ran into an issue with installation of FreeScale FRDM-KL25Z Support Package and with the help of MathWorks Technical Support, the installation is fine now.
With respect to this issue, I suspect the issue is because of the change in name of the third party folder that the support package downloads from mbed. A fix has been created, and should be up soon. However, if you would like to get started right away, here is the workaround: 1. Open the support package root directory (the folder where the support package is downloaded) by executing the following command in MATLAB Command Window:
2. Rename the folder named '8e73be2a2ac1' to 'mbed-8e73be2a2ac1'.
This fix should allow you to build the model.
Leave a comment on your observations after trying the above.


Show 1 older comment
Abhishek GS
Abhishek GS on 8 Jul 2016
Hi Jack,
Could you try deleting the support package root directory completely, and then try installing the support package again? Once the support package is installed, please try changing the folder name as explained above.
If this does not help, can you provide me the following information.
Do you get this error when you try to build the example model, 'freedomboard_RGB_LED' ? If not, could you please share the model with us with the exact reproduction steps, so that we can try to reproduce the issue at our end.
Jack Lee
Jack Lee on 8 Jul 2016
Hi Abhishek,
I have done that again and the result is the same. Below is what I have done.
1)Uninstall and remove any support package or document related to it.
2)Install it again.
3)First Error,a lot of headers missing, fixed by downloading KL25Z headers online.
4)Second Error, mbed.h missing, fixed by renaming 8e73be2a2ac1 to mbed-8e73be2a2ac1.
5)Latest error, refer to top.
I can build the model for freedomboard_RGB_LED and also for the Servo Control Example.
Others examples which I tried and failed are Line Scan Camera Data and a custom built DC motor model.
Looking forward to your answer!
Abhishek GS
Abhishek GS on 13 Jul 2016
Hi Jack,
The support package fix for the mbed folder name change is now live. Please follow the below steps:
1. Uninstall the support package and delete the support package root folder.
2. Remove the support package root folder from the path (if still present).
3. Install the support package again. Note that the support package version is 16.1.1 as seen in the pic below.
4. Try building the example 'freedomboard_RGB_LED' and 'freescalcup_sendLiveCameraData'.
Let me know your observations when you try the above. You do not have to download the KL25Z headers. If this does not work,
1. Please share the screenshots of the error messages that you get
2. The link from which the KL25Z headers you downloaded
3. The folder in which you saved the headers.
4. The screenshot of your MATLAB Path
5. The custom DC motor model that you talked about above.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!