* [ECOS] About bin format image output question for stm32
@ 2013-05-26 14:33 reille
0 siblings, 0 replies; only message in thread
From: reille @ 2013-05-26 14:33 UTC (permalink / raw)
To: eCos Discussion
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-26 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-26 14:33 [ECOS] About bin format image output question for stm32 reille
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).