Maker Pro
Maker Pro

wish to store a pic *.jpg in ARM 7 ( philips LPC 2106) mcu?

E

easyarm

Jan 1, 1970
0
want to store a pic *.jpg in ARM 7 ( philips LPC 2106) mcu?

does any one has any ideas of how to do this?
 
T

Tauno Voipio

Jan 1, 1970
0
easyarm said:
want to store a pic *.jpg in ARM 7 ( philips LPC 2106) mcu?

does any one has any ideas of how to do this?

It's just binary data. Store it as any data array. The exact instructions
depend on your set-up.

How are you going to use the stored data?

HTH

Tauno Voipio
tauno voipio @ iki fi
 
E

easyarm

Jan 1, 1970
0
Tauno Voipio said:
It's just binary data. Store it as any data array. The exact instructions
depend on your set-up.

how do u convert a pic to 1/0?
How are you going to use the stored data?


I do not wish to store diskonchip but the mcu.
 
4

42Bastian Schick

Jan 1, 1970
0
want to store a pic *.jpg in ARM 7 ( philips LPC 2106) mcu?
how do u convert a pic to 1/0?

It is already. Any data (even this I am writing) is stored in 1s and
0s :)


Maybe tell us your compiler setup ?

Easy with gnu:

file: pic.S

.data
.globl my_pic
my_pic: .incbin "mypic.jpg"

No compile and link with your programs.
I do not wish to store diskonchip but the mcu.

"to store" is general. It does not necessarily need a disk.
 
M

MyArm

Jan 1, 1970
0
42Bastian Schick said:
It is already. Any data (even this I am writing) is stored in 1s and
0s :)


Maybe tell us your compiler setup ?

Easy with gnu:

file: pic.S

.data
.globl my_pic
my_pic: .incbin "mypic.jpg"

No compile and link with your programs.


"to store" is general. It does not necessarily need a disk.



can u suggest a color LCD ( smaller- I do not know about its size) that can
be connect to a philipz LPC 2106 (like Leon's schematic)?


TIA.
 
L

Leon Heller

Jan 1, 1970
0
MyArm said:
can u suggest a color LCD ( smaller- I do not know about its size) that can
be connect to a philipz LPC 2106 (like Leon's schematic)?

He's referring to my little LPC210x development board:

http://www.geocities.com/leon_heller/lpc2104.html

It shouldn't be difficult to interface a suitable LCD graphics display
and controller to the '2106 I/O.

Leon
 
E

easyarm

Jan 1, 1970
0
It is already. Any data (even this I am writing) is stored in 1s and
0s :)


Maybe tell us your compiler setup ?

Easy with gnu:

file: pic.S

.data
.globl my_pic
my_pic: .incbin "mypic.jpg"

No compile and link with your programs.
why there is no compile or link necessary?

it has to be *.hex form before loading it up to philips mcu.

correct me if I am wrong.
 
L

Leon Heller

Jan 1, 1970
0
easyarm said:
why there is no compile or link necessary?

it has to be *.hex form before loading it up to philips mcu.

correct me if I am wrong.

Only if you are uploading via the serial port. If you are using a JTAG
interface it's a standard executable created by the linker.

Leon
 
4

42Bastian Schick

Jan 1, 1970
0
No compile and link with your programs.
why there is no compile or link necessary?

Sorry, a typo I often do: Missing the 'w'

I meant: _Now_ compile and link with your program.
 
T

The Real Andy

Jan 1, 1970
0
Take a step back and analyse the problem.

I am assuming that you want to store the image(s) in ROM. Work out the size
of you image. If you have some space to throw away, store the image as a
bitmap, much easier to decode. There is plenty of programs out there that
will spin a bmp into a hex format suitable for MCU's.

If space is limited, maybe you could look at some kind of simple
compression, such as RLE. Not quite as good as jpg, but much better than
bmp. You could even manufacture your own RLE algorithm. Failing that, i
guess jpg is an option, but it will take some work to decode, unless there
is some free source available.
 
E

easyarm

Jan 1, 1970
0
The Real Andy said:
Take a step back and analyse the problem.

I am assuming that you want to store the image(s) in ROM. Work out the size
of you image. If you have some space to throw away, store the image as a
bitmap, much easier to decode. There is plenty of programs out there that
will spin a bmp into a hex format suitable for MCU's.

If space is limited, maybe you could look at some kind of simple
compression, such as RLE. Not quite as good as jpg, but much better than
bmp. You could even manufacture your own RLE algorithm. Failing that, i
guess jpg is an option, but it will take some work to decode, unless there
is some free source available.


news:[email protected]...

master student or phd student able to implement dram with arm board. I think
I should him and ask for a favour. I have brought 8M ram on chip.

that should large enought to store a web site.
 
Top