Building a .pgm on Windows

This is where developers can exchange ideas and ask questions relevant to the DM42 firmware.

Please note that Swiss Micros staff are unable to provide answers here as a general rule. This is intended as a community-driven forum.
Post Reply
User avatar
Over_score
Posts: 58
Joined: Fri May 05, 2017 7:37 pm
Location: France

Building a .pgm on Windows

Post by Over_score » Fri Nov 22, 2019 1:08 pm

To Michael & David

I am able to compile on Linux a .pgm for the DM42.
Now, I'm trying to build a .pgm file on Windows. I'm almost there. I'm missing two programs: add_pgm_chsum and check_qspi_crc.
So here's my request.
Would it be possible for you to provide us with a Windows version of the add_pgm_chsum and check_qspi_crc programs? Or may be the sources, I'm able to compile and may be adapt them.

Thanks
Martin
DM42 (SN 00284 & 03835), DM15L, HP41CV, HP42S, HP35s, WP34S, HP Prime

User avatar
Walter
Posts: 1100
Joined: Tue May 02, 2017 9:13 am
Location: Close to FRA, Germany

Re: Building a .pgm on Windows

Post by Walter » Fri Nov 22, 2019 9:20 pm

I'd recommend to send them an email. In my experience so far they are reacting pretty fast on emails but don't "constantly monitor this forum" (as David wrote once).
DM42 SN: 00041 --- Follower of Platon.

HP-35, HP-45, ..., HP-50, WP 34S, WP 31S, DM16L

User avatar
ijabbott
Posts: 165
Joined: Fri Dec 15, 2017 1:34 pm
Location: GB-MAN

Re: Building a .pgm on Windows

Post by ijabbott » Sat Nov 23, 2019 9:20 pm

It would require reimplementing the functionality of the shell scripts in C or something. An alternative may to build in an MSYS2 or Cygwin Bash shell environment.

User avatar
Over_score
Posts: 58
Joined: Fri May 05, 2017 7:37 pm
Location: France

Re: Building a .pgm on Windows

Post by Over_score » Sun Nov 24, 2019 9:39 am

We have a MSYS2 environment for the Windows development. But these 2 programs don't want to work or may be I' m doing something wrong. Re-implementing the functionality is an idea I had but I need to know very precisely what they are doing.
DM42 (SN 00284 & 03835), DM15L, HP41CV, HP42S, HP35s, WP34S, HP Prime

User avatar
Over_score
Posts: 58
Joined: Fri May 05, 2017 7:37 pm
Location: France

Re: Building a .pgm on Windows

Post by Over_score » Sun Nov 24, 2019 9:54 am

Oh shit! I didn't see that these programs were bash scripts! :shock:
So may be I can do something.
DM42 (SN 00284 & 03835), DM15L, HP41CV, HP42S, HP35s, WP34S, HP Prime

Dani R.
Posts: 215
Joined: Fri May 05, 2017 8:23 pm

Re: Building a .pgm on Windows

Post by Dani R. » Sun Nov 24, 2019 9:58 am

You're in a mingw64 shell? I had other problems until I could create a PGM, but checksum gives me no problem.
DM42 SN:00032

User avatar
Over_score
Posts: 58
Joined: Fri May 05, 2017 7:37 pm
Location: France

Re: Building a .pgm on Windows

Post by Over_score » Sun Nov 24, 2019 2:41 pm

I finally got it to work :D
I had a strange problem with the file qspi_crc.h combined with a %PATH% problem on my virtualbox Windows virtual machine!

A special thank you to ijabbott for giving me the clue I was missing.
DM42 (SN 00284 & 03835), DM15L, HP41CV, HP42S, HP35s, WP34S, HP Prime

Post Reply