Other Parts Discussed in Thread: EK-TM4C123GXL, TM4C123AE6PM, TM4C1294KCPDT
Hello everyone,
I have a question regarding usb_stick_update example for TM4C1294 launchpad, I got that example to work on that board and now I want to adopt it to fit TM4C123gxl board. I have changed clock to run on 80Mhz, here is the change in .cmd file
#define APP_BASE 0x00000000
#define RAM_BASE 0x20000000
MEMORY
{
/* Application stored in and executes from internal flash */
FLASH (RX) : origin = APP_BASE, length = 0x00040000
/* Application uses internal RAM for data */
SRAM (RWX) : origin = 0x20000000, length = 0x00008000
}
SECTIONS
{
.intvecs: > APP_BASE
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH
.vtable : > RAM_BASE
.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM
}
__STACK_TOP = __stack + 1024;
And I also changed function that configures USB interface to
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_USB0); ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD); ROM_GPIOPinTypeUSBAnalog(GPIO_PORTD_BASE, GPIO_PIN_4 | GPIO_PIN_5); ROM_GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1);
I wanted to configure one of the USB0EPEN pins for Host mode from datasheet but none of them made the difference, and then I noticed according to the layout they are not connected to USB_VBUS line at all but pin PB1 is. And still board does nothing when USB connected to the USB port. Changes I made in test app that should be loaded out of USB is
#define APP_BASE 0x00004800
Is there something more that I needed to change? How to set Host mode for this board?
Thank you for your time!
Kind regards