Hi,

I set the config register in the software programmer, i've choosen the same 
config for the sdcc et mikroC .hex.

However, I forgot to mention that I have those warning during the build :

sdcc -mpic14 -p16f872 --use-non-free test2.c    
test2.asm:145:Message[312] Page or Bank selection not needed for this device.  
No code generated.
message: using default linker script "/usr/local/share/gputils/lkr/16f872_g.lkr"
warning: relocation of section "UDL_idata_0" failed, relocating to a shared 
memory location
warning: relocation of section "ID_idata_0" failed, relocating to a shared 
memory location

I think I read somewhere that this should not be a problem, but is this really 
ok ? I'm not sure to understand those warnings.

Le 22 janv. 2014 à 22:56, Joel Davidson a écrit :

> Ael-
> 
> It looked like your source code was missing the config register
> information, which sets up the internal oscillator, reset operation,
> etc.  Perhaps the other compiler did that automatically?
> 
> Joel
> 
> On Wed, 22 Jan 2014, it would appear that Ael Gain wrote:
> 
>> Thanks for your quick answer!
>> 
>> Actually I tried to simulate the sdcc .cod file with gpsim and it worked ok.
>> I also tried to compare .hex files with gpdasm but couldn't find what can be 
>> wrong with the sdcc's one.
>> I guess I should give it another try.
>> 
>> Is there any tools that simulate PIC's behaviour from .hex files ?
>> I mean a tool that shows content of registers and memory at a particular 
>> point of the program, and the flow of executed instructions ?
>> For my simple program i'll try to do it by hand, but for larger program it 
>> could be usefull.
>> 
>> thx !
>> 
>> Le 22 janv. 2014 ? 22:11, Bodo Wenzel a ?crit :
>> 
>>> Hi Ael,
>>> 
>>> Assuming that you are trying to gain some experience, I'd recommend to
>>> look into the assembler listings of both programs. If there is no
>>> listing you have to disassemble.
>>> 
>>> Armed with the datasheet you will be able to investigate the problem.
>>> 
>>> Good luck!
>>> Bodo
>>> 
> 
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today. 
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to