I’ve overriden the weak IRQ handles and the I2S callbacks, but so far, I don’t think I get in them. My guess is that the IRQ is triggered at the end of the dma transaction but goes to either a fault trap or in the never. When we launch the DMA for the first I2S transaction, the number of samples decided actually go out (master clock, word clock and samples are generated) then it freezes and the main loop isn’t responsive. The main loop mirrors the switch state to the onboard led to check it’s still running. The code is very basic so far but I don’t have a debugger to check what is happening. Happy to post our start code and try to get some help from this place where we’ve been reading quite a fair bit and learned a lot from (cheers). Now we’re adding the DMA and the board freezes. We’ve been following a proper learning curve about I/O’s configuration, clock settings etc and even got the I2S to work in polling mode and we could get the samples out, so SPI2 / I2S is properly configured We need to work with I2S and DMA to generate waveforms. We are using the STM32 duino to get trained on something that started as a “simple” project but we’re stumped. I still don't know why I can't see any signal but it might be my scope (kind of old) or the signal going so fast that I can't catch it.As posted in the welcome thread, ARM noob here, our lab is migrating from 15 years of dev with microchip 8 and 16 bit MCU to ARM mcu. Using UART1 for both Nucleo, I managed to send data and receive data correctly. Nucleo 1 USART1_Rx pinned on Nucleo 2 USART1_Tx ![]() Nucleo 1 USART1_Tx pinned on Nucleo 2 USART1_Rx Still, can't explain why I didn't see any signal on the pin. So it is normal I couldn't see any data on my UART2_Rx data buffer. I still used UART2 on my Nucleo 2, which is connected to USB. I also can't see any signal with my scope on my Nucleo 1 UART1_Tx pin. I still didn't manage to see the Nucleo 2 UART2 IT triggered. Nucleo 1 sends data with UART1 to Nucleo 2 Nucleo 1 USART1_Rx pinned on Nucleo 2 USART2_Tx Nucleo 1 USART1_Tx pinned on Nucleo 2 USART2_Rx But I still wanted to send data with my Nucleo 1 and receive it with my Nucleo 2. That's why I managed to see "Hello World" on my console. Pinning my scope on Nucleo 1 USART2_Tx showed permanent 0V line.Įxplanation : Solder bridge were configured to transmit UART2 data with USB. Nucleo 1 sends data with UART2 to Nucleo 2 Nucleo 1 USART2_Rx pinned on Nucleo 2 USART2_Tx Nucleo 1 USART2_Tx pinned on Nucleo 2 USART2_Rx My goal was to transmit data from Nucleo 1 to Nucleo 2 with UART, here is what i tried : This function is called in my main() function before the main loop.įrom what I see on my board, SB62
0 Comments
Leave a Reply. |