#5 Init code for codesourcery/gcc

closed
nobody
None
5
2010-06-08
2010-06-02
Petter
No

I've tried to get fnet to compile under Linux using the codesourcery/gcc compiler and linker.

I've managed to do some minor modifications to be able to compile a very simple program. The next step is to link and test the program (my target is 52235).

In my linker script I need to specify some startup code. Previously I've used cf-crt0-flash.o, but I can't seem to find anything similar to cf-crt0-flash.S in the fnet distribution. So where can I find the init code (setting up flashbar, fsys, etc prior to jumping to main) which is supposed to be used by fnet?

Also can the documentation easily be generated as pdf in addition to the windows chm format?

Discussion

  • Andrey Butok
    Andrey Butok
    2010-06-02

    Hi,

    FNET by itself does not have system start-up code.
    But FNET demo applications uses init code generated by CW, which you can find in startcf.c =>asm void _startup(void)

    >> Also can the documentation easily be generated as pdf in addition to the windows chm format?
    You can use Doxygen to generate to any other supported format. For example to HTML.

    Best Regards,
    Andrey

     
  • Petter
    Petter
    2010-06-08

    Thanks! Can the CW code be used with other compilers ore are there any legal restrictions?

     
  • Petter
    Petter
    2010-06-08

    BTW I managed to produce a PDF manual from doxygen/latex. Again thank you for your help.

     
  • Petter
    Petter
    2010-06-08

    • status: open --> closed
     
  • Andrey Butok
    Andrey Butok
    2010-06-09

    >>Can the CW code be used with other compilers ore are there any
    >>legal restrictions?

    No legal restrictions. Only LGPL.