Search found 68 matches
- Fri Apr 17, 2020 8:06 am
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
Moving forward with my CAN driver, I completed the implementation and had it work perfectly as far as handling CAN frames back and forth. Reminder : I use a Maple-like board, namely Olimexino STM32 which includes all the CAN circuitry to connect to a CAN bus, and a USB socket for programming. Since ...
- Wed Apr 15, 2020 1:23 pm
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
@fpiSTM
Thanks a lot! It works now. Maybe I overlooked the important information about HAL. Nevertheless, I feel that the STM32Duino documentation is too succinct to start with.
Thanks a lot! It works now. Maybe I overlooked the important information about HAL. Nevertheless, I feel that the STM32Duino documentation is too succinct to start with.
- Wed Apr 15, 2020 10:47 am
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
I said earlier that the behaviour of my compiler had changed after a Windows 10 update. This happened again last night. Yesterday, I mentioned five errors. This morning, there is only one. It looks like there is some problem with my computer. Before writing this answer, I rebooted the computer, perf...
- Tue Apr 14, 2020 8:11 pm
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
I do not use it. However, I also tried with LTO enabled, but with exactly the same result. Strangely, the function calls to gpio and nvic pose no problem. I checked the source files of these three, but did not notice any difference that could explain this different behaviour. On thing though, is tha...
- Tue Apr 14, 2020 2:23 pm
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
Now I am facing a curious behaviour. After applying the changes before, my project worked for a while. I then continued the porting of other parts of the project I had first commented out. At a certain point, I started having lots of errors at link time mentioning "undefined reference to ...&qu...
- Sun Apr 12, 2020 9:39 am
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
Thank you, you found the point. I had to declare the ISR as follows to have the Arduino IDE handle it correctly: extern "C" void USB_LP_CAN1_RX0_IRQHandler (void) ; extern "C" void USB_LP_CAN1_RX0_IRQHandler (void) { HAL_CAN_IRQHandler(&hCAN) ; } Because the IDE gathers all f...
- Sat Apr 11, 2020 9:06 pm
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
I tried but I could not see, because the Arduino IDE reworks the source files to aggregate them and the extern "C" keyword confused it. I could not have it compile to see whether it would have worrked.
- Sat Apr 11, 2020 6:13 pm
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Re: Hardware CAN initialization fails
Thank you, I found there lots of information. However there is something I cannot master yet. The manual at the top of the stm32f1xx_hal_can.c says: In CAN IRQ handler, call HAL_CAN_IRQHandler() I understood that I must write an IRQ handler, that must call the HAL_CAN_IRQHandler function that exists...
- Thu Apr 09, 2020 6:01 pm
- Forum: Libraries & Hardware
- Topic: Hardware CAN initialization fails
- Replies: 22
- Views: 16572
Hardware CAN initialization fails
Hi, I need the CAN in my project, so I decided to start and use the HAL_CAN layer. So far, it is just quick and dirty. I have cooperated to the development of the HardwareCAN library that was meant to be included in Roger's package. Now that another direction is taken, I have to move on with differe...
- Thu Apr 09, 2020 10:32 am
- Forum: IDE's
- Topic: Compilation? problem with Arduino 1.8.12 and Olimexino STM32 board
- Replies: 6
- Views: 6320
Re: Compilation? problem with Arduino 1.8.12 and Olimexino STM32 board
Thank you very much. I followed your advice, and it works now.
The only difference is that after configuring the DISC pin as an output, I had to set it first high then low to produce a down-going edge, as is said in the Leaflabs documentation about the boot loader.
The only difference is that after configuring the DISC pin as an output, I had to set it first high then low to produce a down-going edge, as is said in the Leaflabs documentation about the boot loader.