Skip to content
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

MAX11300 does not seem to understand transaction complete on the 1st device when using a non-default GPIO for select #598

Open
Electro-Jam opened this issue Dec 8, 2023 · 0 comments

Comments

@Electro-Jam
Copy link

MAX11300 transmitting only once and it looks like the driver may not be understanding that the transaction completed.

In a new hardware build I moved my SPI chip select to a different GPIO pin. In looking at the initial transaction (see attached image) the first set of data looks correct. After that the driver is retuning an error. To me, it looks like the SPI DMA transfer does not understand that the transaction completed.

My pin setup:

  1. I am using the Daisy DFM device
  2. Here is the pin setup for all the ports:

MOSI: C4 / PA7
MISO: C2 / PA6
SCK: C9 / PA5
Select: C1 / GPI16 / PA3
3) Here is my code setup:

    max11300_config.Defaults();
    max11300_config.transport_config.pin_config.miso.port = DSY_GPIOA;
    max11300_config.transport_config.pin_config.miso.pin  = 6;
    max11300_config.transport_config.pin_config.mosi.port = DSY_GPIOA;
    max11300_config.transport_config.pin_config.mosi.pin  = 7;
    max11300_config.transport_config.pin_config.sclk.port = DSY_GPIOA;
    max11300_config.transport_config.pin_config.sclk.pin  = 5;
    max11300_config.transport_config.pin_config.nss->port = DSY_GPIOA;
    max11300_config.transport_config.pin_config.nss->pin  = 3;
    max11300_config.transport_config.baud_prescaler = daisy::SpiHandle::Config::BaudPrescaler::PS_2;
    volatile MAX11300Types::Result ret;

I'll continue to dig further into the code, but it seems as though the DMA controller may not be understanding that the completion happened.

Here is the image of the first and only transaction:
image

Note: I have also posted this on Discord:
https://discord.com/channels/1037767234803740694/1039306406190403594/1182702470640713759

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant