Fallout
Junior Member
Offline
Posts: 76
Thank You
-Given: 7
-Receive: 276
|
|
« on: January 25, 2021, 09:53:26 09:53 » |
|
for STM32F042 based hardware ( CANtact, CANable, Entreé ) - 1 channel ( acts as PCAN USB ): https://github.com/moonglow/pcan_cantactfor STM32F407/405 dev boards - 1/2 channel ( acts as PCAN PRO/PCAN PRO FD/PCAN FD ): https://github.com/moonglow/pcan_pro_xDevice will acts as original PCAN adapter ( PCAN/ PCAN FD/ PCAN PRO /PCAN PRO FD ) and give you full access to CAN bus through original PCAN API libs or other popular tools like BusMaster/PCAN-View. Will also works in Linux through socketcan subsystem or pcanview for Linux. Notes: ST bxCAN actually does not support FDCAN frames ( only classic CAN ), but i recommends you to use PRO FD firmware for 2 channel version to achive more performance in windows OS due some internal limitation of windows driver for PCAN PRO version.
|
|
|
Logged
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #1 on: July 18, 2021, 09:01:54 09:01 » |
|
I've been thinking and looking at this for a project I've got in mind and would like to start playing but I've only done picbasic and arduino along with the EPS32 but used the Arduino IDE to program these. What software would I need to compile and up load this to an DevEBox STM32F407VGT6 ?
I need a bit of guidance fro me to get to program this and start playing with them
Thanks Wizpic
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
h0nk
Senior Member
Offline
Posts: 257
Thank You
-Given: 226
-Receive: 231
|
|
« Reply #2 on: July 18, 2021, 10:28:47 10:28 » |
|
Hello Wizpic, I've been thinking and looking at this for a project I've got in mind and would like to start playing but I've only done picbasic and arduino along with the EPS32 but used the Arduino IDE to program these. What software would I need to compile and up load this to an DevEBox STM32F407VGT6 ?
I need a bit of guidance fro me to get to program this and start playing with them
Thanks Wizpic
The project page says: > Toolchain: > > GNU Arm Embedded Toolchain Depending on Your environment, You should add the GNU Arm Binutils and GNU Make in recent versions. To build on Windows You may need a recent MSYS Environment also. For the upload there are several options: - Use the Bootloader of the STM32F407. For this You will need the "DFU-Utility" from ST. - Use a JTAG/SWD-Adapter. Recommended is a Segger J-Link, but a cheap Chinese Clone of the ST-Link will also do. Most evalbaords have an integrated ST-Link. You can use this also for Your own designs. If You want to play with the Controller and get an easy entry, i would recommend an integrated IDE for the first steps, as they will work usually "out of the box". IAR's Embedded Workbench would be a good choice. Good luck, and Best Regards
|
|
|
Logged
|
|
|
|
digitalmg
Junior Member
Online
Posts: 97
Thank You
-Given: 139
-Receive: 110
|
|
« Reply #3 on: July 18, 2021, 02:37:42 14:37 » |
|
I made both versions CANtact as PCAN USB and PCAN PRO FD with STM32G407 , if you want I can send you the hex files. For load the hex I use STM32Cube Programmer or Segger J-Flash.
Best Regards
|
|
|
Logged
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #4 on: July 18, 2021, 05:23:23 17:23 » |
|
I was looking at getting one of these. Would the code compile and upload via an IDE ? Of am I thinking its to much like arduino I know or think that I've got to get an TJA1050 module for the front end to hook up to canbus Thanks for the offer of the hex file I would have to have a look for a programmer if I went down that route
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
digitalmg
Junior Member
Online
Posts: 97
Thank You
-Given: 139
-Receive: 110
|
|
« Reply #5 on: July 19, 2021, 05:22:58 17:22 » |
|
I did not compile with IDE, I installed arm gcc compiler(gcc-arm-none-eabi-10-2020-q4-major-win32.exe) and MinGW to be able to execute the make command. I had problems recognizing the usb driver, when you do the usb part, you don't have to mount the 1.5km resistor between D + and 3.3v.
Best Regards
|
|
|
Logged
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #6 on: August 07, 2021, 07:10:46 19:10 » |
|
I've finally got my board as the pic above, I went to downlaod STM32 ST-LINK utility but registration/ download is under maintenance, Typical ;-) I've been trying to work out how to compile the dam thing I know you have mentioned GNU Arm Embedded Toolchain thing but I aint got a clue how to sue it I just get a Gcc command prompt dos box ??
I think once complied you can use the STM32 ST-LINK utility to upload the hex file from the videos I've watched
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
digitalmg
Junior Member
Online
Posts: 97
Thank You
-Given: 139
-Receive: 110
|
|
« Reply #7 on: August 08, 2021, 05:12:14 17:12 » |
|
You need to install MinGW, it allows programmers to use GCC compiler on a Microsoft Windows system. To make it easier for you, I am attaching the hex file from pcan fd pro.
Best Regards.
|
|
|
Logged
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #8 on: August 08, 2021, 06:33:11 18:33 » |
|
That's a great and thanks, So I just connect the BTO pin to 3.3V and using STM32 cube and download the hex file, Which I've done and it say it's there and when I read it back it reads the hex file you uploaded. I remove BTO from 3V reboot and start PCAN view but it can't find the device, I must be doing something wrong my end ?
I'm grateful for your help and taking the time to compile the file, I'm new to the STM32 world so please bare with me
Wizpic
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #9 on: August 08, 2021, 07:42:20 19:42 » |
|
forget that I've got it working, I was not using the **PB14/PB15** pins silly me Off to do do some playing
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
Fallout
Junior Member
Offline
Posts: 76
Thank You
-Given: 7
-Receive: 276
|
|
« Reply #10 on: August 10, 2021, 12:20:36 12:20 » |
|
Btw you can always get precompiled hex files on Release page
|
|
|
Logged
|
|
|
|
Cojonel89
Inactive
Offline
Posts: 2
Thank You
-Given: 1
-Receive: 0
|
|
« Reply #11 on: February 17, 2022, 06:14:25 18:14 » |
|
Hello, I'm wondering if I could adapt and compile the PCAN-USB for STM32F103C8T6 (BluePill board). STM32F042 seems to be inferior to the F103 so I doubt the code wouldn't fit into the 64KB flash. But I don't know what are the differences between CANtact, CANable and Entreé (in terms of the resulting "seen by the system" hardware). Aren't they all PCAN-USB devices? I'm looking forward to start working on this in the near future and to share the results with you. Thank you!
|
|
|
Logged
|
|
|
|
digitalmg
Junior Member
Online
Posts: 97
Thank You
-Given: 139
-Receive: 110
|
|
« Reply #12 on: February 17, 2022, 07:56:39 19:56 » |
|
No, STM32F103C8T6 share a dedicated 512-byte SRAM memory for data transmission and reception for USB and CAN, and so they cannot be used concurrently (the shared SRAM is accessed through CAN and USB exclusively). The USB and CAN can be used in the same application but not at the same time.
|
|
|
Logged
|
|
|
|
Cojonel89
Inactive
Offline
Posts: 2
Thank You
-Given: 1
-Receive: 0
|
|
« Reply #13 on: February 20, 2022, 08:47:34 20:47 » |
|
|
|
|
Logged
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #14 on: November 26, 2023, 08:12:21 20:12 » |
|
I know this is a bit of old topic and the owner has had to change it because of copyrights. I’ve still got all the original files stored including the original hex files and was wondering if I could use an STM32F041instead of STM32F042 ? Also if I could use STM32F041 would the original hex file be able to uploaded to the STM32F041 or would it need re compiling if it could ? Thanks
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
anotherandrew
Junior Member
Offline
Posts: 94
Thank You
-Given: 766
-Receive: 23
|
|
« Reply #15 on: November 26, 2023, 10:55:11 22:55 » |
|
Could it not just update the VID to PCAN one? code now shows 0x0483 but PCAN VID is 0x0c72. Same to edit config descrptors from "XCAN-USB" to "PCAN-USB" and to make "user string" in device_get_user_string() "PEAK-System Technik GmbH"?
|
|
|
Logged
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #16 on: November 27, 2023, 06:26:16 06:26 » |
|
May be you could but i'm not sure how o do thst.
But my questions was really to ask if I could use an STM32F041 instead of STM32F042 ?
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #18 on: November 27, 2023, 01:05:55 13:05 » |
|
Sorry I meant STM32F401 instead of the STM32F402
not sure what happened there or how I missed the mistake must my fingers could not keep up how fast my brain wanted to type 😊
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
wild
Active Member
Offline
Posts: 180
Thank You
-Given: 604
-Receive: 452
|
|
« Reply #19 on: November 27, 2023, 03:34:54 15:34 » |
|
same thing: the STM32F402 does not exist! if you are referring to F405/F407, the following devices (despite different naming) are using the same chip DIE so they are equivalent:
DIE413 STM32F405O(E-G)Yx DIE413 STM32F405RGTx DIE413 STM32F405VGTx DIE413 STM32F405ZGTx DIE413 STM32F407I(E-G)Hx DIE413 STM32F407I(E-G)Tx DIE413 STM32F407V(E-G)Tx DIE413 STM32F407Z(E-G)Tx DIE413 STM32F415OGYx DIE413 STM32F415RGTx DIE413 STM32F415VGTx DIE413 STM32F415ZGTx DIE413 STM32F417I(E-G)Hx DIE413 STM32F417I(E-G)Tx DIE413 STM32F417V(E-G)Tx DIE413 STM32F417Z(E-G)Tx
the same is for the F042 variant: the following chips mount the same chip DIE: DIE445 STM32F042C(4-6)Tx DIE445 STM32F042C(4-6)Ux DIE445 STM32F042F4Px DIE445 STM32F042F6Px DIE445 STM32F042G(4-6)Ux DIE445 STM32F042K(4-6)Tx DIE445 STM32F042K(4-6)Ux DIE445 STM32F042T6Yx DIE445 STM32F048C6Ux DIE445 STM32F048G6Ux DIE445 STM32F048T6Yx DIE445 STM32F070C6Tx DIE445 STM32F070F6Px
|
|
« Last Edit: November 27, 2023, 03:48:10 15:48 by wild »
|
Logged
|
|
|
|
digitalmg
Junior Member
Online
Posts: 97
Thank You
-Given: 139
-Receive: 110
|
|
« Reply #20 on: November 27, 2023, 03:53:08 15:53 » |
|
It doesn't work, because STM32F042 is Arm Cortex-M0 and the STM32F401 is Cortex-M4-based microcontrollers. You can use the software from the version for STM32G407. pcan_pro_fd, but the source must be modified because the maximum clock for STM32F401 is 84Mhz,pcan_pro_fd firmware has the clock frequency of 168Mhz.
|
|
|
Logged
|
|
|
|
wild
Active Member
Offline
Posts: 180
Thank You
-Given: 604
-Receive: 452
|
|
« Reply #21 on: November 27, 2023, 04:11:59 16:11 » |
|
maybe I was not clear enough.... the F042 PCAN interface can use also ANY processors from the second list. the F405/7 PCAN interface can use also ANY processors from the first list.
|
|
|
Logged
|
|
|
|
digitalmg
Junior Member
Online
Posts: 97
Thank You
-Given: 139
-Receive: 110
|
|
« Reply #22 on: November 28, 2023, 01:06:03 13:06 » |
|
The statemen "the F042 PCAN interface can use also ANY processors from the second list", is false. For example STM32F042Kx have LQFP32 packages, and you cannot use both usb and canbus peripherals at the same time, because PA12 corresponds to CANTX and USB_DP, there is no other pin to assign CANTX to.
|
|
|
Logged
|
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #23 on: November 28, 2023, 06:57:44 18:57 » |
|
I've managed to find some of the original ones that I used last time,saves all the trouble thanks
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
Wizpic
Global Moderator
Hero Member
Offline
Posts: 1203
Thank You
-Given: 553
-Receive: 409
|
|
« Reply #24 on: December 01, 2023, 09:42:36 21:42 » |
|
I’ve made a big mistake and ordered some of these APM32F407VGT6 instead of these STM32F407VGT6 and realised when I could not get to upload the hex file using the st-link Opps!
|
|
|
Logged
|
When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
|
|
|
|