The Godfather talking
You may crack software. How about me?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 27, 2021, 01:20:28 01:20


Login with username, password and session length


Pages: [1]
Print
Author Topic: PEAK PCAN CAN USB adapter - DIY  (Read 3281 times)
0 Members and 1 Guest are viewing this topic.
Fallout
Junior Member
**
Offline Offline

Posts: 75

Thank You
-Given: 7
-Receive: 272


« 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_cantact

for STM32F407/405 dev boards - 1/2 channel ( acts as PCAN PRO/PCAN PRO FD/PCAN FD ):
https://github.com/moonglow/pcan_pro_x

Device 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 Offline

Posts: 1162

Thank You
-Given: 440
-Receive: 403



« 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
Active Member
***
Offline Offline

Posts: 201

Thank You
-Given: 181
-Receive: 163



« 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
**
Offline Offline

Posts: 83

Thank You
-Given: 117
-Receive: 81


« 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 Offline

Posts: 1162

Thank You
-Given: 440
-Receive: 403



« 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  Grin

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
**
Offline Offline

Posts: 83

Thank You
-Given: 117
-Receive: 81


« 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
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC