This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]