PCAN-RS-232 create firmware

This forum covers issues concerning multiple hardware products.
Post Reply
PaulSch
Posts: 4
Joined: Fri 12. Nov 2021, 13:49

PCAN-RS-232 create firmware

Post by PaulSch » Fri 12. Nov 2021, 14:17

Hi,
It's the first time I'am working with the PCAN-RS-232.
I have a question about creating firmware with Visual Studio Code. I have opened the sample files via VSCode and run the vbs script. Now I would like to create a firmware with "make all" as described in the *.txt. However, when running the command in the terminal, I get the error message:
sh: arm-none-eabi-gcc: Command not found.
make: *** [Makefile:339: gccversion] Error 127
Can anyone help me further?
Thanks a lot!

M.Heidemann
Sales & Support
Sales & Support
Posts: 754
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN-RS-232 create firmware

Post by M.Heidemann » Fri 12. Nov 2021, 14:25

Hello,

Thank you for your request.

Did you move the PEAK-DevPack folder or its contents after you had run the VBscript?

Please let us know

Best Regards

Marvin

PaulSch
Posts: 4
Joined: Fri 12. Nov 2021, 13:49

Re: PCAN-RS-232 create firmware

Post by PaulSch » Mon 15. Nov 2021, 08:48

Hello,

i did'nt move it. I did everything like in the description.

I habe another VS-Code (Beginner) projekt where I can compile and run my C-files. Maybe it is because I've already installed compilers on my PC. But I'm very new with VS-Code....

Thank you!

PaulSch
Posts: 4
Joined: Fri 12. Nov 2021, 13:49

Re: PCAN-RS-232 create firmware

Post by PaulSch » Mon 15. Nov 2021, 08:58

Hello again,

I don't know why, bu now something worked. The out-Folder was created, but when it comes to built the *bin file a new Message occured:

Creating bin file: example_echo.bin
hex2bin -s 0000 ./out/example_echo.hex
sh: hex2bin: Kommando nicht gefunden.
make: *** [Makefile:367: example_echo.bin] Fehler 127

It is a Sample-file from the Peak-Homepage.

Do you have an idea?
Best Regards
Paul

PaulSch
Posts: 4
Joined: Fri 12. Nov 2021, 13:49

Re: PCAN-RS-232 create firmware

Post by PaulSch » Mon 15. Nov 2021, 09:09

One more...it works.
I only run the "make" command, not the "make all" command like in th readme.txt described.

Thank you!

The topic ca be closed.

M.Heidemann
Sales & Support
Sales & Support
Posts: 754
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN-RS-232 create firmware

Post by M.Heidemann » Mon 15. Nov 2021, 09:29

Hello,

Thank you for your feedback.

Using "make all" should not be an issue.

If you should have any further issues regarding this,
please try the following:

1)
Download a fresh Peak-DevPack:

https://www.peak-system.com/quick/DLP-DevPack

Extract it to a folder you have write permissions to,
for example Desktop.

2) Run the SetPath_for_VSCode.vbs script

3) Open VsCode, select "Open Folder" and open:

YourPath\PEAK-DevPack\Hardware\PCAN-RS-232\Examples\01_CAN_ECHO

Make sure you are not open "src" or any other of the sub-folders of the example.

In VsCode now use "make all" via the "Terminal" menu:
PEAK-Dev.png
PEAK-Dev.png (11.03 KiB) Viewed 1217 times
Make_All.png
Make_All.png (17.79 KiB) Viewed 1217 times
What's your output after following these steps?

Can you share a screenshot with us?

Best Regards

Marvin

Post Reply