EmbeddedRelated.com
Forums

IO mapping

Started by faraz_naqvi February 10, 2009
Hi ,

I have been working with H8sx1657 processor with hitachi compiler, now i
have switched to GNU compiler , i have compiled the same project but when i
wanted to transfer using emulator it give "NOT ENOUGH MEMOPRY" message  ,
then i change address for .data section then .X file tranfer succefully ,
after that i want to make port as output but the problem is DDR register is
not update , and remain 0x00, and also if i execute program by clicking GO
button then nothing hapen when i stop the program i alway find  program
counter on INT_CPU_ADdres  in file IntPRG.c file.

i dont know why ??  any idea 

may be IO mapping is not wright which cause error.only DDR register is not
update of any port..........

 


On Tue, 10 Feb 2009 09:43:58 -0600, faraz_naqvi wrote:

> Hi , > > I have been working with H8sx1657 processor with hitachi compiler, now i > have switched to GNU compiler , i have compiled the same project but > when i wanted to transfer using emulator it give "NOT ENOUGH MEMOPRY" > message , then i change address for .data section then .X file tranfer > succefully , after that i want to make port as output but the problem is > DDR register is not update , and remain 0x00, and also if i execute > program by clicking GO button then nothing hapen when i stop the program > i alway find program counter on INT_CPU_ADdres in file IntPRG.c file. > > i dont know why ?? any idea > > may be IO mapping is not wright which cause error.only DDR register is > not update of any port..........
(Absolutely no insult intended, but you need this) http://www.powells.com/partner/30696/biblio/0143112724. (And I don't think they mention it in EOS, but you should always, always capitalize your 'I's unless you're trying to make a point, like ee cummings. Figure that you don't have the standing to make the point unless you're at least as good as him.) In general, either because the emulator you're using isn't a good fit to the Gnu tools, because the tools build to a bigger image, or because your linker command file isn't set up to match your chip. This kind of thing can take _lots_ of screwing around before you get it right. I'd suggest that you take a close look at the linker command file and make sure that the memory map implied therein matches the actual memory map of your chip. You should also check to see if the emulator needs to have some memory reserved for its operation. What is the IntPRG.c file? If it's a file for default interrupt routines, you may have a fault that's sending you there -- see what the fault is, and start winding backwards. -- http://www.wescottdesign.com
In article <LLOdneq4jrgaKQzUnZ2dnUVZ_sninZ2d@web-ster.com>, 
tim@seemywebsite.com says...
> On Tue, 10 Feb 2009 09:43:58 -0600, faraz_naqvi wrote: > > > Hi , > > > > I have been working with H8sx1657 processor with hitachi compiler, now i > > have switched to GNU compiler , i have compiled the same project but > > when i wanted to transfer using emulator it give "NOT ENOUGH MEMOPRY" > > message , then i change address for .data section then .X file tranfer > > succefully , after that i want to make port as output but the problem is > > DDR register is not update , and remain 0x00, and also if i execute > > program by clicking GO button then nothing hapen when i stop the program > > i alway find program counter on INT_CPU_ADdres in file IntPRG.c file. > > > > i dont know why ?? any idea > > > > may be IO mapping is not wright which cause error.only DDR register is > > not update of any port.......... > > (Absolutely no insult intended, but you need this) > http://www.powells.com/partner/30696/biblio/0143112724. > (And I don't think they mention it in EOS, but you should always, always > capitalize your 'I's unless you're trying to make a point, like ee > cummings. Figure that you don't have the standing to make the point > unless you're at least as good as him.) > > In general, either because the emulator you're using isn't a good fit to > the Gnu tools, because the tools build to a bigger image, or because your > linker command file isn't set up to match your chip. > > This kind of thing can take _lots_ of screwing around before you get it > right. I'd suggest that you take a close look at the linker command file > and make sure that the memory map implied therein matches the actual > memory map of your chip. You should also check to see if the emulator > needs to have some memory reserved for its operation. > > What is the IntPRG.c file? If it's a file for default interrupt > routines, you may have a fault that's sending you there -- see what the > fault is, and start winding backwards.
I wonder who it is as I have had several direct email questions from a very similar name faraz_63@hotmail.com and gave them a lot of pointers so I wonder if they actually are listening or just another student expecting an instant fix to "it doesn't work". -- Paul Carpenter | paul@pcserviceselectronics.co.uk <http://www.pcserviceselectronics.co.uk/> PC Services <http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font <http://www.gnuh8.org.uk/> GNU H8 - compiler & Renesas H8/H8S/H8 Tiny <http://www.badweb.org.uk/> For those web sites you hate