Replies: 1 comment
-
Hello, I discovered the can bus use the same SPI bus of the Arduino header on the lpcxpresso55s06 board. Also the JP9 has to be installed to isolate the SPI signals coming from the ISP companion MCU. The sample finnaly works onto the target board and MCU. Thank you and sorry for the noise. F. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Target MCU is NXP LPC55S06JBD64
Introduction
I wanted to test the sample "lora_send" using the shield SX1261MB1BAS.
Zephyr supports similar shield SX1262MB2DAS which is electrically compatible.
I mounted the SX1261MB1BAS shield on 2 different Nordic semi. DK boards and the sample code works perfectly.
LoRa packets are transmitted and received at the other side running the "lora_receive" sample.
Testing LoRa sample with board Lpcxpresso55s69
Zephyr has working implementation of HS SPI bus for NXP Lpcxpresso55s69.
I prepared a custom board overlay, flashed the LoRa sample and it works, LoRa packets get transmitted.
The target board: Lpcxpresso55s06
Zephyr supports this board but the features enabled are reduced.
SPI bus implementation is not available but driver "nxp,lpc-spi" is.
The board mounts the target MCU: NXP LPC55S06JBD64.
What I tried:
I tried to enable the SPI bus following the configs files of Lpcxpresso55s69.
I did some copy/paste and added a new board overlay file.
I flashed the sample on board Lpcxpresso55s06 but no success, there is still something missing.
With a logic analyzer I tested the pins MOSI and SCK of Lpcxpresso55s06 but they are disabled.
The reset line to sx1261 stay always at LOW level. Looks like the SPI bus is not enabled.
sx126x Zephyr driver doesn't report any SPI bus error.
It follows the interfacing procedure but nothing happens at pins level.
You can read below into the debug console output: the readings from sx1261 are always 00h.
so, SPI bus looks like is not working at all.
Can you please review my work and files below to see if I need to add or modify something?
Thank you so much everybody.
command to build:
west build -p always -b lpcxpresso55s06 .
Build process output:
board overlay file boards/lpcxpresso55s06.overlay:
prj.conf:
build/zephyr/zephyr.dts
include/zephyr/dt-bindings/inputmux/inputmux_trigger_ports.h
Serial terminal output:
Beta Was this translation helpful? Give feedback.
All reactions