2018-08-24 01:17 AM
2018-08-27 12:29 AM
'.\sx1272mb2das\NUCLEO_CUBE_LORA.axf: Error: L6218E: Undefined symbol __HAL_RCC_UART4_CLK_ENABLE '
I didn't define 'HAL_RCC_UART4_CLK_ENABLE' but the same error appears above.What's the problem?
2018-08-27 05:39 AM
void USART4_5_IRQHandler(void)
{
..
}
What is this part?
Is it true that there is no content?
2018-08-27 08:10 AM
This would be the body for a handler routine which would need to exist if you are generating interrupts. The vector table would cause it's execution.
You'd need to add your own servicing code.
>>I'm a beginner.
Need to learn how the processor functions, try some of Joseph Yiu's books, perhaps the Essential Cortex-M0 one if that's your initial target.
2018-08-29 12:51 AM
umm
2018-08-29 05:04 AM
Thank you. I ordered a book.But I don't have enough time.
Did you usart4 on pc10,pc11? (Source above)I'm confused because it's different from what I made out of Cubemx. Ping-pong works well with the sauce you gave me.
2018-08-29 06:24 AM
CubeMX does things differently, mainly spreading code all over the place, I prefer to use SPL/HAL where I put all the initialization in one place, where the order/sequence is clearer and more apparent. I don't particularly like CubeMX, and the output is going to be hard to integrate with the LRWAN code which is a hybrid of the Semtech stack and HAL using the RTC as a timebase.
The VCOM.C provides some example of how to interact with the USART
2018-08-29 07:13 AM
I see. Thank you.by the way, The source says 'GPIO_InitStructure.Pin = GPIO_PIN_10 | GPIO_PIN_11;'. I set pc10,pc11 as usart4, is this correct?
2018-08-29 08:23 AM
The pin list is a bit vector, you can use it to describe multiple pins on the given GPIO Bank
2018-08-31 07:04 AM
thank you friend There is another question. can use dma?(above source)
2018-08-31 07:19 AM
The L073RZ is capable of using DMA for USART4, the VCOM.C is not illustrative of this, but there might be examples under the HAL trees.
STM32Cube_FW_L0_V1.10.0\Projects\STM32L073RZ-Nucleo\Examples\UART\UART_TwoBoards_ComDMA