Where i can found sources for current libcs3-lanchon-stm32.a ?
I see that names.inc contain
USB_LP_CAN_RX0_IRQHandler
but usb and libcs3-lanchon-stm32.a use
usb_lpIRQHandler
interrupt handler
USB_LP_CAN_RX0_IRQHandler
(8 posts) (2 voices)-
Posted 4 years ago #
-
x893,
you'll have to be more precise. which version of the IDE are you using? if you're using the command line, what branch of libmaple are you using?
Posted 4 years ago # -
I use maple-ide 0.0.9
but the some you can see herehttps://github.com/leaflabs/libmaple/blob/master/libmaple/usb/usb.c
line 244Posted 4 years ago # -
Also UART4_IRQ - issue from 2 month ago and still not resolved!
Posted 4 years ago # -
I find correct libcs3-lanchon-stm32 in support/ld/libcs3-lanchon-stm32.tar.gz file
need add next codes in lanchon-stm32-isrs.S
.weak TIM8_BRK_IRQHandler
.globl TIM8_BRK_IRQHandler
.set TIM8_BRK_IRQHandler, __STM32DefaultExceptionHandler
.weak TIM8_UP_IRQHandler
.globl TIM8_UP_IRQHandler
.set TIM8_UP_IRQHandler, __STM32DefaultExceptionHandler
.weak TIM8_TRG_COM_IRQHandler
.globl TIM8_TRG_COM_IRQHandler
.set TIM8_TRG_COM_IRQHandler, __STM32DefaultExceptionHandler
.weak TIM8_CC_IRQHandler
.globl TIM8_CC_IRQHandler
.set TIM8_CC_IRQHandler, __STM32DefaultExceptionHandler
.weak ADC3_IRQHandler
.globl ADC3_IRQHandler
.set ADC3_IRQHandler, __STM32DefaultExceptionHandler
.weak FSMC_IRQHandler
.globl FSMC_IRQHandler
.set FSMC_IRQHandler, __STM32DefaultExceptionHandler
.weak SDIO_IRQHandler
.globl SDIO_IRQHandler
.set SDIO_IRQHandler, __STM32DefaultExceptionHandler
.weak TIM5_IRQHandler
.globl TIM5_IRQHandler
.set TIM5_IRQHandler, __STM32DefaultExceptionHandler
.weak SPI3_IRQHandler
.globl SPI3_IRQHandler
.set SPI3_IRQHandler, __STM32DefaultExceptionHandler
.weak UART4_IRQHandler
.globl UART4_IRQHandler
.set UART4_IRQHandler, __STM32DefaultExceptionHandler
.weak UART5_IRQHandler
.globl UART5_IRQHandler
.set UART5_IRQHandler, __STM32DefaultExceptionHandler
.weak TIM6_IRQHandler
.globl TIM6_IRQHandler
.set TIM6_IRQHandler, __STM32DefaultExceptionHandler
.weak TIM7_IRQHandler
.globl TIM7_IRQHandler
.set TIM7_IRQHandler, __STM32DefaultExceptionHandler
.weak DMA2Channel1_IRQHandler
.globl DMA2Channel1_IRQHandler
.set DMA2Channel1_IRQHandler, __STM32DefaultExceptionHandler
.weak DMA2Channel2_IRQHandler
.globl DMA2Channel2_IRQHandler
.set DMA2Channel2_IRQHandler, __STM32DefaultExceptionHandler
.weak DMA2Channel3_IRQHandler
.globl DMA2Channel3_IRQHandler
.set DMA2Channel3_IRQHandler, __STM32DefaultExceptionHandler
.weak DMA2Channel45_IRQHandler
.globl DMA2Channel45_IRQHandler
.set DMA2Channel45_IRQHandler, __STM32DefaultExceptionHandler
before line
#endif /* L_lanchon_stm32_isr_interrupt */
and in lanchon-stm32-vector.S add
.long TIM8_BRK_IRQHandler
.long TIM8_UP_IRQHandler
.long TIM8_TRG_COM_IRQHandler
.long TIM8_CC_IRQHandler
.long ADC3_IRQHandler
.long FSMC_IRQHandler
.long SDIO_IRQHandler
.long TIM5_IRQHandler
.long SPI3_IRQHandler
.long UART4_IRQHandler
.long UART5_IRQHandler
.long TIM6_IRQHandler
.long TIM7_IRQHandler
.long DMA2Channel1_IRQHandler
.long DMA2Channel2_IRQHandler
.long DMA2Channel3_IRQHandler
.long DMA2Channel45_IRQHandler
before line
.size __cs3_interrupt_vector_lanchon_stm32, . - __cs3_interrupt_vector_lanchon_stm32
Posted 4 years ago # -
x893,
I use maple-ide 0.0.9
Ok. Be aware that many bugs have been fixed since then. I'm trying to get a new release together by the end of the week. The following things are still undone, so I'm not sure it will happen by then:
- Finish testing the refactored libmaple in my local clone
- Write up more documentation
- Integration with Maple IDEWhere i can found sources for current libcs3-lanchon-stm32.a ?
I see that names.inc contain
USB_LP_CAN_RX0_IRQHandler
but usb and libcs3-lanchon-stm32.a use
usb_lpIRQHandler
interrupt handlerThis is fixed in the refactor branch, and will be part of the next release. See:
https://github.com/leaflabs/libmaple/blob/refactor/libmaple/usb/usb.c#L242
https://github.com/leaflabs/libmaple/blob/refactor/support/ld/names.inc#L38Also UART4_IRQ - issue from 2 month ago and still not resolved!
This should be fixed in refactor, though it's untested:
https://github.com/leaflabs/libmaple/blob/refactor/libmaple/usart.c#L110
I find correct libcs3-lanchon-stm32 in support/ld/libcs3-lanchon-stm32.tar.gz file
need add next codes in lanchon-stm32-isrs.SHave you checked against refactor?
Posted 4 years ago # -
mbolivar,
I check and change local copy of master branch.
I implement CAN support but CAN and USB use the same interrupt handler and i think very helpfull if you add ability to call custom handler in __irq_usb_lp_can_rx0. Something like
#ifdef CAN_SUPPORT if (__irq_usb_lp_can_rx0_custom()) return; // CAN interrupt processing, so not need USB processing #endif
Posted 4 years ago # -
x893,
I implement CAN support but CAN and USB use the same interrupt handler and i think very helpfull if you add ability to call custom handler in __irq_usb_lp_can_rx0
Good idea.
Posted 4 years ago #
Reply
You must log in to post.