On 17.11.2014 13:05, Rolf Schroder wrote:
> Dear All,
> 
> I am trying to compile a firmware for the STM8L. I used STVD & Cosmic
> (compiler) but want to switch to sdcc. I had made some small code
> changes to get everything running and I feel it's compiling correctly. I
> am using the following cmd to compile:
> 
>  sdcc -lstm8 -mstm8 -I inc -I ../../Source/inc -I
> ../../Libraries/STM8L15x_StdPeriph_Driver/inc -I
> ../../Libraries/STM8L-discovery_Libraries/inc -D STM8L15X_MD -D __CSMC__
> --opt-code-size --disable-warning 126 src/main.c
>

I see -I options for the include files of the STM8L libraries. But I
don't see the librries themselves. Assuming it is
in./../Libraries/STM8L-discovery_Libraries/STM8LD.lib you would just add
that after src/main.c on the command line.

Philipp

> So, to sum up:
> #1 Does anyone know about this problems and how to deal with it?

It seems the library is missing on the command line.

> #2 I don't know whether I can flash my MCU and just check if it still
> works (as I said, I am inexperienced and I fear to damage the chip with
> a faulty firmware)

I don't think You can damage the chip. It never happened to me. But I
never really thought about the possibility either. I guess as long as
You only write the flash and not the option ROM You should be on the
safe side.
> #3 I am not sure, whether I need to use packihx or not. The sdcc manual
> states the the default output is already the Intel Hex format (which I
> used previously).

I never used any additional tool on sdcc stm8 output. The .ihx was fine
for me.

Philipp


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&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