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.

Launchpad f28027f + drv 8305evm run standalone

Other Parts Discussed in Thread: DRV8305, INSTASPINUNIVERSALGUI

Hello Ti,

I’m running lab05b on my Launchpad f28027f and drv8305evm, I have successfully added a pot as the speed control for my motor. I’m trying to run my motor standalone mode without debugger/gui, like load the compiled .out to f28027f and run the motor when I have signal from my pot. I modified my code to set enableSys and Run_identify flags to 1 when there is no user error code

ggMotorVars.Flag_enableSys = 1

gMotorVars.Flag_Run_Identify = 1

What steps do I need to take to make it happen? Thanks.

John

  • are you just asking about Boot Mode selection?

    Boot Mode Selection
    The LaunchPad's F28027 device includes a boot ROM that performs some basic start-up checks and
    allows for the device to boot in many different ways. Most users will either want to perform an emulation
    boot or a boot to flash (if they are running the application standalone). S1 has been provided to allow
    users to easily configure the pins that the bootROM checks to make this decision. The switches on S1
    correspond to:
    Switch Function
    1 GPIO34
    2 GPIO37
    3 TRSTn
    Keep in mind that the debugger does not connect if the device is not in the emulation boot mode (TRST
    switch in the up position). More information about boot mode selection can be found in the
    TMS320x2802x Piccolo Boot ROM Reference Guide (SPRUFN6).
  • Thanks Chris,

    I will take some time to read through the ref guide. I switched TRST to off position, and it works exactly the way i want it, is there a way to clear the nFault when i apply power to f28027f without hitting the reset button?

    Also, is 3.3v the max voltage i can apply to adc/gpio pins? i believed i ruined my last launchpad board already after i applied 5v.

    John
  • 3.3 is certainly the max on the I/O pins.

    you're saying the DRV8305 is faulting when you apply power to the BoosterPack?
  • Thanks Chris,

    i will be careful not to exceed the 3.3v for my voltage signal range.

    DRV 8305 nFAULT led stays on when i turn on my power supply, i had to clear it by pressing the reset on f28027f.
  • Nvm Chris, i know why my board is getting a nFAULT is due to a voltage spike from my power supply. I think it went over the 45v limit.

    Thanks again.
  • John,

    Going past 45 V may damage the device.

    You can read the registers of the DRV8305 to determine what warning/fault is occurring.

    If it is a warning, a SPI read will clear the nFAULT pin. If it is a fault you will need to write a 1 to the CLR_FLTs bit to clear the nFAULT pin (you should determine why the fault is occuring though). 

  • Thanks Nick, i'm not sure how to look at the registers. Is it under ccs debug registers?

    John
  • if you are using INSTASPINUNIVERSALGUI (either standalone or inside CCS) there is a DRV8305 tab to view the registers.
    per the source code you could also view the registers in your Expressions by expanding gDrvSpi8305Vars
  • Thanks Chris,

    This is what i'm getting after expanding gDrvSpi8305Vars

    gDrvSpi8305Vars struct _DRV_SPI_8305_Vars_t_ {...} 0x00008840@Data
    Stat_Reg_01 struct _DRV_SPI_8305_Stat01_t_ {...} 0x00008840@Data
    Stat_Reg_02 struct _DRV_SPI_8305_Stat02_t_ {...} 0x0000884B@Data
    Stat_Reg_03 struct _DRV_SPI_8305_Stat03_t_ {...} 0x00008856@Data
    Stat_Reg_04 struct _DRV_SPI_8305_Stat04_t_ {...} 0x00008861@Data
    Ctrl_Reg_05 struct _DRV_SPI_8305_Ctrl05_t_ {...} 0x0000886C@Data
    Ctrl_Reg_06 struct _DRV_SPI_8305_Ctrl06_t_ {...} 0x00008870@Data
    Ctrl_Reg_07 struct _DRV_SPI_8305_Ctrl07_t_ {...} 0x00008874@Data
    Ctrl_Reg_08 struct _DRV_SPI_8305_Ctrl08_t_ {...} 0x0000887A@Data
    Ctrl_Reg_09 struct _DRV_SPI_8305_Ctrl09_t_ {...} 0x0000887B@Data
    Ctrl_Reg_0A struct _DRV_SPI_8305_Ctrl0A_t_ {...} 0x00008885@Data
    Ctrl_Reg_0B struct _DRV_SPI_8305_Ctrl0B_t_ {...} 0x0000888C@Data
    Ctrl_Reg_0C struct _DRV_SPI_8305_Ctrl0C_t_ {...} 0x00008894@Data
    WriteCmd unsigned char . 0x00008899@Data

    wish i could attach a screenshot, is there anything wrong with it?

    John
  • John,

    That just looks like the memory addresses. If you expand each of the Stat registers these will be the fault and diagnostic bits. You can compare against the datasheet for more information.

  • Nick, i expanded the gDrvSpi8305Vars expression, but i don't see values next to the FAULT , please see attached screenshots.

    Do you see anything wrong with it? Resume/reset would clear the nFAULT, otherwise it stays on. 

    Thanks.

    John

  • Hi everybody,
    I have the same hardware (piccolo with DRV8305 boosterpack) and I am also trying to operate it standalone with external pot for the speed control of the motor. I have enabled the
    gMotorVars.Flag_enableSys
    gMotorVars.Flag_Run_Identify

    and it works fine standalone with the default 100rpm.

    Now I want to set up the ADC chanel for the pot. Which is the variable that determines the speed rpm inside the code?

    Leo