SPI rom driver - RX buffer and Data Length

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI rom driver - RX buffer and Data Length

1,375件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DAMEK on Wed Jun 11 06:02:40 MST 2014
Hey team,

i using your periph_spi_rom_interrupt project in lpcOpen version 2.08b

if i use the 16bit data length option all works fine.
now i want to reduce the length to 8 bit (SPI_PARAM_T.fsize_sel from 0x0F0xxxxx to 0x070xxxxx) reference to uml10736 - page 402

and the total number of SPI Transfers *2 (e.g. for 2 bytes =>SPI_PARAM_T.size from 1 to 2)  but the rx buffer only have the last / highest 8 bit from the transfered 16 bit.

does anyone have an idea? i think, the rom driver is only for 16 bit transfers.

PS: i want to use the 8 bit mode for ungrade transfers. e.g. 9 byte or 3 byte. until a response arrives i try the dma spi rom mode :)

and what detailed function have the function "pSpiApi->spi_get_mem_size()" is that mem only for code or also for buffers?


greatings.
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,333件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DAMEK on Tue Jun 17 15:27:14 MST 2014
thanks for this fast answer!

This is my fault. I wanted a char array passed (from space / operations reasons).
it may be that the pointer is incremented until the transfer length and then jumps to startpointer of array + i * 16?

excuse my stupid question.
0 件の賞賛
返信

1,333件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Tue Jun 17 11:33:00 MST 2014
HI,
The ROM example should work. and

Quote:
and what detailed function have the function "pSpiApi->spi_get_mem_size()" is that mem only for code or also for buffers?



pSpiApi->spi_get_mem_size()" allocates number of bytes in the RAM  for spi control block
0 件の賞賛
返信

1,333件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DAMEK on Tue Jun 17 10:46:08 MST 2014
hey,

can nobody help me or is my question unclear?

I tried it with the non rom examples but this ends in a hardfault.

greatings
0 件の賞賛
返信