This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
About bin format image output question for stm32
- From: "reille" <reille at vip dot qq dot com>
- To: "eCos Discussion" <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 26 May 2013 22:33:44 +0800
- Subject: About bin format image output question for stm32
Hi!
Now, I meet a strange question on stm32 platform. If i set CYGNUM_DEVS_SPI_CORTEXM_STM32_BUS1_BBUF_SIZE to 256 for stm32 spi driver, bin format image converted from elf format image is abnormal, its size become to 4KB. But i set CYGNUM_DEVS_SPI_CORTEXM_STM32_BUS1_BBUF_SIZE to 0, bin format image is normal and run OK.
By reading spi_stm32.c, i find the following code:
#if (CYGNUM_DEVS_SPI_CORTEXM_STM32_BUS1_BBUF_SIZE > 0)
static cyg_uint8 bus1_tx_bbuf [CYGNUM_DEVS_SPI_CORTEXM_STM32_BUS1_BBUF_SIZE]
__attribute__((aligned (2), section (".sram"))) = { 0 };
static cyg_uint8 bus1_rx_bbuf [CYGNUM_DEVS_SPI_CORTEXM_STM32_BUS1_BBUF_SIZE]
__attribute__((aligned (2), section (".sram"))) = { 0 };
#endif
I think that the code cause that can't convert the elf format image to bin format image normally. But why? and How to solve???
thinks!
reille