Jump to content

Shoba Thurairaja

Members
  • Content Count

    9
  • Joined

  • Last visited

About Shoba Thurairaja

  • Rank
    Noob Class
  1. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); ROM_GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1); missed it shoba
  2. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    Sorry for the late update, Just to let every one who is working with USB_BULK example, to know that there is no issue on the driver file that provided. It was a hardware issue on my side, USB0DM and USBID pins are connected. 1) Following command will work if you can't allowcate a pin to control feature (USB0EPEN to enbable the Vbus) then forcing the device with following // // Set the USB stack mode to Device mode with VBUS monitoring. // USBStackModeSet(0, eUSBModeForceDevice, 0); 2) if you have implemented a hardware for USB0EPEN, USBID(PB0), USB_VBUS(PB1) ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG); ROM_GPIOPinConfigure(GPIO_PG4_USB0EPEN); ROM_GPIOPinTypeUSBDigital(GPIO_PORTG_BASE, GPIO_PIN_4); Both works Shoba
  3. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    thanks to all who replied to my post, i figured it out and now it's working. Shoba
  4. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    remix123, thanks for the input, appreciated. do you know how to reach out for paid services? Shoba
  5. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    Hello Rhys, Thanks for getting back to me, how do I force the chip into USB device, this is where I got stuck with this bulk example. when would you able to get back to me on this? Thanks in advance, Shoba
  6. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    Bluehash, yes, I could not find anything that I did wrong or something. would you able to take a look at my code? I will send you my project and see why its not working? thanks in advance, Shoba
  7. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    Rhys I fixed it, it was due to the complier, by adding ccs="ccs" in the predefined symbols and also enable support for GCC extensions. but I tried to import the usb_dev_bulk example and its not working or not even detecting the bulk generic device. Thanks in advance, Shoba
  8. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    Description Resource Path Location Type #35 #error directive: Unrecognized COMPILER! main.c /Wireless line 97, external location: C:\ti\TivaWare_C_Series-1.1\usblib\usblib.h C/C++ Problem
  9. Shoba Thurairaja

    Enable USB device on TIVA C TM4C123g

    I am using CCS version 5.5, I am using TIVA C microcontroller, TM4C123g series microcontroller, as soon as I add the include file #include "usblib/usblib.h" I am have compiling issue. pls see below my complete include headers and attached error message Please see the console message: 'Building file: ../main.c' 'Invoking: ARM Compiler' "C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O1 --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/TivaWare_C_Series-1.1" --include_path="C:/ti/TivaWare_C_Series-1.1/third_party" -g --define=PART_TM4C123GH6PGE --define=DEBUG --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" "../main.c" "C:/ti/TivaWare_C_Series-1.1/usblib/usblib.h", line 97: fatal error #35: #error directive: Unrecognized COMPILER! 1 catastrophic error detected in the compilation of "../main.c". Compilation terminated. can some one please help me understand what is going on? Error: full header: #include <stdint.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <time.h> #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "inc/hw_nvic.h" #include "inc/hw_i2c.h" #include "inc/hw_gpio.h" #include "driverlib/debug.h" #include "driverlib/sysctl.h" #include "driverlib/systick.h" #include "grlib/grlib.h" #include "inc/tm4c123gh6pge.h" #include "driverlib/gpio.h" #include "driverlib/interrupt.h" #include "driverlib/timer.h" #include "driverlib/adc.h" #define TARGET_IS_BLIZZARD_RB1 #include "driverlib/rom.h" #include "driverlib/pin_map.h" //#include "driverlib/hibernate.h" #include "utils/ustdlib.h" #include "driverlib/flash.h" #include "driverlib/eeprom.h" #include "driverlib/fpu.h" #include "driverlib/uart.h" #include "usblib/usblib.h" //#include "usblib/usb-ids.h" //#include "usblib/device/usbdevice.h" //#include "usblib/device/usbdbulk.h" #include "utils/uartstdio.h" #include "grlib/widget.h" #include "grlib/canvas.h" #include "grlib/checkbox.h" #include "Kentec320x240x16_ssd2119_8bit.h" #include "fatfs/src/ff.h" #include "fatfs/src/diskio.h"
×