[ECOS] Redboot EB40a problems with flash programming

Øyvind Harboe oyvind.harboe@zylin.com
Thu May 22 14:41:00 GMT 2003


>> ecosconfig new eb40a
>> ecosconfig import 
>> $ECOS_REPOSITORY/hal/eb40a/current/misc/redboot_ROM.ecm
>> ecosconfig tree
>> make
>
>A Guess: You cannot execute from Flash which you do flash 
>operations like writer/erase. So the flash code copies 
>itself into RAM and then executes from RAM. Maybe this 
>copying is somehow disabled.
>
>Check what is going on with CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM 
>and similar CDL.

Should redboot_ROM.ecm have set this to true?

I suppose I could create an additional .ecm file:


cdl_option CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM {
	user_value 1
}

# While I'm at it I also want... 
cdl_component CYGSEM_REDBOOT_FLASH_CONFIG {
    user_value 1
};


This is from the ecos.ecc that my build instructions above
created:


# Hardware FLASH device drivers are not in RAM
# This option makes the IO driver copy the device
# driver functions to RAM before calling them. Newer
# drivers should make sure that the functions are
# linked to RAM by putting them in .2ram sections.
#
cdl_interface CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM {
    # No options implement this inferface
    # This value cannot be modified here.
    # Flavor: booldata
    # Current value: 0 0
};


Øyvind


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list