Error when reading FIO1PIN on LPC23xx

OP #1458500
Rate this post
• ▲ useful
▼ not useful
Hi,

I build my own toolchain, but I ran into a problem, both when using the 
toolchain on cygwin and mingw (tried building both, same error).

Basically the toolchain works fine, but when I debug using 
Openocd+arm-elf-gdb. I can't read FIO1PIN or FIO1XXX for that matter 
without having the value of those registers corrupted. I can read and 
write any other register without a problem, and the code interacts with 
those registers just fine.

The problem arises when reading the registers using the the debugger. No 
matter if I use the GUI like "add to watch" in insight or eclipse, this 
also happens if I try to read the memory area using eclipse or insight 
memory view. Or in the gdb console using "monitor mdw FIO1PIN".

I am using gcc 4.4.2, gdb 7, newlib 1.17 and insight 7. This also 
happens if I switch my toolchain to YAGARTO. Has anyone run into this 
issue before?. Can anyone reproduce this?.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.