Re: SPI Example

2022-03-04 Thread Alan Carvalho de Assis
Hi Roberto, Enable the DEBUG ASSERTION to see where the crash is happening? What you get when you run: nsh> spi bus Maybe you passing an invalid bus number. BR, Alan On 3/4/22, Roberto Bucher wrote: > Thanks Alan, but the main problem is that this test gives me an error by > the execution o

Re: SPI Example

2022-03-04 Thread Roberto Bucher
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: R1: 2001a334 R2: 0001  R3: 2201

Re: SPI Example

2022-03-04 Thread Alan Carvalho de Assis
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 wrote: > Hi > > where can I found a simple example that send n bytes to the SPI and > rece

Re: SPI Example

2022-03-04 Thread Simon Filgis
Hi Roberto, maybe Lup's article can help: https://lupyuen.github.io/articles/spi2 Which platform do you use? Simon -- Hard- and Softwaredevelopment Consultant Ingenieurbüro-Filgis USt-IdNr.: DE305343278 On Fri, Mar 4, 2022 at 8:41 AM Roberto Bucher wrote: > Hi > > where can I found a simpl