EmbeddedRelated.com
Forums

EEPROM Emulation

Started by jpss1277 March 21, 2010
--- In l..., tike64@... wrote:
>
> jpss1277 wrote:
> > iap_entry(command_iap,result_iap);
> > 0x00000c3c : ldr r3, [pc, #196] ; 0xd08 <$d>
> > 0x00000c40 : sub r2, r11, #40 ; 0x28
> > 0x00000c44 : sub r1, r11, #52 ; 0x34
> > 0x00000c48 : ldr r3, [r3]
> > 0x00000c4c : mov r0, r2
> > 0x00000c50 : mov lr, pc
> > 0x00000c54 : mov pc, r3
> >
> > As you can see above code does not fulfill conditions as you mentioned
> > earlier i.e.
> > > >> Check the generated assembly code at that call. It should use BX
> > or BLX to call the
> > > >> handler since the target is Thumb code. If it's a BL or a PC load,
> > that can
> > > >> explain the undefined handler.
> >
> > How can we sort it out
>
> Did you use -mthumb-interwork?
>
> http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
>
> --
>
> Timo
>

No i was not aware of it and do not know how to use it . Going through link forwarded by u
Thanks

An Engineer's Guide to the LPC2100 Series

--- In l..., tike64@... wrote:
>
> jpss1277 wrote:
> > iap_entry(command_iap,result_iap);
> > 0x00000c3c : ldr r3, [pc, #196] ; 0xd08 <$d>
> > 0x00000c40 : sub r2, r11, #40 ; 0x28
> > 0x00000c44 : sub r1, r11, #52 ; 0x34
> > 0x00000c48 : ldr r3, [r3]
> > 0x00000c4c : mov r0, r2
> > 0x00000c50 : mov lr, pc
> > 0x00000c54 : mov pc, r3
> >
> > As you can see above code does not fulfill conditions as you mentioned
> > earlier i.e.
> > > >> Check the generated assembly code at that call. It should use BX
> > or BLX to call the
> > > >> handler since the target is Thumb code. If it's a BL or a PC load,
> > that can
> > > >> explain the undefined handler.
> >
> > How can we sort it out
>
> Did you use -mthumb-interwork?
>
> http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
>
> --
>
> Timo
>
I had gone through link and find it difficult to now as to how i can implement it in my gcc eclipse framework
Please help
Vinay