Search found 20 matches
- Fri May 21, 2021 4:37 am
- Forum: STM32F4 based boards
- Topic: STM32F446 Canbus with Core 2.0 Timing Issues
- Replies: 6
- Views: 8136
STM32F446 Canbus with Core 2.0 Timing Issues
I just updated to the latest v2.0 core from v1.9, and the exact same code now results in issues on the canbus. As soon as the CAN is initiated, the entire bus starts freaking out, it appears almost if either the pins are not being set correctly or the frequency is out, although this works perfectly ...
- Tue May 11, 2021 8:55 am
- Forum: STM32F4 based boards
- Topic: STM32F4 CAN Bus Receive Interrupts
- Replies: 2
- Views: 10342
Re: STM32F4 CAN Bus Receive Interrupts
Thanks for that, the extern C is only required for the interrupt. In saying that the "/* Aliases for __IRQHandler */" for canbus are not defined in the stm32f446xx.h file so it doesnt seem to ever call them. (https://github.com/stm32duino/Arduino_Core_STM32/tree/master/system/Drivers/CMSIS...
- Tue May 11, 2021 4:19 am
- Forum: STM32F4 based boards
- Topic: STM32F4 CAN Bus Receive Interrupts
- Replies: 2
- Views: 10342
STM32F4 CAN Bus Receive Interrupts
I am currently working with a STM32F446RET6 processor, I have both CAN1 and CAN2 working correctly for receiving and writing using polling method which works flawlessly. Next is getting the receive interrupt working which unfortunately cannot seem to get going. Looking at the stm32f4xx_hal_can.c fil...
- Tue Jun 02, 2020 11:52 pm
- Forum: General discussion
- Topic: [Solved] USB Serial without DTR
- Replies: 7
- Views: 7643
Re: [Solved] USB Serial without DTR
Im sure I could raise a request on the github repo to have it looked into. Generally the forums are designed for people to ask questions around how to use current libraries or where they are having issues. The team unfortunately can't be expected to know the core inside/out as its massive, and makin...
- Tue Jun 02, 2020 1:59 am
- Forum: General discussion
- Topic: [Solved] USB Serial without DTR
- Replies: 7
- Views: 7643
Re: USB Serial without DTR
Solved.
I commended out all the DTR coding in usbd_cdc_if.c, and set linestate = 1.
This now has the exact desired effect where DTR is no longer required. Hope that helps someone else!
I commended out all the DTR coding in usbd_cdc_if.c, and set linestate = 1.
This now has the exact desired effect where DTR is no longer required. Hope that helps someone else!
- Tue Jun 02, 2020 1:11 am
- Forum: General discussion
- Topic: [Solved] USB Serial without DTR
- Replies: 7
- Views: 7643
[Solved] USB Serial without DTR
Ok so, Im using a F303 and F446 with USB CDC Serial and both seem to have the the DTR option enforced. The issue I am facing is I am designing a tool to interface with generic software which usually connects to a standard Serial Port which does not utilize DTR or RTS. I can create the exact situatio...
- Fri Jan 10, 2020 4:21 am
- Forum: General discussion
- Topic: USB CDC Serial Freezing on large frames
- Replies: 2
- Views: 4150
Re: USB CDC Serial Freezing on large frames
Right, you should post your sketch. Then I will try. No problem, Attached is the windows program, all it does is connect to the desired comport and then send a buffer of requested size, then will read back the bytes and verify they match. Here is the sketch code: void setup() { delay(100); SerialUS...
- Thu Jan 09, 2020 2:23 pm
- Forum: General discussion
- Topic: USB CDC Serial Freezing on large frames
- Replies: 2
- Views: 4150
USB CDC Serial Freezing on large frames
I am using the native USB lines from a STM32F303RE on a Nucleo F303RE board, with the 1.5Kohm pullup resistor so my computer happily detects the device and assigns a virtual serial port. I have set the arduino options to use the native USB CDC serial , using the default usb speed and default optimis...
- Thu Jan 09, 2020 12:06 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: CANBus using ST Official Library on STM32F303RE
- Replies: 2
- Views: 5699
Re: CANBus using ST Official Library on STM32F303RE
fpiSTM Thanks for the reply! I am using the Arduino framework for the Nucleo F303RE. To be more specific, I am using Visual Code with the platformio plugin installed which then allows using the Arduino framework (But with all the usual visual studio error code markups ect). Within the Arduino frame...
- Wed Jan 08, 2020 1:09 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: CANBus using ST Official Library on STM32F303RE
- Replies: 2
- Views: 5699
CANBus using ST Official Library on STM32F303RE
I am trying to configure the CAN baud on my Nucleo F303RE, although all examples I see online do not match how Iv read to calculate them. From what I understand, the Clock rate for the ABP is 36Mhz, want a sample point of about 75-90% with a SJW of 1. For example, using this site for the calcs for 1...