From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35038 invoked by alias); 4 Apr 2015 00:00:29 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 35001 invoked by uid 89); 4 Apr 2015 00:00:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-HELO: OARmail.OARCORP.com Received: from oarmail.oarcorp.com (HELO OARmail.OARCORP.com) (67.63.146.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 04 Apr 2015 00:00:27 +0000 Received: from [192.168.0.4] (207.98.215.166) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.3.342.0; Fri, 3 Apr 2015 19:00:23 -0500 Message-ID: <551F2996.10003@oarcorp.com> Date: Sat, 04 Apr 2015 00:00:00 -0000 From: Joel Sherrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b2 Thunderbird/3.1.16 MIME-Version: 1.0 To: "gdb@sourceware.org" Subject: Re: lm32 simulator configuration file question References: <551DC087.7040103@oarcorp.com> <20150403014149.GJ22171@vapier> <551EF633.9030309@oarcorp.com> <20150403232113.GO22171@vapier> In-Reply-To: <20150403232113.GO22171@vapier> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00011.txt.bz2 On 04/03/2015 06:21 PM, Mike Frysinger wrote: > On 03 Apr 2015 15:21, Joel Sherrill wrote: >> On 4/2/2015 8:41 PM, Mike Frysinger wrote: >>> On 02 Apr 2015 17:19, Joel Sherrill wrote: >>>> RTEMS has a BSP for the lm32 which runs on the simulator in gdb. >>>> Based on our wrapper scripts and READMEs, this is how the simulator >>>> is invoked in gdb: >>>> >>>> tar sim --hw-device lm32cpu \ >>>> --hw-device "lm32uart/reg 0x80006000 0x100" \ >>>> --hw-device "/lm32uart> int int0 /lm32cpu" \ >>>> --hw-device "lm32timer/reg 0x80002000 0x80" \ >>>> --hw-device "/lm32timer> int int1 /lm32cpu" \ >>>> --memory-region 0x08000000,0x4000000 >>> you can pass --hw-file to target sim too >> Thank you. I updated the file to this: >> >> ======================= >> /lm32cpu >> /lm32uart@0x80006000/reg 0x80006000 0x100 >> /lm32uart> int int0 /lm32cpu >> /lm32timer@0x80002000/reg 0x80002000 0x80 >> /lm32timer> int int1 /lm32cpu >> ======================= >> >> And that works with gdb using the tar sim command below. >> >> tar sim --hw-file lm32_evr.conf --memory-region 0x08000000,0x4000000 >> >> But nothing comes out from the same executable using run >> >> lm32-rtems4.11-run --hw-file lm32_evr.conf --memory-region >> 0x08000000,0x4000000 .hello.exe >> >> Does that make any sense to you? > honestly, i know nothing about the lm32 arch. it has no testsuite, and i have > no idea how to make example programs. so i can't really explain why it might > not be working. with Blackfin, i use a leading slash on everything and it > works for me. > sigh.. no testsuite. :( Just to be clear, the simulator works when I invoke it inside gdb. Just not via run. I am guessing some glue isn't right. > could i convince you to write a simple hello world program ? first one that'd > run in the virtual environment, and the one that'd setup& write to the serial > port ? that way we could check the .s files into the testsuite dir, and i could > try poking around the models. > I will build an lm32-elf toolset and throw that together. I am travelling next week so it may be slow to happen since I am no expert at lm32 assembly language. But a hello world shouldn't be a problem. > if the latest version isn't working, you could try grabbing previous releases of > gdb and building the sim for that. I tried a couple of older gdb's I had laying around. They behaved the same. Not sure how far I would have to go back. > -mike -- -- Joel Sherrill Ask me about RTEMS: a free RTOS Support and Training Available