Saturday, 15 May 2010

c - Can I run a program from a SD memory instead of flash on an evaluation board (embedded programming)? -



c - Can I run a program from a SD memory instead of flash on an evaluation board (embedded programming)? -

i have evaluation board (olimex stm32-p103) supports sd-card connector. want set programme in sd memory instead of internal flash of micro-controler; , run there. don't know if possible according boot-loader issue!

p.s goal running linux on board , port application on it.

to run programs sd-card in general should know can't run them "right away". means, have load in executable memory somewhere in address space done (more or less) simple bootloader. in simplest instance, bootloader capable read sd-card specific binary , re-create memory.

that beingness said should think considering got 20k of ram , 128k of flash on board. should programme go? or better: why not flashing programme in 128k of flash beginning? should know linux bit "hungry" in terms of memory.

if goal run "normal" linux on board, i'm afraid you're screwed. because know linux needs mmu run , chip on board not provide 1 (as far researchable without access datasheets st).

if you're lucky can go uclinux. i'm not sure if finished port exists stm32 seems there resources based on short google search "stm32 uclinux". if manage run uclinux i'm afraid there's not much left in scheme application, result might bit disappointing.

depending on why looking linux running on mcu, there maybe other solutions freertos in combination lwip-stack (if networking needed) or fat library fullfat if looking reading sd-cards , stuff.

edit: 1 thing i'd add together booting sd-card typically "bigger" (not much slightly) systems have plenty ram maintain whole image you'd run in , still have space left info want process.

c embedded embedded-linux microcontroller bootloader

No comments:

Post a Comment