Thanks Alan, but the main problem is that this test gives me an error by
the execution on my STM32F7 nucleo-144 board...
nsh> spi exch -b 2 -x 4 aabbccdd
Seup_assert: Assertion failed at file:armv7-m/arm_hardfault.c line: 174
arm_registerdump: R0: 00000000 R1: 2001a334 R2: 00000001 R3: 00002201
arm_registerdump: R4: 00000000 R5: 00002201 R6: 2004f774 FP: 2004f770
arm_registerdump: R8: 2001a380 SB: 00000005 SL: 2001a358 R11: 2001a35c
arm_registerdump: IP: 00000018 SP: 2001a2b0 LR: 08016f63 PC: 0801700c
arm_registerdump: xPSR: 61000000 PRIMASK: 00000000 CONTROL: 00000000
arm_registerdump: EXC_RETURN: ffffffe9
arm_dump_stack: User Stack:
arm_dump_stack: sp: 2001a170
arm_dump_stack: base: 20019c70
arm_dump_stack: size: 000007c8
arm_stackdump: 2001a160: 20019c70 2001a170 20011d50 0801b447 00000000
00000000 0801700c 00000000
arm_stackdump: 2001a180: 00000000 08021224 0801700a 080236b8 2004f774
2004f770 2
....
BR
Roberto
On 3/4/22 12:29, Alan Carvalho de Assis wrote:
Hi Roberto,
We have the SPI Tool that does exactly what you want:
Application Configuration --->
System Libraries and NSH Add-Ons --->
[*] SPI tool --->
BR,
Alan
On 3/4/22, Roberto Bucher <roberto.buc...@supsi.ch> wrote:
Hi
where can I found a simple example that send n bytes to the SPI and
receive m bytes?
I can now see the /dev/spi but using simple methods like open and write
doesn't give me any signal on the bus...
Thanks in advance
Roberto