An internal GDB error was detected. This may make further
debugging unreliable. Continue this debugging session? (y or n)
If I answer y and continue, monitor commands seem to work,
but nothing involving program symbols will work.
Any idea what's wrong?
--
Grant Edwards
On 2006-02-14, Grant Edwards gra...@visi.com wrote:
On 2006-02-14, Grant Edwards gra...@visi.com wrote:
I notice that CVS contains gdb code for 5.1.1, 5.4 and
current.
Does current mean 6.4?
Apparently not. 6.4 won't build with the current sources.
Both the sim and gdb builds fail
On 2006-02-14, Grant Edwards gra...@visi.com wrote:
Even though gdb 5.1.1 seems to have built OK, it doesn't seem
to work. Everytime I start msp430-gdb, I get this error:
This GDB was configured as --host=i686-pc-linux-gnu
--target=msp430...msp430/toolchain/src/gdb-5.1.1/gdb/partial-stab.h
}
--
Grant Edwards grante Yow! ALFRED JARRY! Say
at something about th' DEATH
visi.comof DISCO!!
On 2006-03-15, Chris Liechti cliec...@gmx.net wrote:
Grant Edwards schrieb:
I've been looking at the code generated by avr-gcc 3.4.5, and
it sure looks like there's a lot of extra overhead involved in
ISRs. Let's write an ISR that just toggles a port pin every
time the interrupt happens
the toggle code
particularly cumbersome.
I did notice that a set/clr is a lot cleaner.
--
Grant Edwards grante Yow! I just remembered
at something about a TOAD!
visi.com
involved
with a volume design, and the benefits of a C-friendly
architecture have a clear and significant value.
--
Grant Edwards grante Yow! I have many CHARTS
at and DIAGRAMS...
visi.com
for trivially
small ISRs. But, in may experience, some of them usually are --
and they're the ones that have to run the fastest.
--
Grant Edwards grante Yow! .. over in west
at Philadelphia a puppy
On 2006-03-17, Grant Edwards gra...@visi.com wrote:
I'm trying to figure out how to exit from low power mode.
According to the manual, the _BIC_SR_IRQ() macro does what I
want, but I can't get it to compile without a warning. Isn't
there a way to do it that doesn't generate compiler warnings
On 2006-03-18, Brian C. Lane b...@brianlane.com wrote:
Grant Edwards wrote:
I'm trying to figure out how to exit from low power mode.
According to the manual, the _BIC_SR_IRQ() macro does what I
want, but I can't get it to compile without a warning. Isn't
there a way to do it that doesn't
project I work on had to be tweaked because of that.
as you noticed, i'll get better with gcc 4.x as the string
concatenation won't work anymore and a bultin function is
being added. :-)
--
gra...@visi.com
Grant Edwards
?
--
gra...@visi.com
Grant Edwards
building gcc
cross-compilers for many years, so maybe I've forotten how
baffling the process can be the first time.
--
Grant Edwards
gra...@visi.com
bothered to update them.
Then I'm definitely sticking with 3.2.3. Thanks for the advice.
--
Grant Edwards
gra...@visi.com
is using
the exact same tarballs+patches each time I run it. Besides, I
already had a toolchain build script that I'd been using for
some other targets, and modifying it to build for the MSP430
target was pretty trivial.
--
Grant Edwards
gra...@visi.com
.
--
Grant Edwards grante Yow! I'm an East Side
at TYPE...
visi.com
{
if (flag)
func1();
else
func2();
}
I would prefer the first solution because I have some
performance issues with the second one.
It depends on when and how often you need to change ISRs.
--
Grant Edwards grante Yow! MERYL STREEP
switch disables that warning?
--
Grant Edwards grante Yow! It's a lot of fun
at being alive... I wonder if
visi.commy bed is made?!?
to be done the right way took less
time than explaining this.
That's why there are compiler switches that allow certain
warnings to be ignored.
Which compiler switch disables that warning?
I notice you haven't answered that question yet.
--
Grant Edwards grante Yow
allowed a make to complete if there are any warnings -- I'd
never remember to look for that fourth warning.
--
Grant Edwards grante Yow! Yow! I just went
at below the poverty line!
visi.com
On 2006-03-22, Grant Edwards gra...@visi.com wrote:
It would be good to add a note to the manual section for
_BIS_SR_IRQ() and _BIC_SR_IRQ() explaining that they _must_ be
called from the top-level of an ISR. They must be called
directly by the function which was declared as an interrupt
been parsed yet.
In the 4.0 implimentation a compiler builtin is being used
instead of a macro, so it might be possible in that case.
--
Grant Edwards grante Yow! Yow! Am I JOGGING
at yet
engineer :-P
And we're just lowly customers. :(
--
Grant Edwards grante Yow! My mind is a potato
at field...
visi.com
, but under nominal conditions it certainly
works.
--
Grant Edwards grante Yow! I've been WRITING
at to SOPHIA LOREN every 45
visi.comMINUTES since JANUARY 1ST!!
this?
$ objdump --section-headers test.elf
--
Grant Edwards grante Yow! My mind is making
at ashtrays in Dayton
visi.com
a.elf a.hex
where $(OBJCOPY) is the path to your msp430-objcopy executable.
Nonsense. Gdb knows how to load ELF files.
--
Grant Edwards grante Yow! Yow! I'm UNEMPLOYED!
at
visi.com
, then those symbols are going to have to be visible
to the user, since it's the user that's going to be linking
them together.
Since your question is not specific to the MSP430, the best
place to ask about specific binutils usage would probably be on
the binutils mailing list.
--
Grant Edwards
of thing itself.
The third option is to link the object modules together then strip
them (keeping only the symbols he wants to be visible).
--
Grant Edwards grante Yow! .. here I am in 53
at B.C. and all I want
with gcc.
--
Grant Edwards grante Yow! I have a very good
at DENTAL PLAN. Thank you.
visi.com
JTAG and hope to
get that to work with GDB. The FreeRTOS web site says how to do this.
I've used both the TI and Olimex parallel port JTAG interfaces
with gdb under Linux. Both work fine.
--
Grant Edwards grante Yow! Did I SELL OUT yet
mov.b 0x0034, r14
add r15, r14
mov r14, two
ret
--
Grant Edwards grante Yow! Now that I have my
at APPLE, I comprehend COST
visi.com
ignore
it is a serious bug in my world.
Damn. It might be time to spring for the Rowley compiler.
--
Grant Edwards grante Yow! My FAVORITE group
at is QUESTION MARK THE
visi.com
On 2006-06-30, Grant Edwards gra...@visi.com wrote:
On 2006-06-30, David Brown da...@westcontrol.com wrote:
Just for fun, I tried compiling the code with two changed to an unsigned
char. My mps430 compiler (3.2.3) then gives
mov.b P6IN, r15
rla.b r15
mov.b r15, two
ret
maintained?
3.2.3 is our stable version
Is it getting bug fixes?
the latest 4.x should be the next version, but it's not yet
ready
--
Grant Edwards grante Yow! YOU'D cry too if it
at happened to YOU
;
Unless you declare two as volatile, the compiler is free to
write to two twice.
because this is what atomic write to a global variable means.
We know what atomic write means.
--
Grant Edwards grante Yow! I'm
that in
order to be able to use any tool, you have to learn how to
use that tool first. But is this like priesthood? Do I have
to recite in Latin?
No, just PDP-11 assembly language.
--
Grant Edwards grante Yow! I am covered
jeq.L9
call #zxcv
.L9:
cmp.b #llo(0), 0x0020
jge.L8
call #zxcv
.L8:
ret
It only saves one instruction, but that instruction is a
jmp, so it's a big one if you're counting cycles.
--
Grant Edwards grante Yow
with with the macro you use to set bit.
It always seemed so much cleaner to just do this:
#define ADCEnable P3OUTb.b3
--
Grant Edwards
gra...@visi.com
(ledGreen);
OutputEnable(ledGreen);
while (1) {
if (GetBit(inputSwitch)) {
ResetBit(ledGreen);
};
};
}
I like that approach. Having to define more than one macro
for a ping always seemed wrong.
--
Grant Edwards grante Yow! I
to resolve these sort of problems is to find out
what has driven the kernel maintainers to make the change and
modify your software accordingly (and pray the fix will
continue to work with the next kernel version).
--
Grant Edwards
gra...@visi.com
ought to. ;)
When writing embedded stuff, you should always know what
assembly code is going to be generated for a chunk of C code
when you write it.
--
Grant Edwards grante Yow! I'm losing my
at hair...did it go
for a
telecommunications link (e.g. burst errors).
IOW, people are paying a lot extra for something that may not
even work as well as a far cheaper solution.
--
Grant Edwards grante Yow! I've got a COUSIN
at who works
. If they don't match, it waits for a new app.
It sounds like this can't be done with the GCC tools, so I'll
have to do it manually.
Whatever.
--
Grant Edwards grante Yow! I'm a fuschia bowling
at ball somewhere in Brittany
? Or, is
there a way to prevent it from occurring?
Are you powering the target from the JTAG interface?
--
Grant Edwards grante Yow! I'm having an
at EMOTIONAL OUTBURST!! But,
visi.comuh
between the times when gdbproxy can/can't find the
target.
--
Grant Edwards grante Yow! YOW!! I am having
at FUN!!
visi.com
://sourceforge.net/cvs/?group_id=42303
--
Grant Edwards grante Yow! Nice decor!
at
visi.com
-bit DOS instruction when
I try to run it.
--
Grant Edwards grante Yow! Do I have a lifestyle
at yet?
visi.com
a board. The stations are used for other things, and
our test-systems SW guy is still hooked on Visual Basic.
--
Grant Edwards grante Yow! Is this BOOZE?
at
visi.com
. The stations are used for other things, and
our test-systems SW guy is still hooked on Visual Basic.
--
Grant Edwards grante Yow! Is this BOOZE?
at
visi.com
directory. Being able to provide
a firmware update that has the firmware bundled with it will be
pretty nice once a few units escape into the field.
--
Grant Edwards grante Yow! I'm having a MID-WEEK
at CRISIS
scheme that uses a different interface.
--
Grant Edwards grante Yow! This PIZZA symbolizes
at my COMPLETE EMOTIONAL
visi.comRECOVERY!!
for end-user updates, since we're
using a standardized physical layer and protocol that aren't
BSL.
--
Grant Edwards grante Yow! Psychoanalysis?? I
at thought this was a nude
visi.com
[...]
--bug.s--
Has this been fixed in newer versions?
--
Grant Edwards grante Yow! A dwarf is passing
at out somewhere in Detroit!
visi.com
On 2006-09-12, Grant Edwards gra...@visi.com wrote:
My program is broken because mspgcc 3.2.3 is generating
unaligned word accesses. I'm calling memset() and memcpy()
fill in the fields in a packed struct. Since I've requested a
2-byte copy/set mspgcc is optimizing some of those memset
alignment for operations
greater than 1 byte long.
--
Grant Edwards grante Yow! Will it improve my
at CASH FLOW?
visi.com
to be used,
then you're going to have to make char 16 bits wide. On an
architecture with limited RAM, I don't think anybody's going to
like that idea.
Maybe I should check how the other MSP430 compilers handle
this.
Handle what?
--
Grant Edwards grante Yow! I
seem to be taking a narrow view of efficiency. I wasn't
thinking of speed, but of the size of the resulting code. That
matters very much to any embedded developer.
Why not just generate this then?
l1: bra l1
It's very compact.
--
Grant Edwards grante Yow
assignments to packed, misaligned structure fields
don't check pointers before dereferencing them.
--
Grant Edwards grante Yow! I've been WRITING
at to SOPHIA LOREN every 45
visi.com
suggesting a
compiler which refuses to compile 100% legal standard ANSI C
source code. I just don't see how that's a real option.
--
Grant Edwards grante Yow! How many retired
at bricklayers from FLORIDA
though one of the addresses was odd.
Two mov.b instruction is perfect. It's exactly what the source
specified.
--
Grant Edwards grante Yow! Intra-mural sports
at results are filtering
address bus through the
JTAG interface while the cpu is running an normal speed.
Tres Cool!
--
Grant Edwards grante Yow! Hmmm... A hash-singer
at and a cross-eyed guy were
visi.com
(communications frames), you've got no choice:
things have to be where they have to be. If the compiler
doesn't support direct accesses (assignments to/from) fields in
packed structures, then you use memcpy() calls.
I was, however, naively hoping for some meaningful discussion.
--
Grant Edwards
it didn't get called?
The NIOS2 target has a -mno-inline-memcpy flag for that exact
situation.
--
Grant Edwards grante Yow! Am I in GRADUATE
at SCHOOL yet?
visi.com
On 2006-09-13, Grant Edwards gra...@visi.com wrote:
On 2006-09-13, Steve Hosgood st...@caederus.com wrote:
w A thought... is it a valid optimisation to replace a routine
like 'memcpy', assuming that 'memcpy' is the one from
stdio.h?
IMO, yes.
What if the user wrote his own 'memcpy
to Australia on holiday for three weeks starting
Saturday.
You guys at AAD have any job openings? I've always wanted to
see Antarctica...
--
Grant Edwards grante Yow! Jesuit priests are
at DATING CAREER DIPLOMATS
On 2006-09-13, Chris Liechti cliec...@gmx.net wrote:
a fast and not too large memcopy/memset could copy the start and end
separately using byte ops when odd, and copy the remaining data in
beween with word moves.
That's actually what the current libc memcpy does.
--
Grant Edwards
that both recocgnizes
newer devices and knows how to load to flash?
[This is using the TI parallel port JTAG interface.]
--
Grant Edwards grante Yow! There's a SALE on
at STRETCH SOCKS down
On 2006-11-09, Grant Edwards gra...@visi.com wrote:
The new gdb-proxy does recognize the 4270, but it can't program
flash on an F148. The erase operation seems fine, but when I
try to load an elf file, gdbproxy cpu usage goes to 100% and
it just sits there forever spitting out
debug
On 2006-11-09, Grant Edwards gra...@visi.com wrote:
On 2006-11-09, Grant Edwards gra...@visi.com wrote:
The new gdb-proxy does recognize the 4270, but it can't program
flash on an F148. The erase operation seems fine, but when I
try to load an elf file, gdbproxy cpu usage goes to 100
On 2006-11-09, Grant Edwards gra...@visi.com wrote:
After running both old and new msp430-gdbproxy binaries with
debug mode enabled, it looks like the new one _is_ programming
flash, it's just 10-20X slower than the old one. With the old
binary, the msp430_write_mem() messages scroll
On 2006-11-09, Grant Edwards gra...@visi.com wrote:
I just did a bit of benchmarking, and the new binary is 30X
slower. Loading my 14K program into flash with the old binary
took 22 seconds (5500bps). With the new one, it takes 522
seconds (223bps) -- that's almost 9 minutes.
Increasing
-- unless the configuration data is really so
complex and nested that XML-bloat is really useful.
--
Grant Edwards grante Yow! YOW!! Up ahead! It's
at a DONUT HUT!!
visi.com
On 2006-11-10, Grant Edwards gra...@visi.com wrote:
How do I shut off the debug messages in msp430-gdbproxy?
This is getting really annoying
Right now I'm using 'grep -v' to get rid of debug messages, but
that seems like a bit of a kludge.
--
Grant Edwards grante
to work??
Is the source code available somewhere so I can fix this (as
well as the 1-packet-per second speed limit)?
--
Grant Edwards grante Yow! CHUBBY CHECKER owns
at my BUILDING
According to
http://mspgcc.sourceforge.net/tools.html
libhil.so is needed and available from our CVS repository.
WHERE IN CVS THE REPOSITORY IS IT?
--
Grant Edwards grante Yow! I know th'MAMBO!! I
at have a TWO
On 2006-11-13, Grant Edwards gra...@visi.com wrote:
Since upgrading to a version of gdb-proxy that recognizes
recent parts, I've been unable to stop the processor while it's
running. Whenever I attempt to stop a running program, gdb
reports:
Watchdog has expired. Target detached.
msp430
Is msp430-gdbserver still being maintained?
Downloading via parallel port and the --debug option both seem
to have been broken since April.
Is there any way one can get access to the source code in order
to fix these problems?
--
Grant Edwards grante Yow! I
On 2006-11-14, Grant Edwards gra...@visi.com wrote:
Is msp430-gdbserver still being maintained?
Um, I obviously meant msp430-gdbproxy.
There's a program with identical functionality for the Altera
NIOS2 JTAG interface that's called a server rather than a
proxy and I can't ever keep straight
this for months, but the response seems
to be use a different program.
--
Grant Edwards grante Yow! I'm young... I'm
at HEALTHY... I can HIKE
visi.comTHRU CAPT GROGAN'S LUMBAR
the old one was
transferring 30 frames per second.
There has definitely been a slowdown, though. The USB tools
are much faster, but that probably doesn't help you.
--
Grant Edwards grante Yow! Two with FLUFFO
the commented out line instead, it's fine.
Does gdbproxy only call setsid() if stdout/stederr is a tty?
--
Grant Edwards grante Yow! Yow! Am I in
at Milwaukee?
visi.com
to the tools page at
http://mspgcc.sourceforge.net/tools.html?
--
Grant Edwards grante Yow! Where does it go when
at you flush?
visi.com
License. This program has absolutely no
warranty.
$
--
Grant Edwards grante Yow! Hmmm... A hash-singer
at and a cross-eyed guy were
visi.comSLEEPING on a deserted
On 2006-11-21, N. Coesel n...@nctdev.nl wrote:
If long int is a 64 bit variable, expect GCC to be broken.
Are there any versions of mspgcc where long int is 64 bits?
Up through at least 3.2, long int is always 32 bits.
--
Grant Edwards grante Yow
On 2006-11-21, Grant Edwards gra...@visi.com wrote:
[...] I expected the the .infomem section to have the
@nobits attribute, but it is @progbits.
Duh.
That's what the section .infomemnobits is for.
--
Grant Edwards grante Yow! Yow! Those people
are
selected with the BLKWRT, WRT, MERAS, and ERASE bits and are:
- Byte/word write
- Block write
- Segment Erase
- Mass Erase (all main memory segments)
- All Erase (all segments)
AFAIK, the flash controller is the same in all current parts.
--
Grant Edwards
HOWTO for
msp430-gdbproxy via USB under Linux, I'd be glad to test it. :)
--
Grant Edwards grante Yow! Put FIVE DOZEN red
at GIRDLES in each CIRCULAR
visi.comOPENING!!
/msp430.
Can somebody loan me a clue on how to install msp430-jtag?
--
Grant Edwards grante Yow! I wonder if I could
at ever get started in the
visi.comcredit world?
the
installer)
Yea, it took me an embarassingly long time to notice the
makefile. I always use Makefile and my brain only looks at
the beginning of the 'ls' for makefiles now. :/
--
Grant Edwards grante Yow! I am having
On 2006-11-27, Ben Williamson b...@pobox.com wrote:
I cobbled together the attached script, works for me. This is far from
authoritative, but I hope it helps.
Thanks! I'll give it a try. I've had an ez430 laying on my desk
for months...
--
Grant Edwards grante
;// 's' is a dummy variable ... does not have to
be dummy
// this is needed to fix a bug preventing GDB to run properly (data
section
initialization problem)
--
Grant Edwards grante Yow! I'd like some JUNK
are not
permitted to generate incorrect code regardless of optimization
settings.
[1] Unless I misunderstood the C standard's requirement for
the implementation of volatile variables.
--
Grant Edwards grante Yow! When this load
want to keep RAM usage down to a reasonable value,
seems to be to use global variables everywhere possible and do
the lifetime overlapping checking in your head.
Ew.
--
Grant Edwards grante Yow! Everybody is going
On 2007-02-14, Grant Edwards gra...@visi.com wrote:
I've noticed that msp430-gcc 3.2.3 often generates
unnecessarily large frame sizes?
For example for a function containing a large switch statement,
the frame size will be the _sum_ of the frame sizes required
for each of the cases
On 2007-02-14, Grant Edwards gra...@visi.com wrote:
It's not as bad as it initially looked for this case. There's
still some unexplained frame size overhead though. I can take
a function like this which has a frame size of 32:
void foo()
{
line1;
line2;
line3;
line4;
line5
sizes
(about 25% smaller than -O2) with almost no code size penalty
compared to -O2. Frame sizes blow up pretty badly using -O3
because functions that are only called once are get inlined.
--
Grant Edwards grante Yow! I want a VEGETARIAN
- it is better to be explicit in
your source code than relying on the compiler flags chosen
when compiling.
Good point. There's nothing to prevent -O1 from deciding to
inline a function in future versions.
--
Grant Edwards grante Yow
or not. After
you've hit Ctrl-C, is the gdb-proxy process gone?
--
Grant Edwards grante Yow! Jesus is my
at POSTMASTER GENERAL...
visi.com
talking to a separate gdb process through pipes or if it's
actually linked with gdb and using it's machine-interface API.
--
Grant Edwards grante Yow! Is it FUN to be
at a MIDGET
a not quite newbee on eclipse. Do you know of a
eclipse-cdt users list that I could search or query? Or
anywhere else for that matter. I have plans to use the
cygwin/gnu/eclipse tools for an ARM project coming up fast.
Sorry -- I know pretty much zero about eclipse.
--
Grant Edwards
1 - 100 of 366 matches
Mail list logo