in gdb just before you connect (after elf file is loaded) play with these

show arm abi
set arm abi      (don't remember the different abi names in my head)

different arm abi has different g package length (some ABI has floating
point registers, some has not, hence wrong packet length). This happens
when gdb guesses the ABI used based on the ELF file, which some times
missmatches with what openocd expects for the given target.


Stian Skjelstad

> Or use http://blog.gmane.org/gmane.comp.debugging.openocd.devel the search
> works there. SF find
> nothing, like expected.
>
> On 12.03.2012 16:55, Justin Drake wrote:
>> @jonsmirl: It seems like my gdb does not accept ARMv7-M as an
>> architecture. Only goes up to ARMv5.
>>
>> On Mon, Mar 12, 2012 at 3:45 PM, Justin Drake<drakefjus...@gmail.com>
>> wrote:
>>> @Tomas: Thanks. How can I search the whole archives? The sourceforge
>>> page seems quite useless
>>> (http://sourceforge.net/mailarchive/forum.php?forum_name=openocd-devel)
>>>
>>> On Mon, Mar 12, 2012 at 3:30 PM, Tomas Frydrych
>>> <tf+lists.open...@r-finger.com>  wrote:
>>>> On 12/03/12 15:09, Justin Drake wrote:
>>>>> I am using OpenOCD and DGB to talk with my ARM Cortex 3M chip. When I
>>>>> load my .elf file onto GDB, the moment I connect to my board (target
>>>>> remote localhost:3333) I get the error message:
>>>>>
>>>>> Remote 'g' packet reply is too long:
>>>>> 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fc010020ffffffff010000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000001
>>>>>
>>>>> Reading about the issue, I gather it might be a 32bit vs 64bit issue.
>>>>> How can I fix this?
>>>>
>>>> It is not; it's caused by a change in gdb as to what registers gdb
>>>> expects on an arm cpu, and what registers openocd reports. If you
>>>> check
>>>> the list archives, you will find number of ways to fix/work around
>>>> this.
>>>>
>>>> Tomas
>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Try before you buy = See our experts in action!
>>>>> The most comprehensive online learning library for Microsoft
>>>>> developers
>>>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
>>>>> MVC3,
>>>>> Metro Style Apps, more. Free future releases when you subscribe now!
>>>>> http://p.sf.net/sfu/learndevnow-dev2
>>>>> _______________________________________________
>>>>> OpenOCD-devel mailing list
>>>>> OpenOCD-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/openocd-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Try before you buy = See our experts in action!
>>>> The most comprehensive online learning library for Microsoft
>>>> developers
>>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
>>>> MVC3,
>>>> Metro Style Apps, more. Free future releases when you subscribe now!
>>>> http://p.sf.net/sfu/learndevnow-dev2
>>>> _______________________________________________
>>>> OpenOCD-devel mailing list
>>>> OpenOCD-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/openocd-devel
>>
>> ------------------------------------------------------------------------------
>> Try before you buy = See our experts in action!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-dev2
>> _______________________________________________
>> OpenOCD-devel mailing list
>> OpenOCD-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openocd-devel
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> OpenOCD-devel mailing list
> OpenOCD-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openocd-devel
>



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to