I have two STM32 based development boards and would like to get CAN example (slightly modified) to work with a simple data packet of 2 bytes sent from one board to the other. But I detect no valid CAN frame on the bus.The setup is taken from here: ST...
I'm confused as to what MMS bits I should choose as TRGO for an "interfacing" timer.A timer is used to trigger COM events on another timer.Its slave controller is configured in Reset mode, so it's automatically reset on any edge change on TI1, for ex...
I'm having a real nasty bug and finally found the reason for it. But the thing is, that I don't understand where it comes from.I calculate a variable within method A of a class and at the end of said method i pass it to method B by value. When steppi...
Try as I might, I cannot get timer-triggered ADC conversions of three channels working using the DMA. I've managed to get it to run for a single channel and using ADC triggered interrupts (no DMA). While adapting my code to work with DMA, I leaned on...
Hi I am learning to write driver code for SPI. I have an nucleo-L476RG development board with me implementing full-duplex transmit only operation and reading the output of a MOSI pin using a logic-analyzer. The Nucleo board is working as the masterSo...
I have been using prinf() function in IAR 9.10.1 without any issue. Recently I upgraded to IAR 9.20.2 but the printf() didn't work any more.I also contacted IAR and they said fputc() based printf is not supported by IAR 9.20 any more and recommended...
The timeout of 5 seconds for receiving data from the rtiostream interface has been exceeded. There might be multiple reasons for this failure.You should: (a) Check that the target hardware configuration is correct, for example, check that the byte or...
Could you please explain me how to use HAL_SPI_Transmit_DMA with an array?In this caseuint16_t data1= 1024;HAL_SPI_Transmit_DMA(&hspi1, &data1, 1)I get a warning concerning the pointer ("passing argument 2 of 'HAL_SPI_Transmit_DMA' from incompatible ...
Hello, I m using the CAN bus on a STM32f412. It is connected to a transiver with a CAN analyser linked. I can receive messages without problem but i can t send any messages. Here is ho i configured the CAN :/*##-1- Configure the CAN peripheral ######...