this define:
#define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
is fix in mbed-os\targets\TARGET_STM\TARGET_STM32F4\STM32Cube_FW\stm32f4xx_hal_conf.h
can I redefine this setting?
@jeromecoutant
this define:
#define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
is fix in mbed-os\targets\TARGET_STM\TARGET_STM32F4\STM32Cube_FW\stm32f4xx_hal_conf.h
can I redefine this setting?
@jeromecoutant
Hello Johannes,
Unfortunately, I don’t know how to do it with mbed_app.json
. But, maybe you can ty to use the same technique as the STM32CubeIDE:
mbed-os\targets\TARGET_STM\TARGET_STM32F4\STM32Cube_FW\stm32f4xx_hal_conf.h
file in your project folder.stm32f4xx_hal_conf.h
file as needed for the given project.Best regards, Zoltan
Thanks Zoltan,
I have decided to copy the necessary part of the HAL code into my class, that’s easier to handle for me.
The problem is always to set up some ISR code in classes during runtime. It has driven me nuts to find out how to use a callback/ cthunk with arguments as function pointer for usart dma transfer complete. And then this damned function pointer is not called because of this define.
I can publish this code when it is working.
And another funny thing: when I worked on serial with dma, I found that it was implemented already a few years ago, but then it was replaced by interrupt handling. but thanks to git, everything is traceable.