Edit: I found a Solution so this Post can be deleted/ignored
Original Post:
Hello Everyone :)
I'm currently trying to get a Matlab GUI running together with my mbed LPC1768.
Unfortunately the Librarys from the Cookbook don't seem to work anymore.
The only thing I found which works with my Matlab script is a .bin File.
I have the Matlab RPC Library from the Cookbook Site.
For the mbed I searched here for Informations:
https://developer.mbed.org/cookbook/Interfacing-Using-RPC
If I load the rpc_serial_lpc1768.bin from this site into my mbed my matlab-scripts are working fine.
I can use matlab commands like:
mypwm = PwmOut (mymbed,p21);
mypwm.period(0.2);
mypwm.write(50);
and I'm able to see a squarewave signal on Pin 21 with my Oscilliscope.
But if I compile the Serial-RPC code above (http://developer.mbed.org/users/MichaelW/code/RPC_Serial/docs/tip/main_8cpp_source.html) my matlab script won't function anymore.
Matlab initialises everything without an error and even takes the same commands as in the .bin version but there won't be a squarewave signal on p21.
So basically the same matlab script works fine with the binary file but won't work with the compiled Serial-RPC Program.
Furthermore the bin file has twice the size as the bin file of the compiled Serial-RPC Program. (40kb & 21kb)
There won't be a problem but I need to add some code on my own onto my mbed so I need some File that I have to compile and not just the .bin file.
I read that I'm not the only one with this problem but I couldn't find a Solution.
So I would be very grateful if somebody could tell me what I need to do to use the matlab-mbed-Library on my mbed and am still be able to add something like a rpc custom function.
Thank you in advance
Best Regards,
Florian
Note: This post has been rephrased due to my current problem
Edit: I found a Solution so this Post can be deleted/ignored
Original Post: Hello Everyone :)
I'm currently trying to get a Matlab GUI running together with my mbed LPC1768. Unfortunately the Librarys from the Cookbook don't seem to work anymore. The only thing I found which works with my Matlab script is a .bin File.
I have the Matlab RPC Library from the Cookbook Site.
For the mbed I searched here for Informations: https://developer.mbed.org/cookbook/Interfacing-Using-RPC
If I load the rpc_serial_lpc1768.bin from this site into my mbed my matlab-scripts are working fine. I can use matlab commands like:
and I'm able to see a squarewave signal on Pin 21 with my Oscilliscope.
But if I compile the Serial-RPC code above (http://developer.mbed.org/users/MichaelW/code/RPC_Serial/docs/tip/main_8cpp_source.html) my matlab script won't function anymore. Matlab initialises everything without an error and even takes the same commands as in the .bin version but there won't be a squarewave signal on p21.
So basically the same matlab script works fine with the binary file but won't work with the compiled Serial-RPC Program.
Furthermore the bin file has twice the size as the bin file of the compiled Serial-RPC Program. (40kb & 21kb)
There won't be a problem but I need to add some code on my own onto my mbed so I need some File that I have to compile and not just the .bin file.
I read that I'm not the only one with this problem but I couldn't find a Solution.
So I would be very grateful if somebody could tell me what I need to do to use the matlab-mbed-Library on my mbed and am still be able to add something like a rpc custom function.
Thank you in advance
Best Regards, Florian
Note: This post has been rephrased due to my current problem