The Embedded Coder for the TI c2000 F2837xD builds and compiles but does not deploy to hardware only when some blocks are used?

Hi there,
I'm working on interfacing a Magtrol torque and speed sensor with the F2837xD control card. The Magtrol sensor outputs a variable frequency square wave where the frequency of the square wave corresponds to the shaft speed of an induction motor. I have built and tested a subsystem to determine the frequency; however, when I add this speed measurement subsystem to my Simulink model to be deployed onto the control card, it does not load the code. The model builds successfully, generates all binary outputs, connects and loads program to target and then disconnects and ends the debug session (that what it says in the diagnostic viewer - seen in the attached image).
I had implemented some ADCs and serial communication with the program before hand but it was the edition of this one subsystem that is causing this weird behavior. If I comment the subsystem out then the program builds, compiles and deploys just fine. I have a feeling it has something to do with the different sampling times in the model but I have tried taking out the LED blink and the behavior continues.
I've attached a simplified version of my model for anyone to play around with. Any help would be greatly appreciated!

Respuestas (2)

I think the log you have attached is quite normal. After the programming is running from target, it is a standalone application hence we disconnect from target. The log clearly says the LOAD and RUN is successful. Do you see anything different in log when the sensor subsystem is not part of build?

1 comentario

Hi Venkatesh, thanks for your reply. No, the log looks the same which is the weird part. No errors or different warnings. I played around with the sample times some more and I am convinced that they are the issue. Although I am not sure how I can have different parts of the build run at different sampling times without this error persisting.

Iniciar sesión para comentar.

Please refer the link: https://in.mathworks.com/matlabcentral/answers/358275-how-to-create-and-open-a-code-composer-studio-ccs-project-for-ti-c2000-boards-from-simulink-in-r201 It talks about running the MATLAB generated project code from CCS. You can consider building, deploying from CCS and debuggig your code from CCS. That will give possible hint in to what could be going wrong. It could be a overrun issue as well.

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Jun. de 2018

Respondida:

el 27 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by