Search found 12 matches

by error414
Sun Mar 07, 2021 12:33 pm
Forum: Bug Reports
Topic: wspiReceive called twice, no cleared NDTR register
Replies: 11
Views: 14167

Re: wspiReceive called twice, no cleared NDTR register

Hi,

confirmed, the fix #1147 solves the issue.

Thank you very much.
Petr
by error414
Fri Mar 05, 2021 3:27 pm
Forum: Bug Reports
Topic: wspiReceive called twice, no cleared NDTR register
Replies: 11
Views: 14167

Re: wspiReceive called twice, no cleared NDTR register

I'm so sorry for screenshots, it's not possible to copy whole register list

Screenshots are captured after first call "wspiReceive(&WSPID1, &mode, 3, buffer1);"

(two screenshots for DMA2, one for QSPI)

BTW: I use DMA2 Channel2
#define STM32_WSPI_QUADSPI1_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
by error414
Thu Mar 04, 2021 12:15 pm
Forum: Bug Reports
Topic: wspiReceive called twice, no cleared NDTR register
Replies: 11
Views: 14167

Re: wspiReceive called twice, no cleared NDTR register

Thank you very much for comment FXCoder. Unfortunately the patch does't work me because "wspi_lld_serve_dma_interrupt" is not never called. Flags for enable DMA interupt are set to 0x0; There are enabled only flags for DMA error interrupts.

I can post all values from registers if needed.
by error414
Tue Mar 02, 2021 12:16 pm
Forum: Bug Reports
Topic: wspiReceive called twice, no cleared NDTR register
Replies: 11
Views: 14167

Re: wspiReceive called twice, no cleared NDTR register

Small progress.

It started to work when I added "dmaStreamClearInterrupt(wspip->dma);". I'm not sure whether it's right solution, but it works


--- a/ChibiOS/os/hal/ports/STM32/LLD/QUADSPIv1/hal_wspi_lld.c (revision 2bf5987875f11e02acc4f20eda412fabe7f6dafc)
+++ b/ChibiOS/os/hal/ports/STM32 ...
by error414
Sun Feb 28, 2021 7:04 pm
Forum: Bug Reports
Topic: wspiReceive called twice, no cleared NDTR register
Replies: 11
Views: 14167

wspiReceive called twice, no cleared NDTR register

Hi Giovanni,

I play with WSPI and I noticed weird issue. If I call twice wspiReceive(), then NDRT register for DMA is not cleared.

Simple code for test:


#include "ch.h"
#include "hal.h"

int main(void) {
halInit();
chSysInit();
wspiStart(&WSPID1, &config);

/* NCSS ...
by error414
Sun Feb 21, 2021 2:14 pm
Forum: General Support
Topic: Shell chThdCreateFromHeap + SPI does not work
Replies: 2
Views: 5365

Re: Shell chThdCreateFromHeap + SPI does not work

OMG, it's a such good support. Thank you very much to explain, I will keep shell static. No big deal.
by error414
Sun Feb 21, 2021 11:30 am
Forum: General Support
Topic: Shell chThdCreateFromHeap + SPI does not work
Replies: 2
Views: 5365

Shell chThdCreateFromHeap + SPI does not work

Hi Giovanni,

I tried call "spiSend(&SPID4, 1, &data);" from shell command function, but it does not work.

static void cmd_spitest(BaseSequentialStream *chp, int argc, char *argv[]) {
uint8_t data = 0x0b;
spiSelect(&SPID4);
spiSend(&SPID4, 1, &data);
spiUnselect(&SPID4);
}

I noticed ...
by error414
Thu Feb 04, 2021 9:05 pm
Forum: Development and Feedback
Topic: [NOTES] Multi Core support
Replies: 32
Views: 42268

Re: [NOTES] Multi Core support

Hi Giovanni,

I would like to ask you if multicore is supported curretly. I noticed mention about new RT7 branch, unfurtunately I don't see it in github. I bought new nucleo with H745, it's M7 - M4 multicore CPU.

I know that priority is new Pico board, just I would like to use chibios with ...
by error414
Fri Jan 29, 2021 7:52 pm
Forum: Bug Reports
Topic: GCC10 / 9 inline functions weird behavior
Replies: 6
Views: 4972

Re: GCC10 / 9 inline functions weird behavior

Three days studying of make file. Finnaly it works as I want even with cmake. It was not chibios fault, just cmake is for head ache.

Big thanks for help.
by error414
Fri Jan 29, 2021 9:35 am
Forum: Bug Reports
Topic: GCC10 / 9 inline functions weird behavior
Replies: 6
Views: 4972

Re: GCC10 / 9 inline functions weird behavior

Thank you very much for help. The result:

1) chibistudio + make = just works
2) clion + cmake = does not work even if I used toolchain from chibistudio or WSL, ....
3) clion + make = works if I use makefile from demo and modify it to my project

I tried grab all settings from Makefile, but it ...