really really tiny code
Hi all
Ref: 8266 based custom PMC addin card
I want a .bin file which is less than 5 kilobytes.
This will go into my processor's DRAM, live there and execute from there.
I want to write a really tiny program - just init core, MMU and stop. Preferably, (if possible) I would like to start out with a blank file, type in the code, and give the compile command at the good old command prompt.
Is it possible? If yes, can anyone please tell me the command? Would any other files (.lds, etc) be necessary? What else will be required?
I need a micro development environment like this from where I can do all my work out of the cosy little (really limited, I know) DPRAM, and try out some experiments with the processor's registers and config. I might even be adventurous and try initializing the ports and glowing some LEDs :-)
What do I do? How do I proceed? Please help.
Regards,
Nishant
Quoted 7 lines · In message <[email protected]> you wrote:
I want to write a really tiny program - just init core, MMU and stop. Preferably, (if possible) I would like to start out with a blank file, type in the code, and give the compile command at the good old command prom= pt.
Is it possible? If yes, can anyone please tell me the command?
Yes, it is poossible. You will need more than one command, at least "vi" and "ppc_82xx-gcc".
Quoted 1 line
Would any other files (.lds, etc) be necessary? What else will be required?
Yes, you will most probably need a linker script.
One of the most important requirements is an in-depth understanding of your hardware environment and how to write software for it.
Quoted 7 lines
I need a micro development environment like this from where I can do all my work out of the cosy little (really limited, I know) DPRAM, and try out some experiments with the processor's registers and config. I might even be adventurous and try initializing the ports and glowing some LEDs :-)
What do I do? How do I proceed? Please help.
U-Boot includes all the init stuff you will probably re-0invent, so feel free to copy and re-use this code (and make your program available under GPL), but please understand that you are on your own with such a project.
Sorry, but this is off topic here.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A year spent in artificial intelligence is enough to make one believe in God.