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.

TMDSCNCD28379D: Stand-alone execution, the role of J8 connector and two CPU questions

Part Number: TMDSCNCD28379D
Other Parts Discussed in Thread: TMDSDOCK28379D, C2000WARE

Hi,

just moved to 28379D from 28335 and have several questions...I am trying to achieve similar functionalities in F28379D as I had in F28335.

  • What is the function of the connector J8 on TMDSCNCD28379D? Instead of J8, I use TMDSDOCK28379D +5V power supply and I can load the code, regardless of the position of the jumpers J2-J7. J2 and J3 are for GPIO-42 and 43 coming from the docking station, but in my case jumper position does not make any difference. Is J8 used for something else apart for ControlCARD power supply?
  • For A:J1 equivalent 180 connector pins 76 and 78 (GPIO-28  and GPIO-29, respectively). Is there something similar to jumpers J2-J7 to select between serial connection coming from the docking station or the ControlCARD?
  • How to enable stand-alone execution? When loading the code (from MATLAB) I connect A:J1 and set A:SW1 to Position 1: ON (up) and SW1 Position 1: OFF (up), Position 2: ON (down). In MATLBA Simulink I tick Boot from Flash option. Turning off and on the power supply does not boot from Flash. If I set A:SW1 to Position 1: OFF (down) as in Table 1, I am not able to load the code at all and get following MATLAB error. Turning OFF the switch A:SW1 before powering on the board does not boot from Flash either. In F28335, it was only necessary to tick MATLAB Simulink Boot from Flash option and code would resume after a power cycle!
  • I am not sure I understand the two CPU concept and how it should work. Are there any references to start with?
    • Does each CPU have 1024KB of flash memory?
    • What if each CPU tries to access the same GPIO?
    • Are there any limitations for each CPU?
    • In MATLAB I can select which CPU to load in... Am I able to exchange signals between CPUs, for example, run control on one CPU and protection (faster task) on another CPU where ADC signals are shared between CPUs and protection healthy enables the control?

*** Starting debug session...
SEVERE: IcePick_C_0: Error connecting to the target: (Error -2131 @ 0x0) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.1.00046) 

SEVERE: emulation failure occurred
SEVERE: Error connecting to the target: emulation failure occurred
*** Cannot create a valid debug session for Board/CPU=*/C28xx_CPU1.
    Make sure this matches only one board and one CPU.
    Exiting...

  • Mike,

    Experts are out of office due to holiday break until jan 4th. Please expect response by Jan 5 or 6. 

  • Hi Mike,

    I'd recommend you go over the TMDSCNCD28379D user guide and schematics. You can find the user guide in the TMDSCNCD28379D product folder and the schematics in C2000Ware.

    mike buba said:
    What is the function of the connector J8 on TMDSCNCD28379D? Instead of J8, I use TMDSDOCK28379D +5V power supply and I can load the code, regardless of the position of the jumpers J2-J7. J2 and J3 are for GPIO-42 and 43 coming from the docking station, but in my case jumper position does not make any difference. Is J8 used for something else apart for ControlCARD power supply?

    J8 brings out the USB port of the F28379D & optionally provides power to the control card. Jumpers J2-J7 only control the USB control pins, they do not affect the VBUS pin. You can power the control card from the DOCK or J8.

    mike buba said:
    For A:J1 equivalent 180 connector pins 76 and 78 (GPIO-28  and GPIO-29, respectively). Is there something similar to jumpers J2-J7 to select between serial connection coming from the docking station or the ControlCARD?

    I'm not fully understanding your question. Are you asking about the SCI pins (GPIO-28 & GPIO-29) that get routed to the FT2232 emulation device and out the A:J1 USB port? A:SW1 enables and disables the connection to GPIO-28. GPIO-29 is always connected to the FT2232.

    mike buba said:
    How to enable stand-alone execution? When loading the code (from MATLAB) I connect A:J1 and set A:SW1 to Position 1: ON (up) and SW1 Position 1: OFF (up), Position 2: ON (down). In MATLBA Simulink I tick Boot from Flash option. Turning off and on the power supply does not boot from Flash. If I set A:SW1 to Position 1: OFF (down) as in Table 1, I am not able to load the code at all and get following MATLAB error. Turning OFF the switch A:SW1 before powering on the board does not boot from Flash either. In F28335, it was only necessary to tick MATLAB Simulink Boot from Flash option and code would resume after a power cycle!

    I will need to have somebody more familiar with Matlab comment on this question. However, you would normally want to set SW1 to "Get Mode" to force the device to boot from flash. If the code had been loaded to flash properly, the device would proceed to boot from flash upon power-up.

    mike buba said:
    I am not sure I understand the two CPU concept and how it should work. Are there any references to start with?
    • Does each CPU have 1024KB of flash memory?
    • What if each CPU tries to access the same GPIO?
    • Are there any limitations for each CPU?
    • In MATLAB I can select which CPU to load in... Am I able to exchange signals between CPUs, for example, run control on one CPU and protection (faster task) on another CPU where ADC signals are shared between CPUs and protection healthy enables the control?

    Yes, there a couple of workshops which go into the details. Please see the links below.

    C2000™ F2837xD Microcontroller Workshop

    C2000™ F2837xD microcontroller one-day workshop series

  • Hi Gus,

    thank you very much for the answer.

    In my set-up, I am powering ControlCARD from a docking station using external 5V power supply and I use A:J1 on ControlCARD to load the code. When I connect J8 USB to the PC, I don't see any port appearing in the Devie Manager. Providing power to the ControlCARD is a secondary function, what is the primary? Can you please explain what does this mean:

    Gus Martinez said:
    J8 brings out the USB port of the F28379D

  • Mike,

    The F28379D device has a USB 2.0 MAC+PHY as a comm peripheral, and J8 is intended to give access to that.  I believe the reason you don't see any connection to the PC is that the USB inside the MCU is disabled/unclocked from reset.

    You can use one of the USB examples in C2000Ware to enable it, and then it should appear.  I'm linking to the detect example, since this will resolve either primary or secondary USB mode. 

    Let us know if you have more questions.

    Best,

    Matthew