Jump to content
IGNORED

Building the Finalgrom99 and the 32K sidecar.


Mehridian Sanders

Recommended Posts

1 minute ago, wierd_w said:

What version of windows are you running?  The "not a valid win32 application" error is rather generic, but happens when either the executable code is completely borked, OR, when the api-level of the win32 subsystem is too old for the process needed.

 

If the toolchain as developed on a very recent version visual studio, this would explain everything; It wants windows 10.

i've been putting off a windows update for a couple of days 

lol

BRB

Link to comment
Share on other sites

5 minutes ago, wierd_w said:

What version of windows are you running?  The "not a valid win32 application" error is rather generic, but happens when either the executable code is completely borked, OR, when the api-level of the win32 subsystem is too old for the process needed.

 

If the toolchain as developed on a very recent version visual studio, this would explain everything; It wants windows 10.

Running Windows 10 Home Version 1809 (RS5) // 19H1 ought to be very interesting when it comes out. 

Link to comment
Share on other sites

3 minutes ago, wierd_w said:

It can also happen with 64bit code being run on 32bit windows. (or on a 32bit processor.)

I've noticed that most programs are installing with 32bit when I am running a 64bit system

 

------------------
System Information
------------------
      Time of this report: 12/8/2019, 21:16:00
             Machine name: MEDUSA
               Machine Id: {29F1C508-6D1B-4696-897A-136C2F149892}
         Operating System: Windows 10 Home 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434)
                 Language: English (Regional Setting: English)
      System Manufacturer: System manufacturer
             System Model: System Product Name
                     BIOS: 1301 (type: UEFI)
                Processor: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 CPUs), ~4.2GHz
                   Memory: 16384MB RAM
      Available OS Memory: 16322MB RAM
                Page File: 5748MB used, 29006MB available
              Windows Dir: C:\WINDOWS
          DirectX Version: DirectX 12
      DX Setup Parameters: Not found
         User DPI Setting: 96 DPI (100 percent)
       System DPI Setting: 96 DPI (100 percent)
          DWM DPI Scaling: Enabled
                 Miracast: Available, with HDCP
Microsoft Graphics Hybrid: Not Supported
           DxDiag Version: 10.00.17763.0001 64bit Unicode

 

Link to comment
Share on other sites

Microsoft has kind of band-aided the issue with how they handle win10.  Core win32 apis are kinda-sorta detatched from the OS as a distributable. However, older versions of windows want to link the win32 apis provided by the OS's core DLL set, not the modular ones expected by modern Visual Studio.  (Modern versions of visual studio want to wrap the API calls in several layers of wrapper functions so that microsoft can pull the rug out and replace it, presumably without your noticing.  I personally consider this an insane practice, but apparently they love to tinker over there at microsoft, and dont believe in mature codebases.)

 

You can often tell a visual studio project, because it will come with a boatload of win32 api dlls.  See this microsoft blog about it.

https://social.msdn.microsoft.com/Forums/en-US/a28331ae-19a3-4a34-b3ba-1e8fd4430375/missing-apimswincore-dlls?forum=windowsgeneraldevelopmentissues

 

 

 

 

Link to comment
Share on other sites

1 hour ago, wierd_w said:

If the compiler runs on linux, worth a shot.

well got all the files on my Rpi 3B+... file not found... in Thonny "no such file or directory: xas99.py"..

 

added all 3 python paths to Make.py
#!/usr/bin/python

#!/usr/bin/python2

#!/usr/bin/python3

 

I am assuming i need to point to the darn file. Just not sure how. reading .... 
butterfly in the sky ... I can go twice as high ... 

 

Edited by Mehridian Sanders
Link to comment
Share on other sites

Well building a FinalFlasher. Rpi Zero 1.3 which will be viewed from an Asus Zen pad. This makes it portable. GPIO for flashing. Can use android if needed. Have a bluetooth keypad which emulates mouse and keyboard. And I didn't have to buy anything for this one as the components were already here. Yay.

Sent from my SM-G955U using Tapatalk

Link to comment
Share on other sites

  • 2 weeks later...

ok RPI Zero Out

RPI 3B+ In -- 

New Code :

 

Please note that all "*.py" files are in the same directory as the "make.py"

 

#!/usr/bin/env python
#!/usr/bin/env python2
#!/usr/bin/env python3
#!/home/pi/Desktop/FinalGrom99/finalgrom-master/ti

import sys
from subprocess import call


xas = ["xas99.py", "-b", "-R", "-I", "/home/ralph/ti99/xdt99/lib/"]
xga = ["xga99.py"]

# original: if call(xas + ["menu.a99"], shell=False):
if call([xas + "menu.a99"], shell=False):
    sys.exit("ERROR: menu.a99")

with open("menu.bin", "rb") as f:
    data = f.read()

with open("menu.c", "w") as f:
    f.write("const uint8_t menu[] PROGMEM = {\n");
    for b in data[:-1]:
        f.write(hex(ord(b)) + ",\n");
    f.write(hex(ord(data[-1])) + "};\n");


if call(xga + ["grom.gpl"], shell=False):
    sys.exit("ERROR: grom.a99")

with open("grom.gbc", "rb") as f:
    data = f.read()

with open("grom.c", "w") as f:
    f.write("const uint8_t grom[] PROGMEM = {\n");
    for b in data[:-1]:
        f.write(hex(ord(b)) + ",\n");
    f.write(hex(ord(data[-1])) + "};\n");


if call(xas + ["help.a99"], shell=False):
    sys.exit("ERROR: help.a99")

with open("help.bin", "rb") as f:
    data = f.read()

with open("help.c", "w") as f:
    f.write("const uint8_t help[] PROGMEM = {\n");
    for b in data[:-1]:
        f.write(hex(ord(b)) + ",\n");
    f.write(hex(ord(data[-1])) + "};\n");

now it can apparently find the file but getting error

raise TypeError("expect bytes or str, not %s" % type(filename).__name__)

anyone more proficient in python that can steer me?

Link to comment
Share on other sites

Well the IC's are finally here for the 32k sidecar!! but Jameco messed up the socket order. I actually did get the Cypress RAM chip, which is weird since I ordered the Alliance one.

Right now it looks like this. Can these parts be soldered down without the socket?
@jedimatt42 whatcha think?

Thanks in advance.6fd37d5a9f48ff604be1e7c17a0b9aed.jpg

Sent from my SM-G955U using Tapatalk

  • Like 1
Link to comment
Share on other sites

One playful observation... if FinalGROM had come first, you would have just been able to download XB. :grin:  (ducking and running for cover)
I am still kerflummoxed on that. The users of stackoverflow were not kind to my first posting there. Eventually I will figure it out. May not come from the Rpi either ... but would then have to purchase a programmer and learn that as well. I am not sure if you have to program the Atmel and the other BEFORE soldering them down... but then why would you add a SPI header to it?.. does the SPI header program both of the chips needing programming?


Sent from my SM-G955U using Tapatalk

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...