This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: STM32 ROMINT don't run
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Samuel Charnet <samcharnet at gmail dot com>
- Cc: ecos-discuss at sourceware dot org
- Date: Thu, 23 Jan 2014 17:06:12 +0000
- Subject: Re: STM32 ROMINT don't run
- Authentication-results: sourceware.org; auth=none
- References: <CACra8jX5=y1-7iRktxuvK11T8zTNBPfR38=5b57PK2EJNbQ1nA at mail dot gmail dot com> <CACra8jX2N2HkH2QnmTh+6u76bUGOT8AyGALQiSB_g0jEXhvHFA at mail dot gmail dot com>
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