Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

LM3Sxxxx Eclipse error

Posted by Marc Schafer on November 8, 2008
I am just getting started with my LM3S3748 ev kit. I followed all the instruction to setup up the eclipse + code sourcery toolchain, but I ran into some problems.

The demo application compiles fine.

Downloading the code to the board generates the following messages:
Info: openocd.c:92 main(): Open On-Chip Debugger (2007-08-17 11:00 CEST)
Info: target.c:232 target_init_handler(): executing reset script 'program.script'
Info: configuration.c:50 configuration_output_handler(): requesting target halt...
Info: configuration.c:50 configuration_output_handler(): waiting for target halted...
Info: configuration.c:50 configuration_output_handler(): target halted
Warning: stellaris.c:379 stellaris_read_part_info(): stellaris flash only tested for LM3S811 series
Info: configuration.c:50 configuration_output_handler(): flash 'stellaris' found at 0x00000000
Info: configuration.c:50 configuration_output_handler(): #0: stellaris at 0x00000000, size 0x00020000, buswidth 0, chipwidth 0
Warning: stellaris.c:379 stellaris_read_part_info(): stellaris flash only tested for LM3S811 series
Info: configuration.c:50 configuration_output_handler():
Info: configuration.c:50 configuration_output_handler(): LMI Stellaris information: Chip is class 3 Unknown part vA.0
Info: configuration.c:50 configuration_output_handler(): did1: 0x1049400d, arch: 0x1049400d, eproc: ARMV7M, ramsize:64k, flashsize: 128k
Info: configuration.c:50 configuration_output_handler(): master clock(estimated): 22500kHz, rcc is 0x78e3ad1
Info: configuration.c:50 configuration_output_handler(): pagesize: 1024, lockbits: 64 0xffffffff, pages in lock region: 2
Info: configuration.c:50 configuration_output_handler():
Info: configuration.c:50 configuration_output_handler(): sector number(s) invalid
Warning: target.c:562 target_alloc_working_area(): not enough working area available
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x0, 20724 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x1000, 19700 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x2000, 18676 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x3000, 17652 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x4000, 16628 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x5000, 15604 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x6000, 14580 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x7000, 13556 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x8000, 12532 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x9000, 11508 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0xa000, 10484 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0xb000, 9460 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0xc000, 8436 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0xd000, 7412 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0xe000, 6388 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0xf000, 5364 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x10000, 4340 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x11000, 3316 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x12000, 2292 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 1024 words to 0x13000, 1268 remaining
Warning: stellaris.c:686 stellaris_write_block(): Algorithm flash write 244 words to 0x14000, 244 remaining
Info: configuration.c:50 configuration_output_handler(): wrote 82896 byte from file ./RTOSDemo/RTOSDemo.bin to flash bank 0 at offset 0x00000000 in 13s 356000us (6.061180 kb/s)

The debug server starts fine, but I get this error when I try to launch the demo in a debugging session.

An internal error occurred during: "Launching RTOSDemo".
java.lang.NullPointerException

Any help is greatly appreciated.

Thanks,
Marc

Eclipse errors fixed, now open ocd problems

Posted by Marc Schafer on November 8, 2008
I found 2 problems with eclipse configuration in the FreeRTOS Demo workspace. First, I had to configure the debug settings with the full path to arm-none-eabi-gdb.exe even though it was in my path. This was the cause of the NullPointerException.

Second, openocd_ftdi is configured to start listening to port 3333 but gdb is configured to connect to port 10000. I changed gdb to 3333 and was able to start a debugging session.

However, I cannot step, hit breakpoints, or really do anything with the debugger. I am seeing errors like these from openocd:

Info: server.c:67 add_connection(): accepted 'gdb' connection from 0
Error: cortex_swjdp.c:224 swjdp_transaction_endcheck(): SWJ-DP STICKY ERROR
Error: cortex_swjdp.c:238 swjdp_transaction_endcheck(): dcb_dhcsr 0x30003, nvic_shcsr 0x20000, nvic_cfsr 0x10000, nvic_bfar 0xe000edf8
Error: cortex_swjdp.c:224 swjdp_transaction_endcheck(): SWJ-DP STICKY ERROR
Error: cortex_swjdp.c:238 swjdp_transaction_endcheck(): dcb_dhcsr 0x30003, nvic_shcsr 0x20000, nvic_cfsr 0x10000, nvic_bfar 0xe000edf8

Thanks,
Marc

RE: LM3Sxxxx Eclipse error

Posted by cee on October 12, 2010
Hello Marc
Have you find a solution for this problem in the last two years?
I have exactly the same problem with CodeSourceryG++ 4.4-104 and a custom board with LM3S9B90.

Any help would be very much appreciated.

Kind Regards,
cee


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists