On Thu, Jun 14, 2012 at 2:21 PM, Michael Richardson <m...@sandelman.ca> wrote:
>
>>>>>> "Peter" == Peter Bigot <big...@acm.org> writes:
>    Peter> Porting this did reveal a couple bugs which have been added
>    Peter> to the tracker, but all of the ones for medium memory model
>    Peter> could be worked around in source.
>
> where these bugs revealed while running, or did the compiler and/or
> linker complain?

They were usually revealed by the MCU halting or repeatedly rebooting.
 Fortunately, since the EXP430F5438 demo prints to the LCD, and the
problems weren't obvious until task switches started, "printf" mostly
worked to locate the trouble areas.  For the rest, I just used
mspdebug directly, with its breakpoints and disassembly support, to
reach the "that can't possibly be right" epiphanies that revealed what
was going on.

Many thanks to Daniel Beer for mspdebug.  If you go that route, I
suggest pulling the latest git reversion: there were a few disassembly
issues related to 20-bit code that have been fixed now.

There are some complaints about invalid integer/pointer casts you
might see, but for the most part those are benign.

> I'm asking because debugging compiler issues on the target system can be
> a pain, but if you learn of the problems before hand, then it's way
> easier to know.

Yes.  Personally, I'm shocked that there were so few issues, and they
were so easy to figure out.  I'm really dreading the need to fix large
memory support, as that's going to be forcing gcc to do something it
considers unnatural.

I should point out that gdb may or may not work now.  My bet is "not",
at least for anything involving 20-bit code, and I hold that belief
firmly enough that I haven't even tried.  Anybody adventurous is
welcome to give it a go, but I have no funding to support porting all
the binutils/BFD changes into gdb at this time.

Peter

>
>    Peter> Again, that's all at:
>    Peter> https://github.com/pabigot/freertos-mspgcc
>
> I'll take a look.
>
> --
> ]       He who is tired of Weird Al is tired of life!           |  firewalls  
> [
> ]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net 
> architect[
> ] m...@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device 
> driver[
>   Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
>                       then sign the petition.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to