Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | Converting filesystem to ".C" prog file

There are 19 messages in this thread.

You are currently looking at messages 10 to 19.

Re: Converting filesystem to ".C" prog file - =?iso-8859-1?q?Michael_Kr=E4mer?= - 11:49 02-11-05

> That's immensely kind of you.
  My pleasure...

> I don't know C++ but the files convert very nicely.
  Neither do I. It is all Ansi C.

> I will try a bit of tinkering.  I see you can select multiple
> source files and that you used Watcom.
  Yes, because it is free. I also consider the tools very reliable and
the debugger is straightforward to understand. Only the resource editor
is a bit weird and unstable, but maybe I'm using it in a wrong way.




Re: Converting filesystem to ".C" prog file - =?iso-8859-1?q?Michael_Kr=E4mer?= - 11:58 02-11-05

I made a common mistake: I forgot to include some files, which are
required for compiling the project. They are in different folders on my
PC, namely "include" and "lib". Please find the missing files at
http://www.qsl.net/dk8pp/downloads/supplement.zip


Re: Converting filesystem to ".C" prog file - Fred - 13:24 02-11-05

"Michael Krämer" <m...@yahoo.com> wrote in message 
news:1...@g47g2000cwa.googlegroups.com...
>I made a common mistake: I forgot to include some files, which are
> required for compiling the project. They are in different folders on my
> PC, namely "include" and "lib". Please find the missing files at
> http://www.qsl.net/dk8pp/downloads/supplement.zip
>

Many thanks - only just downloaded Watcom!



Re: Converting filesystem to ".C" prog file - 09:19 03-11-05

Fred wrote:

> I need to convert a number of files which contain data to a C program
> file.
> 
> I have come across a perl script which is meant to do this.  However it
> doesn't work with perl in the recent version of Cygwin.
> 
> Does anyone have anything which can help or point me in the right
> direction?
in one of the demo projects following freertos there is a perl script doing
what you ask i think, it is called makefsdata.

It is a collegue that used this just helped him with some cygwin perl, so I
haven't any URL for you, but google will help you.

-- 
Med venlig hilsen/mojn/regards
Martin Hansen
Center for Software Innovation
Stenager 2, DK-6400 Sønderborg, Web: www.cfsi.dk

Re: Converting filesystem to ".C" prog file - Stef - 09:26 03-11-05

In comp.arch.embedded,
Fred <f...@nowhere.com> wrote:
>I need to convert a number of files which contain data to a C program file.
>
>I have come across a perl script which is meant to do this.  However it 
>doesn't work with perl in the recent version of Cygwin.
>
>Does anyone have anything which can help or point me in the right direction? 
>
Do you really need the C file or just need the data? If the later, objcopy
can copy a binary input to elf or other output that you then can link with
your application. It creates symbols for start end and size of the date that
you can just pick up in your C program. This is how I link some pictures with
my code.


-- 
Stef    (remove caps, dashes and .invalid from e-mail address to reply by mail)

knowledge, n.:
	Things you believe.

Re: Converting filesystem to ".C" prog file - Dan - 18:12 07-11-05

"Fred" <f...@nowhere.com> wrote in
news:436768d7$0$23280$d...@news.zen.co.uk: 

> I need to convert a number of files which contain data to a C program
> file. 
> 
> I have come across a perl script which is meant to do this.  However
> it doesn't work with perl in the recent version of Cygwin.
> 
> Does anyone have anything which can help or point me in the right
> direction? 

google for a program named bin2c
there are a million (ok, a few dozen) that are all available as source
and various developers pages. One of them should work or you can easily 
modify to suit your needs. 


-- 
dan 

Re: Converting filesystem to ".C" prog file - Fred - 12:05 09-11-05

"Dan" <dan@i_am_spam.net> wrote in message 
news:Xns9707B9285F9F8RhubarbIsRed@216.196.97.136...
> "Fred" <f...@nowhere.com> wrote in
> news:436768d7$0$23280$d...@news.zen.co.uk:
>
>> I need to convert a number of files which contain data to a C program
>> file.
>>
>> I have come across a perl script which is meant to do this.  However
>> it doesn't work with perl in the recent version of Cygwin.
>>
>> Does anyone have anything which can help or point me in the right
>> direction?
>
> google for a program named bin2c
> there are a million (ok, a few dozen) that are all available as source
> and various developers pages. One of them should work or you can easily
> modify to suit your needs.
>
>
> -- 
> dan

Google found 22,000 sites!  Many thanks.



Re: Converting filesystem to ".C" prog file - 04:51 11-11-05

You can use Microchip MPFS(Microchip Pic File System). This is will
convert your data files (*.*) to C file/ .Bin file. You can download
MPFS in http://www.microchip.com .


Re: Converting filesystem to ".C" prog file - Fred - 09:58 11-11-05

<g...@gmail.com> wrote in message 
news:1...@g49g2000cwa.googlegroups.com...
> You can use Microchip MPFS(Microchip Pic File System). This is will
> convert your data files (*.*) to C file/ .Bin file. You can download
> MPFS in http://www.microchip.com .
>

I had downloaded MCHPStack already but didn't realise it had MPFS within it.

Many thanks.



previous | 1 | 2