juan_manuell
Member level 4
hi, i am using the board EK-LM3S9B92-B. I was using it with the demos and all was fine. I made my own proyect with a realtime tick of 1ms. All works well.
I begun to learn about FREE-RTOS. I download it. Read about it. And i comment from the example all about a display because it was for other board and micro.
Well i made one task to test it. I change from proyect the device to the one that i am using. I check the only one function that could make something wrong, that was the one that initialize the hardware.
So i download with the jlink (that i was using before with others examples). I begun in debug mode i and when i go to the funtion of hardware never comeback.
The board never respond. And now the board not respond anymore.
This is the log when try to connect
Logging started @ 2010-09-29 15:10
DLL Compiled: Dec 11 2009 10:15:10
Firmware: J-Link ARM V8 compiled Dec 1 2009 11:42:48
Hardware: V8.00
S/N: 158004091
OEM: IAR returns O.K. (0062ms, 0000ms total)
T01F4 000:062 JLINKARM_GetDLLVersion() returns 41005 (0000ms, 0062ms total)
T01F4 000:063 JLINKARM_GetCompileDateTime() (0000ms, 0062ms total)
T01F4 000:063 JLINKARM_GetFirmwareString(...) (0000ms, 0062ms total)
T01F4 000:063 JLINKARM_SelectDeviceFamily(3) (0000ms, 0062ms total)
T01F4 000:064 JLINKARM_SetSpeed(32) (0001ms, 0062ms total)
T01F4 000:067 JLINKARM_SetResetDelay(0) (0000ms, 0063ms total)
T01F4 000:067 JLINKARM_ResetPullsRESET(ON) (0000ms, 0063ms total)
T01F4 000:067 JLINKARM_Reset() >0x2F8 JTAG>TotalIRLen = 4, IRPrint = 0x01 >0x30 JTAG> >0x210 JTAG> >0xF8 JTAG> >0xF8 JTAG> >0xF8 JTAG>Identified core does not match configuration. (Found: Cortex-R4, Configured: Cortex-M3) >0x98 JTAG>
***** Error: Could not power up debug port: Control/Status register reads 00000000 (0088ms, 0063ms total)
T01F4 023:387 JLINKARM_GetIdData(...) ScanLen=0 NumDevices=0 aId[0]=0x00000000 aIrRead[0]=0 aScanLen[0]=0 aScanRead[0]=0 (0001ms, 23381ms total)
T01F4 023:388 JLINKARM_Halt() returns 0x01 (0000ms, 23382ms total)
T01F4 023:388 JLINKARM_IsHalted() returns FALSE (0000ms, 23382ms total)
T01F4 023:388 JLINKARM_ReadMemU32(0xE000ED00, 0x0001 Items, ...) -- Data: AA AA AA AA returns 0xFFFFFFFF (0000ms, 23382ms total)
Closed
Using the programmer that come with the board giveme this response
Wed Sep 29 15:33:42 2010: Loaded macro file: C:\Archivos de programa\IAR Systems\Embedded Workbench 5.4\arm\config\flashloader\TexasInstruments\
FlashLM3Sxxx.mac
Wed Sep 29 15:33:42 2010: JTAG Speed is set to: 500 kHz
Wed Sep 29 15:33:55 2010: Fatal error: **ERROR**: JTAG initialization failed 0x00000004 Session aborted!
Wed Sep 29 15:33:55 2010: Failed to load flash loader: C:\Archivos de programa\IAR Systems\Embedded Workbench 5.4\arm\config\flashloader\
TexasInstruments\FlashLM3SxxxRAM32K.out
Wed Sep 29 15:33:55 2010: Failed to load flash loader: C:\Archivos de programa\IAR Systems\Embedded Workbench 5.4\arm\config\flashloader\
TexasInstruments\FlashLM3Sx8xx.flash
I really don´t know what happen.
The hard funtion has the next code
This function it is like come in software rtos
void prvSetupHardware( void )
{
/* If running on Rev A2 silicon, turn the LDO voltage up to 2.75V. This is
a workaround to allow the PLL to operate reliably. */
if( DEVICE_IS_REVA2 )
{
SysCtlLDOSet( SYSCTL_LDO_2_75V );
}
/* Set the clocking to run from the PLL at 50 MHz */
SysCtlClockSet( SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_8MHZ );
/* Enable Port F for Ethernet LEDs
LED0 Bit 3 Output
LED1 Bit 2 Output */
SysCtlPeripheralEnable( SYSCTL_PERIPH_GPIOF );
GPIODirModeSet( GPIO_PORTF_BASE, (GPIO_PIN_2 | GPIO_PIN_3), GPIO_DIR_MODE_HW );
GPIOPadConfigSet( GPIO_PORTF_BASE, (GPIO_PIN_2 | GPIO_PIN_3 ), GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD );
// this only set like out a PIN0 of F port and has nothing connected
vParTestInitialise();
// agrego mi inicializacion de hard
// from here was added for me
// Enable the GPIO pin for the LED (PD0). Set the direction as output, and
// enable the GPIO pin for digital function.
//
GPIODirModeSet( GPIO_PORTD_BASE, GPIO_PIN_0, GPIO_DIR_MODE_OUT );
GPIOPadConfigSet( GPIO_PORTD_BASE, GPIO_PIN_0, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD );
GPIOPinWrite( GPIO_PORTD_BASE, GPIO_PIN_0, 0 );
}
Anyone has an advice about this or how i could solve it.
I go back to the proyect that come with the examples of board. And nothing happen. I had the same error.
Thanks in advance
I begun to learn about FREE-RTOS. I download it. Read about it. And i comment from the example all about a display because it was for other board and micro.
Well i made one task to test it. I change from proyect the device to the one that i am using. I check the only one function that could make something wrong, that was the one that initialize the hardware.
So i download with the jlink (that i was using before with others examples). I begun in debug mode i and when i go to the funtion of hardware never comeback.
The board never respond. And now the board not respond anymore.
This is the log when try to connect
Logging started @ 2010-09-29 15:10
DLL Compiled: Dec 11 2009 10:15:10
Firmware: J-Link ARM V8 compiled Dec 1 2009 11:42:48
Hardware: V8.00
S/N: 158004091
OEM: IAR returns O.K. (0062ms, 0000ms total)
T01F4 000:062 JLINKARM_GetDLLVersion() returns 41005 (0000ms, 0062ms total)
T01F4 000:063 JLINKARM_GetCompileDateTime() (0000ms, 0062ms total)
T01F4 000:063 JLINKARM_GetFirmwareString(...) (0000ms, 0062ms total)
T01F4 000:063 JLINKARM_SelectDeviceFamily(3) (0000ms, 0062ms total)
T01F4 000:064 JLINKARM_SetSpeed(32) (0001ms, 0062ms total)
T01F4 000:067 JLINKARM_SetResetDelay(0) (0000ms, 0063ms total)
T01F4 000:067 JLINKARM_ResetPullsRESET(ON) (0000ms, 0063ms total)
T01F4 000:067 JLINKARM_Reset() >0x2F8 JTAG>TotalIRLen = 4, IRPrint = 0x01 >0x30 JTAG> >0x210 JTAG> >0xF8 JTAG> >0xF8 JTAG> >0xF8 JTAG>Identified core does not match configuration. (Found: Cortex-R4, Configured: Cortex-M3) >0x98 JTAG>
***** Error: Could not power up debug port: Control/Status register reads 00000000 (0088ms, 0063ms total)
T01F4 023:387 JLINKARM_GetIdData(...) ScanLen=0 NumDevices=0 aId[0]=0x00000000 aIrRead[0]=0 aScanLen[0]=0 aScanRead[0]=0 (0001ms, 23381ms total)
T01F4 023:388 JLINKARM_Halt() returns 0x01 (0000ms, 23382ms total)
T01F4 023:388 JLINKARM_IsHalted() returns FALSE (0000ms, 23382ms total)
T01F4 023:388 JLINKARM_ReadMemU32(0xE000ED00, 0x0001 Items, ...) -- Data: AA AA AA AA returns 0xFFFFFFFF (0000ms, 23382ms total)
Closed
Using the programmer that come with the board giveme this response
Wed Sep 29 15:33:42 2010: Loaded macro file: C:\Archivos de programa\IAR Systems\Embedded Workbench 5.4\arm\config\flashloader\TexasInstruments\
FlashLM3Sxxx.mac
Wed Sep 29 15:33:42 2010: JTAG Speed is set to: 500 kHz
Wed Sep 29 15:33:55 2010: Fatal error: **ERROR**: JTAG initialization failed 0x00000004 Session aborted!
Wed Sep 29 15:33:55 2010: Failed to load flash loader: C:\Archivos de programa\IAR Systems\Embedded Workbench 5.4\arm\config\flashloader\
TexasInstruments\FlashLM3SxxxRAM32K.out
Wed Sep 29 15:33:55 2010: Failed to load flash loader: C:\Archivos de programa\IAR Systems\Embedded Workbench 5.4\arm\config\flashloader\
TexasInstruments\FlashLM3Sx8xx.flash
I really don´t know what happen.
The hard funtion has the next code
This function it is like come in software rtos
void prvSetupHardware( void )
{
/* If running on Rev A2 silicon, turn the LDO voltage up to 2.75V. This is
a workaround to allow the PLL to operate reliably. */
if( DEVICE_IS_REVA2 )
{
SysCtlLDOSet( SYSCTL_LDO_2_75V );
}
/* Set the clocking to run from the PLL at 50 MHz */
SysCtlClockSet( SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_8MHZ );
/* Enable Port F for Ethernet LEDs
LED0 Bit 3 Output
LED1 Bit 2 Output */
SysCtlPeripheralEnable( SYSCTL_PERIPH_GPIOF );
GPIODirModeSet( GPIO_PORTF_BASE, (GPIO_PIN_2 | GPIO_PIN_3), GPIO_DIR_MODE_HW );
GPIOPadConfigSet( GPIO_PORTF_BASE, (GPIO_PIN_2 | GPIO_PIN_3 ), GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD );
// this only set like out a PIN0 of F port and has nothing connected
vParTestInitialise();
// agrego mi inicializacion de hard
// from here was added for me
// Enable the GPIO pin for the LED (PD0). Set the direction as output, and
// enable the GPIO pin for digital function.
//
GPIODirModeSet( GPIO_PORTD_BASE, GPIO_PIN_0, GPIO_DIR_MODE_OUT );
GPIOPadConfigSet( GPIO_PORTD_BASE, GPIO_PIN_0, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD );
GPIOPinWrite( GPIO_PORTD_BASE, GPIO_PIN_0, 0 );
}
Anyone has an advice about this or how i could solve it.
I go back to the proyect that come with the examples of board. And nothing happen. I had the same error.
Thanks in advance