[ECOS] Re: STM32 ROMINT don't run
John Dallaway
john@dallaway.org.uk
Thu Jan 23 17:06:00 GMT 2014
Hi Samuel
On 22/01/14 17:24, Samuel Charnet wrote:
> I want to try the ecos OS. My board come from waveshare, it is based
> on stm32f407ig core ( http://www.wvshare.com/product/EVK407I.htm )
>
> After some days I have ecos from CVS compiled. With the configtool I
> have created my library with the stm3240 template and i have modified
> the startup type to ROMINT
>
> I have a simple thread which blink a led. I can upload the binary file
> to the stm32 (i use the last openocd from source and olimex
> arm-usb-ocd-h jtag device)
>
> Unfortunately the led don't blink. With gdb i can't break on any
> function and the stack seems broken.
You may be observing the following issue:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001864
Try modifying hal/cortexm/arch/current/src/hal_misc.c to read as follows:
> #if defined(CYG_HAL_STARTUP_ROM) || defined(CYG_HAL_STARTUP_ROMINT)
> // Relocate data from ROM to RAM
Does that resolve the issue for you?
John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list