This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28234: TMS320F28234

Part Number: TMS320F28234
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Hello Team,

I am using MATLAB and Embedded coder with TI c2000 supported package installer.

I need to develop model for TMS320F28234 MCU and generate code for the same.

But in the C2000 package for TMS320F2823x series there is no library/Blocks are available.
Instead it mention to use TMS320F2833x series things.

I  used 2833x blocks and generated code for simple gpio toggle to check in the Hard ware.
I generated code for 2833x as its only available after I loaded the code in 28234 MCU .
But I am not able to see the output as gpio is not toglling.


Then I referred the example files from C2000 and loaded the example of gpio_toggle from 2823x folder its working, But 2833x its not working.

(here I am referring the example of controlsuite device support files)

Can anybody help me how can I get support for 2823x series or how I can use 2833x for code generation?

A quick response will be appreciated.
Thanks in advance!

Regards,
Ashrumochan

  • Ashrumochan,

    Please download and install C2000ware SDK from here:

    www.ti.com/.../C2000WARE

    The example can be found at : 

    C:/ti/c2000/C2000Ware_3_03_00_00/device_support/f2823x/examples/gpio_toggle

  • Hello Santosh,
    Thanks for your reply.
    Yes I have used that library example also.
    I think you didn't get my point. 
    I have to develop model on MATLAB Simulink for which blocks for specific MCU will be inbuilt aviailable.
    Any how those examples if we directly import through CCS it will work fine and working also.
    But I need support for Simulink blocks for 2823x series package.

    Regards,
    Ashrumochan

  • Ashrumochan,

    Just to confirm, you are able to run the example from C2000ware for C2823x device.

    You are trying to run Simulink model for this device.

    For Simulink model, we need to check with MathWorks team. I will check with them and MathWorks engineer will respond here.

  • Yes,
    Thanks in Advance.

  • Ashrumochan,

    I have sent email reminder to MathWorks team. Please know that lot of folks are out of office, so response could be delayed. Sincere apology for inconvenience.

  • Okay, Thank you Santosh

    Waiting for the reply soon.


    Best Regards,
    Ashrumochan

  • Hi,

    Please wait until next week for a response on this as many from the team are not available due to holidays.

  • MathWorks team is working on it. I am pinging the MathWork team now.

  • Hi Santosh,
    Thanks for your update.
    Hoping to get the response asap.



    Regards,
    Ashru

  • Hi Ashru,

    All our supported TI C2000 controllers can be found at the below page:

    Supported Texas Instruments C2000 Processors - MATLAB & Simulink - MathWorks India

    Hope this helps!

  • Hello Venkatesh ,

    Thanks for sharing.
    As needed I require F28234 device related support  which is not listed on the link you have shared.
    Because my project is on F28234.
    If you can provide me any support for the mentioned device  will be grateful.

    Regards,

    Ashru

  • Hi Ashru,

    I got one recommendation but due to lack of hardware we cant test the approach.

    The difference between the F2823x and F2833x is the FPU. So if you can remove the FPU references from the F2833x target within the C2000 support package, then the blocks from F2833x can be used and the generated code should work for F2823x.

    I gave it a quick try to get the build done by removing the FPU libs from F2833x build.

    You would basically need to update the c2833xAttributeInfo.xml file under path: C:\ProgramData\MATLAB\SupportPackages\R20xx\toolbox\target\supportpackages\tic2000\registry\attributes\

    Here are few lines that went for change in my case:

    <compileflags>-v28 -ml</compileflags>
    <assemblyflags></assemblyflags>

    <linkobjectname>rts2800_ml.lib</linkobjectname>
    <linkobjectpath>$(CCSINSTALLDIR)/lib</linkobjectpath>
    </linkobject>
    <linkobject>
    <linkobjectname>IQmath.lib</linkobjectname>
    <linkobjectpath>$(TARGET_ROOT)/rtlib</linkobjectpath>
    </linkobject>

    Please check the content in your file and update the same.

    If you are using a recent version of the MATLAB, you would also need to uncheck the FastRTS Support.

    This settings should get the build working and then the code should work for the F2823x.

  • Hello venkatesh,

    Thank you very much for your suggestions.
    I followed what you have mention but still I am not able get the desired output on the target(28234) by using 2833x matlab blocks.
    I am attaching the files what I have modified for your reference.
    kindly have a look into them and let me know if anything I missed or any other ways of making it work.


    <?xml version="1.0" encoding="utf-8"?>
    <productinfo version="2.0">
        <name>c2833xAttributes</name>
        <targetinitializationcall>c2000_flash_init()</targetinitializationcall>
        <targetinitializationcall>init_board()</targetinitializationcall>
    	<targetinitializationcall>#ifdef MW_EXEC_PROFILER_ON
    	config_profilerTimer();
            #endif
        </targetinitializationcall>
        <globalinterruptenablecall>globalInterruptEnable()</globalinterruptenablecall>
        <globalinterruptdisablecall>globalInterruptDisable()</globalinterruptdisablecall>
        <compileflags>-v28 -ml</compileflags>
        <assemblyflags></assemblyflags>
    	<define>DAEMON_MODE=1</define>
        <define>XCP_CUSTOM_PLATFORM</define>
        <sourcefile>$(TARGET_ROOT)/src/c2833xBoard_Realtime_Support.c</sourcefile>  
        <sourcefile>$(TI_C2000_SHARED_DIR)/src/MW_c28xGlobalInterrupts.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_MemCopy.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_CpuTimers.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_DefaultIsr.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_GlobalVariableDefs.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_PieCtrl.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_PieVect.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_SysCtrl.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_usDelay.asm</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_CodeStartBranch.asm</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_ADC_cal.asm</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_DMA.c</sourcefile>    
    	<sourcefile>$(TARGET_ROOT)/src/profiler_Support.c</sourcefile>
        <sourcefile>$(TI_C2000_SHARED_DIR)/src/MW_c28xGPIO.c</sourcefile>
        <enableoneclick>true</enableoneclick>
         <honorruntimestoprequest>false</honorruntimestoprequest>
         <externalmodeinfo>
                <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_svr.c</sourcefiletoskip>
                <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/updown.c</sourcefiletoskip>
                <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_work.c</sourcefiletoskip>
                <sourcefiletoskip>$(MATLAB_ROOT)/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c</sourcefiletoskip>
            
            <sourcefile>$(TARGET_ROOT)/src/ext_svr_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/updown_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/ext_work_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/rtiostream_utils_c2000.c</sourcefile>
            
            <sourcefile>$(TARGET_ROOT)/src/rtiostream_interface_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/rtiostream_serial_c28x_ext.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/datamodify.c</sourcefile> 
    		<sourcefile>$(EXTMODE_DAEMON_SHARED_ROOTDIR)/src/daemon_checksum.c</sourcefile>
            
    		<setupfcn>codertarget.registry.ExtModeSetUpHook(hObj);</setupfcn>
    		<closefcn>codertarget.registry.ExtModeCloseHook;</closefcn>
    		<connectfcn>codertarget.registry.startDaemon(hObj);</connectfcn>
            <transport type="tcp/ip" name="tcpip">
                <iointerfacename>serial</iointerfacename>
                <verbose value="0" visible="true"/>
                <port value ="17725" visible="false"/>
                <ipaddress value ="codertarget.registry.getLoopbackIP;" visible="false"/>
            </transport>
     		<modelparameter name="OnTargetWaitForStart" value="off"/>
            <codertargetparameter name="Runtime.BuildAction" value="Build, load and run"/> 
        </externalmodeinfo>
        <externalmodeinfo preconnectfcn="codertarget.tic2000.internal.generateDebugFile(hObj)">
            <sourcefile>$(TI_C2000_SHARED_DIR)/src/rtiostream_serial_c28x_ext_xcp.c</sourcefile>
            <sourcefile>$(TI_C2000_SHARED_DIR)/src/datamodify_xcp.c</sourcefile>
            <setupfcn>codertarget.registry.ExtModeSetUpHook(hObj);</setupfcn>
            <closefcn>codertarget.registry.ExtModeCloseHook;</closefcn>
            <transport type="serial" name="XCP on Serial">
                <iointerfacename>serial(using xcp)</iointerfacename>
                <verbose value="1" visible="true"/>
                <comport value ="codertarget.registry.serialPortValueCallback(hCS, 'ExtModeCOMPort');" visible="false"/>
                <baudrate value ="codertarget.registry.getExtModeHostBaud(hCS);" visible="false"/>
            </transport>
            <modelparameter name="OnTargetWaitForStart" value="off"/>
            <codertargetparameter name="Runtime.BuildAction" value="Build, load and run"/> 
        </externalmodeinfo>
        <externalmodeinfo>
            <sourcefiletoskip>$(MATLAB_ROOT)/toolbox/rtw/targets/common/can/blocks/tlc_c/ccp_utils.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_svr.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_work.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/updown.c</sourcefiletoskip>
            <sourcefile>$(TARGET_ROOT)/src/ccp_utils.c</sourcefile>
            <preconnectfcn></preconnectfcn>
            <setupfcn>codertarget.registry.SetExtModeTrigDuration(1);</setupfcn>      
            <transport type="custom" name="CAN">
                <mexargs value=" " visible="false"/>
            </transport>
            <modelparameter name="OnTargetWaitForStart" value="off"/>
            <codertargetparameter name="Runtime.BuildAction" value="Build, load and run"/> 	  
        </externalmodeinfo>
        <includepath>$(TARGET_ROOT)/inc</includepath>
        <includepath>$(MATLAB_ROOT)/toolbox/shared/can/src/scanutil</includepath>
        <includefile>c2000BoardSupport.h</includefile>
        <includefile>DSP2833x_Device.h</includefile>
        <includefile>DSP2833x_Examples.h</includefile>
        <includefile>DSP2833x_GlobalPrototypes.h</includefile>
        <includefile>DSP2833x_CpuTimers.h</includefile>
        <define>MW_PIL_SCIFIFOLEN=16</define>
        <includepath>$(TARGET_ROOT)/src</includepath>
    	<includepath>$(TI_C2000_SHARED_DIR)/src</includepath>
    	<includepath>$(TI_C2000_SHARED_DIR)/inc</includepath>	
    	<includepath>$(EXTMODE_DAEMON_SHARED_ROOTDIR)/include</includepath>
        <pathstoremove>$(MATLAB_ROOT)\toolbox\rtw\targets\common\can\blocks\tlc_c</pathstoremove>
        <includepath>$(MATLAB_ROOT)\toolbox\rtw\targets\common\can\blocks\tlc_c</includepath>
    	<token Name="EXTMODE_DAEMON_SHARED_ROOTDIR" Value="matlabshared.externalmode_daemon.getDaemonRootDir"/>
    	<token Name="CCSINSTALLDIR" Value="codertarget.tic2000.internal.getThirdPartyToken(hObj, 'Texas Instruments CCS with C2000 Code Generation Tools')"/>
    	<token Name="TI_C2000_SHARED_DIR" Value="codertarget.tic2000.internal.getSharedRootDir"/>
        <linkobject>
            <linkobjectname>rts2800_ml.lib</linkobjectname>
            <linkobjectpath>$(CCSINSTALLDIR)/lib</linkobjectpath>
        </linkobject>
        <linkobject>
            <linkobjectname>IQmath.lib</linkobjectname>
            <linkobjectpath>$(TARGET_ROOT)/rtlib</linkobjectpath>
        </linkobject>
        <linkobject>
            <linkobjectname>c2833xPeripherals.cmd</linkobjectname>
            <linkobjectpath>$(TARGET_ROOT)/src</linkobjectpath>
        </linkobject>
    	<profiler BufferName="profilingData" DataLength="codertarget.tic2000.internal.getProfileBufferLength" GetDataFcn="codertarget.tic2000.internal.getProfileData" InstantPrint="0" PrintData="0" StoreCoreId="0" TimerDataType="uint32_T" TimerReadFcn="profileReadTimer" TimerTicksPerS="codertarget.tic2000.internal.getRuntimeCPUClock" TimerUpcounting="0">
            <Name>TI C2000 Profiler</Name>
            <TimerIncludeFile>$(TARGET_ROOT)/inc/profile_timer.h</TimerIncludeFile>
            <TimerSrcFile>$(TARGET_ROOT)/src/profile_timer.c</TimerSrcFile>
        </profiler>
        <onhardwareselecthook>codertarget.tic2000.internal.onHardwareSelect</onhardwareselecthook>
        <onhardwaredeselecthook>codertarget.tic2000.internal.onHardwareDeselect</onhardwaredeselecthook>
        <oncodegenentryhook>codertarget.tic2000.internal.onCodeGenEntry</oncodegenentryhook>
        <onaftercodegenhook>codertarget.tic2000.internal.onAfterCodeGen</onaftercodegenhook>
    </productinfo>
    
    <?xml version="1.0" encoding="utf-8"?>
    <productinfo version="2.0">
        <name>c2833xAttributes</name>
        <targetinitializationcall>c2000_flash_init()</targetinitializationcall>
        <targetinitializationcall>init_board()</targetinitializationcall>
        <targetinitializationcall>#ifdef MW_EXEC_PROFILER_ON
            config_profilerTimer();
            #endif
        </targetinitializationcall>
        <globalinterruptenablecall>globalInterruptEnable()</globalinterruptenablecall>
        <globalinterruptdisablecall>globalInterruptDisable()</globalinterruptdisablecall>
        <compileflags>-v28 -ml</compileflags>
        <assemblyflags></assemblyflags>
        <linkflags>-l"rts2800_ml.lib"</linkflags>
        <define>DAEMON_MODE=1</define>
        <define>XCP_CUSTOM_PLATFORM</define>
        <sourcefile>$(TARGET_ROOT)/src/c2833xBoard_Realtime_Support.c</sourcefile>  
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_MemCopy.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_CpuTimers.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_DefaultIsr.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_GlobalVariableDefs.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_PieCtrl.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_PieVect.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_SysCtrl.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_usDelay.asm</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_CodeStartBranch.asm</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_ADC_cal.asm</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/DSP2833x_DMA.c</sourcefile>
        <sourcefile>$(TARGET_ROOT)/src/profiler_Support.c</sourcefile>
        <enableoneclick>true</enableoneclick>
        <externalmodeinfo>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_svr.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/updown.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_work.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c</sourcefiletoskip>
            
            <sourcefile>$(TARGET_ROOT)/src/ext_svr_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/updown_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/ext_work_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/rtiostream_utils_c2000.c</sourcefile>
            
            <sourcefile>$(TARGET_ROOT)/src/rtiostream_interface_c2000.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/rtiostream_serial_c28x_ext.c</sourcefile>
            <sourcefile>$(TARGET_ROOT)/src/datamodify.c</sourcefile> 
            <sourcefile>$(EXTMODE_DAEMON_SHARED_ROOTDIR)/src/daemon_checksum.c</sourcefile>
            
            <setupfcn>codertarget.registry.ExtModeSetUpHook;</setupfcn>
            <closefcn>codertarget.registry.ExtModeCloseHook;</closefcn>
            <connectfcn>codertarget.registry.startDaemon(hObj);</connectfcn>
            <transport type="tcp/ip" name="tcpip">
                <iointerfacename>serial</iointerfacename>
                <verbose value="0" visible="true"/>
                <port value ="17725" visible="false"/>
                <ipaddress value ="codertarget.registry.getLoopbackIP;" visible="false"/>
            </transport>
            <modelparameter name="OnTargetWaitForStart" value="off"/>
            <codertargetparameter name="Runtime.BuildAction" value="Build, load and run"/> 
        </externalmodeinfo>
        <externalmodeinfo preconnectfcn="codertarget.tic2000.internal.generateDebugFile(hObj)">
            <sourcefile>$(TI_C2000_SHARED_DIR)/src/rtiostream_serial_c28x_ext_xcp.c</sourcefile>
            <sourcefile>$(TI_C2000_SHARED_DIR)/src/datamodify_xcp.c</sourcefile>
            <setupfcn>codertarget.registry.ExtModeSetUpHook(hObj);</setupfcn>
            <closefcn>codertarget.registry.ExtModeCloseHook;</closefcn>
            <transport type="serial" name="XCP on Serial">
                <iointerfacename>serial(using xcp)</iointerfacename>
                <verbose value="1" visible="true"/>
                <comport value ="COM1" visible="true"/>
                <baudrate value ="codertarget.registry.getExtModeHostBaud(hCS);" visible="false"/>
            </transport>
            <modelparameter name="OnTargetWaitForStart" value="off"/>
            <codertargetparameter name="Runtime.BuildAction" value="Build, load and run"/> 
        </externalmodeinfo>
        <externalmodeinfo>
            <sourcefiletoskip>$(MATLAB_ROOT)/toolbox/rtw/targets/common/can/blocks/tlc_c/ccp_utils.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_svr.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/ext_work.c</sourcefiletoskip>
            <sourcefiletoskip>$(MATLAB_ROOT)/rtw/c/src/ext_mode/common/updown.c</sourcefiletoskip>
            <sourcefile>$(TARGET_ROOT)/src/ccp_utils.c</sourcefile>
            <preconnectfcn></preconnectfcn>
            <setupfcn>codertarget.registry.SetExtModeTrigDuration(1);</setupfcn>      
            <transport type="custom" name="CAN">
                <mexargs value=" " visible="false"/>
            </transport>
            <modelparameter name="OnTargetWaitForStart" value="off"/>
            <codertargetparameter name="Runtime.BuildAction" value="Build, load and run"/> 	  
        </externalmodeinfo>
        <includepath>$(TARGET_ROOT)/inc</includepath>
    	<includepath>$(TI_C2000_SHARED_DIR)/src</includepath>
    	<includepath>$(TI_C2000_SHARED_DIR)/inc</includepath>	
        <includepath>$(MATLAB_ROOT)/toolbox/shared/can/src/scanutil</includepath>
        <includefile>c2000BoardSupport.h</includefile>
        <includefile>DSP2833x_Device.h</includefile>
        <includefile>DSP2833x_Examples.h</includefile>
        <includefile>DSP2833x_GlobalPrototypes.h</includefile>
        <includefile>DSP2833x_CpuTimers.h</includefile>
        <define>MW_PIL_SCIFIFOLEN=16</define>
        <includepath>$(TARGET_ROOT)/src</includepath>
        <pathstoremove>$(MATLAB_ROOT)\toolbox\rtw\targets\common\can\blocks\tlc_c</pathstoremove>
        <includepath>$(MATLAB_ROOT)\toolbox\rtw\targets\common\can\blocks\tlc_c</includepath>
        <includepath>$(EXTMODE_DAEMON_SHARED_ROOTDIR)/include</includepath>
        <token Name="EXTMODE_DAEMON_SHARED_ROOTDIR" Value="matlabshared.externalmode_daemon.getDaemonRootDir"/>
    	<token Name="TI_C2000_SHARED_DIR" Value="codertarget.tic2000.internal.getSharedRootDir"/>
        <linkobject>
            <linkobjectname>IQmath.lib</linkobjectname>
            <linkobjectpath>$(TARGET_ROOT)/rtlib</linkobjectpath>
        </linkobject>
        <linkobject>
            <linkobjectname>c2833xPeripherals.cmd</linkobjectname>
            <linkobjectpath>$(TARGET_ROOT)/src</linkobjectpath>
        </linkobject>
        <profiler BufferName="profilingData" DataLength="codertarget.tic2000.internal.getProfileBufferLength" GetDataFcn="codertarget.tic2000.internal.getProfileData" InstantPrint="0" PrintData="0" StoreCoreId="0" TimerDataType="uint32_T" TimerReadFcn="profileReadTimer" TimerTicksPerS="codertarget.tic2000.internal.getRuntimeCPUClock" TimerUpcounting="0">
            <Name>TI C2000 Profiler</Name>
            <TimerIncludeFile>$(TARGET_ROOT)/inc/profile_timer.h</TimerIncludeFile>
            <TimerSrcFile>$(TARGET_ROOT)/src/profile_timer.c</TimerSrcFile>
        </profiler>
        <onhardwareselecthook>codertarget.tic2000.internal.onHardwareSelect</onhardwareselecthook>
        <oncodegenentryhook>codertarget.tic2000.internal.onCodeGenEntry</oncodegenentryhook>
        <onaftercodegenhook>codertarget.tic2000.internal.onAfterCodeGen</onaftercodegenhook>
    </productinfo>
    

    Thanks in Advance!

    Warm Regards,
    Ashrumochan

  • Hello Venkatesh,
    Another thing I noticed that after importing the generated project into CCS and building the map file is getting generated with fpu lib.
    Though I have made the changes its not applying or not linking I didn't get. I have attached the screenshot for your reference.



    Best  Regards,
    Ashru

  • Ashru,

    Sending email reminder to MathWork team. Please expect response by Monday.

  • Hi Ashrumochan,

    Can you try to debug the code from CCS? Is the code executing properly or is it throwing some exceptions?

  • Hello Venkatesh,

    Till now I have not done the debugging because as remotely I am accessing MATLAB .
    Just I am taking the .out file form the project and loading to the target.
    This one I cannot verify as of now. But project building is fine without any error.
    Please let me know any other ways if we can verify it.

    Regards,
    Ashru

  • Ashru,

    Can you try to build example from C2000ware locally and try that? It will be easier to debug.

  • Hello Santosh,

    Yes examples form C2000ware is working fine, I have checked that.
    But how these examples going to help me in Simulink projects?


    Regards,
    Ashru

  • Ashru,

    I thought you can generate CCS code from Simulink model, and then you can use that to debug locally. Venkatesh, can we please confirm?

  • Hello Santosh,

    As you said yes we can generate the code and debug, its alright.
    The issue is I am generating code and sending the .out file to other location to dump in hardware.
    The hardware is not available to me as I am using MATLAB as remotely.

    So its not possible for me to debug and if I am sending the code also other person while importing in CCS getting many linking errors(as MATLAB not available)

    But while generating code for 2837x series and sending the just .out file to other person(He is dumping in 28379D hw)It is working as expected.
    But for 28234 its not the case. So need the reason for this how to workout?

    Regards,

    Ashru

  • Ashru,

    Thanks for clarification. I understand it now. We will need to wait for Venkatesh to help.

    Meanwhile, what is the failure? Does it crashes or can you do disassembly step-through? Where is PC?

  • Hi Santosh,

    its not crashing, its loading and running.

    But for an example  if I am toggling a gpio(eg: GPIO14) ,its not toggling /not setting/clearing.
    that's the issue, I am having a doubt like is it not able to access the gpio or anything else ?

    Regards,
    Ashru

  • Ashru,

    Can you halt, and look at GPIO register, and check/change the value in register window?

  • Hi Santosh,
    Actually I am not debugging as I mentioned earlier .
    So cant confirm about your query.




    Regards,
    Ashru

  • Ashru,

    I am not sure what else we can do to debug.

    Let's wait for Venkatesh to suggest how to debug this. I will ping him on email.

  • Hi Ashru,

    Debugging from CCS is possible once you have model built in Simulink.

    Creating CCS Project from a Model - MATLAB & Simulink - MathWorks India

    You can also contact our support and we can host a call to assist you with debugging.

    Contact Us - MATLAB & Simulink (mathworks.com)

  • Hi Venkatesh,

    Thanks for your response & sorry for my late reply.
    Actually after generating code form MATLAB, I got the project created.

    Actually I am sending the code to another person with whom MATLAB is not installed & hardware is available with him.

    Because of that , When importing in CCS so much linking errors are coming and debugging is an issue.

    That I am unable to debug as hw is not available near me .So is it possible to resolve the errors & debug over other place(where HW is available)?

    Thanks & Regards,

    Ashrumochan

  • Ashru,

    Can you install tools where hardware available? That will be easiest to debug it.

    When importing the project, what is the import error? Is it missing some Matlab libraries? I will let Venkatesh respond on the Matlab error.

  • Ashru,

    Any update on this? Are you able to resolve the issue?