Skip to content

FRDM-K64F and MCR-20A configuration does not work #10967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
finikorg opened this issue Oct 31, 2018 · 5 comments
Closed

FRDM-K64F and MCR-20A configuration does not work #10967

finikorg opened this issue Oct 31, 2018 · 5 comments
Assignees
Labels
area: SPI SPI bus bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug

Comments

@finikorg
Copy link
Collaborator

Since some DTS stuff was changed I cannot use FRDM-K64F and MCR-20A

Errors are:

...
[00:00:09.123,543] <dbg> ieee802154_mcr20a.mcr20a_abort_sequence: CTRL1 0x39
[00:00:09.123,611] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.123,701] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.123,792] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.216,506] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.216,891] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.216,980] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.217,067] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.217,155] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.220,069] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.220,157] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.220,245] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.220,304] <dbg> ieee802154_mcr20a._irqsts1_event: Finished TxSeq
[00:00:09.220,309] <dbg> ieee802154_mcr20a.mcr20a_thread_main: WB: 0x0b | 0x00 | 0xf0
[00:00:09.220,380] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.220,468] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.220,556] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.333,849] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.333,937] <inf> spi_mcux_dspi.spi_context_cs_configure: CS control inhibited (no GPIO device)
[00:00:09.333,968] <err> ieee802154_mcr20a.mcr20a_tx: Timeout occurred, -11
[00:00:09.333,970] <err> wpanusb.tx: Error sending data, seq 44
...
@finikorg finikorg added area: ARM ARM (32-bit) Architecture platform: NXP NXP labels Oct 31, 2018
@nashif nashif added the bug The issue is a bug, or the PR is fixing a bug label Nov 2, 2018
@finikorg
Copy link
Collaborator Author

finikorg commented Nov 5, 2018

@jfischer-phytec-iot have you tried this driver recently?

@finikorg finikorg added the area: SPI SPI bus label Nov 6, 2018
@galak galak added the priority: low Low impact/importance bug label Nov 20, 2018
@jfischer-no jfischer-no self-assigned this Dec 4, 2018
@jfischer-no
Copy link
Collaborator

I have looked at it and I found a few minor bugs in mcr20a driver but there is one ugly bug that I have been trying to find for a long time. It almost hits somewhere in spi_mcux_dspi and appears only in a configuration with mcr20a + ieee802154 + frdm_k64f. For example a have a build where spi driver drops first octet in the transfer (spi_mcux_dspi.spi_mcux_transfer_next_packet: Transfer could not start), same configuration works fine with a additional LOG_ERR in spi_mcux_transfer_next_packet.

@jfischer-no
Copy link
Collaborator

jfischer-no commented Dec 6, 2018

Update: depending on the build, the bug manifests as spi_mcux_dspi.spi_mcux_transfer_next_packet: Transfer could not start. I have debugged it for a while and with a breakpoints in spi_mcux_master_transfer_callback, the error will no longer occur. The bug also disappears if SPI clock is set to 1MHz or bus clock to 20MHz.

@galak galak removed the area: ARM ARM (32-bit) Architecture label Feb 14, 2019
@galak
Copy link
Collaborator

galak commented Mar 26, 2019

@jfischer-phytec-iot can you see if this is still an issue.

@jfischer-no
Copy link
Collaborator

tested with samples/net/wpanusb and samples/net/sockets/echo_server, can not reproduce the issue with current master, close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: SPI SPI bus bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants