I followed a bit the problem with the SPI bus and I reached to find
where I have the first problem:
1) In the shell: spi bus gives me that the BUS 2 is available
2) I launch "spi -b2 -x4 aabbccdd" and I pass through the following files:
apps/system/spi/spi_exch.c -> apps/system/spi/spi_devif
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
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
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
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
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