S0urceror / MSX-USB

Schematics, drivers, debug tools, to make USB devices on the MSX a reality
GNU General Public License v2.0
65 stars 18 forks source link

Flash.com does not work correctly #4

Closed denjhang closed 3 years ago

denjhang commented 3 years ago

Currently I use the latest version V1.0 PCB (using EPM7064SLC44-10 ) And use MX29F040-70. Found unable to run flash.com correctly. 6D48CC7C74CBCA479D9EA3539CA4C035 BCD9E18A0FBB4FCE981BFB547EBFBB91 386D5DE8522DC00488209435D27021CF 1D630A7AB87C79FEC67709ED84F9C6FC

S0urceror commented 3 years ago

Flash.rom currently only support the AMD flash chips. Other flash chips use different programming instructions. We can support it if I find time to add it to flash.com. In the meantime you can use a separate programming device to flash it.

Btw. nice PCB you made.

From: Denjhang Liu @.> Date: Friday, 6 August 2021 at 07:49 To: S0urceror/MSX-USB @.> Cc: Subscribed @.***> Subject: [S0urceror/MSX-USB] Flash.com does not work correctly (#4)

Currently I use the latest version V1.0 PCB (using EPM7064SLC44-10 ) And use M29F040-70. Found unable to run flash.com correctly. [6D48CC7C74CBCA479D9EA3539CA4C035]https://user-images.githubusercontent.com/61811583/128462412-32fb0bfa-3497-49b2-9949-5828951666b2.png [BCD9E18A0FBB4FCE981BFB547EBFBB91]https://user-images.githubusercontent.com/61811583/128462417-c89941d0-0da2-44f9-9950-5c5f275bfed3.png [386D5DE8522DC00488209435D27021CF]https://user-images.githubusercontent.com/61811583/128462419-c9be4a81-96f2-465f-8c85-58d102159773.png [1D630A7AB87C79FEC67709ED84F9C6FC]https://user-images.githubusercontent.com/61811583/128462445-368fac41-e9ae-4e70-a380-fc8b7f97a437.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/S0urceror/MSX-USB/issues/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGC6KG4FXNZ4K3ULPM6NJTT3NZV3ANCNFSM5BVHFXHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

denjhang commented 3 years ago

A82AB9912A0696758433A10E904CD99C

I am currently using AM29F040-90PI, and found that the result is the same as before, but still cannot run flash.com correctly. I directly used the programmer to program the ROM, and found that the msx-basic was directly entered after booting, which means that the program in the ROM did not work. I began to suspect that there was a problem with the SPLD program. Can you provide the POF firmware file for programming SPLD? I used MSX-USB-master\hardware\quartus\output_files\MSXUSB.pof before, and successfully uploaded the firmware program using USB Blast.

S0urceror commented 3 years ago

Here the POF I created.

Also included is a ROM file. If you flash that in your programmer you should get the following output. This proves the ROM mapper is working properly. Please send me the output you’re getting. @.***

From: Denjhang Liu @.> Date: Sunday, 8 August 2021 at 14:17 To: S0urceror/MSX-USB @.> Cc: S0urceror @.>, Comment @.> Subject: Re: [S0urceror/MSX-USB] Flash.com does not work correctly (#4)

[A82AB9912A0696758433A10E904CD99C]https://user-images.githubusercontent.com/61811583/128631611-9a4f0342-e891-41bf-8592-ff49350d70a4.png

I am currently using AM29F040-90PI, and found that the result is the same as before, but still cannot run flash.com correctly. I directly used the programmer to program the ROM, and found that the msx-basic was directly entered after booting, which means that the program in the ROM did not work. I began to suspect that there was a problem with the SPLD program. Can you provide the POF firmware file for programming SPLD? I used MSX-USB-master\hardware\quartus\output_files\MSXUSB.pof before, and successfully uploaded the firmware program using USB Blast.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/S0urceror/MSX-USB/issues/4#issuecomment-894789107, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGC6KBKLOWOUK2ZWJ2JSCDT3ZYWDANCNFSM5BVHFXHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

denjhang commented 3 years ago

What is the following output?

mario-smit-heroes commented 3 years ago

What is the following output?

I see that image attachments do not get through. Here is the link:

S0urceror commented 3 years ago

Can you also check the output of flash.com. It tries to find a flash chip manufacturer/device and it prints it. Most likely this is slot 1 or 2.

Compare it with this list: https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/master/flashchips.h

Flash.com does not start flashing if the manufacturer/device id do not match.

You can override this by specifying /Sx where x is the slot number you want to flash.

From: Denjhang Liu @.> Date: Monday, 9 August 2021 at 16:28 To: S0urceror/MSX-USB @.> Cc: S0urceror @.>, Comment @.> Subject: Re: [S0urceror/MSX-USB] Flash.com does not work correctly (#4)

What is the following output?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/S0urceror/MSX-USB/issues/4#issuecomment-895271766, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGC6KAOSG2UGMRNEGTFK33T37QZLANCNFSM5BVHFXHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

denjhang commented 3 years ago

I found something wrong. flash.com cannot automatically recognize my ROM anyway. Even using AM29F040-90PI and using commands such as /S2 cannot complete programming correctly.

denjhang commented 3 years ago

It seems that CPLD is not running properly

denjhang commented 3 years ago

"Here the POF I created. Also included is a ROM file."

I am very confused, I did not see any files uploaded by you. I can't see the link to the file.I just saw a line of spaces.

S0urceror commented 3 years ago

Yes sorry, I am replying from within my email client to the thread on Github. It looks like images and attachments do not make it back to Github. To be able to directly send you files I need your direct email address. Please find my profile Sourceror on msx.org. If you use my email listed there we can email directly and freely exchange files. When we have a solution we’ll post it also on Github so that everyone else can use it.

From: Denjhang Liu @.> Date: Monday, 9 August 2021 at 19:28 To: S0urceror/MSX-USB @.> Cc: S0urceror @.>, Comment @.> Subject: Re: [S0urceror/MSX-USB] Flash.com does not work correctly (#4)

"Here the POF I created. Also included is a ROM file."

I am very confused, I did not see any files uploaded by you. I can't see the link to the file.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/S0urceror/MSX-USB/issues/4#issuecomment-895405029, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGC6KFN42UIR32V5TE3WT3T4AF5LANCNFSM5BVHFXHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

denjhang commented 3 years ago

I have sent an email, my email is ltj825152013@gmail.com

denjhang commented 3 years ago

I can make sure to use the files provided in your email (actually I used these two files before). So I more doubt whether there is a problem with the circuit somewhere. I can make sure that I am currently using MSX-USB v1.0 CPLD PCB, but I found the changes mentioned in https://www.msx.org/forum/msx-talk/hardware/msx-usb?page=19 It has not been applied. This is why the ROM mapper somehow was stuck on segment 0. This actually means that the ROM mapper is not working correctly. 0810195635 03A4FF6150DF102F292E7F330ED891D2

denjhang commented 3 years ago

I found that the A12 of the CPLD and ROM on the PCB is disconnected, and there is no connection.

denjhang commented 3 years ago

In addition, I need you to explain whether this modification is necessary. IMG_0463

S0urceror commented 3 years ago

I found that the A12 of the CPLD and ROM on the PCB is disconnected, and there is no connection.

Please make a connection as indicated in the msx.org post. That explains what is happening.

S0urceror commented 3 years ago

In addition, I need you to explain whether this modification is necessary. IMG_0463

I’ll check my notes on that later tonight and let you know.

mario-smit-heroes commented 3 years ago

Btw, I also checked your initial picture and it does not say MSX USB v1.0 on the silk screen.

Like it should:

image

That confirms you need to make a connection like this:

image
mario-smit-heroes commented 3 years ago

Yes you need to reverse these pins also:

image

This reverses OE (output enable) and CE (chip enable). In the pre v1.0 version I had this wrong. This has no impact on reading from the chip but causes incorrect timing for writing to the chip. Explains that flash.com does not work.

denjhang commented 3 years ago

I found the problem. Because I am using the gerber from this link: https://github.com/S0urceror/MSX-USB/blob/master/hardware/kicad-cpld/gerber/msxusb.zip But in fact this file was created more than a year ago. The other files in the same folder are the ones you created this year. 截图未命名0812013903

S0urceror commented 3 years ago

Thanks for pointing it out. I’ll fix the GitHub issues. Also I will update the documentation with the latest info

Get Outlook for iOShttps://aka.ms/o0ukef


From: Denjhang Liu @.> Sent: Wednesday, August 11, 2021 7:39:51 PM To: S0urceror/MSX-USB @.> Cc: S0urceror @.>; Comment @.> Subject: Re: [S0urceror/MSX-USB] Flash.com does not work correctly (#4)

I found the problem. Because I am using the gerber from this link: https://github.com/S0urceror/MSX-USB/blob/master/hardware/kicad-cpld/gerber/msxusb.zip But in fact this file was created more than a year ago. The other files in the same folder are the ones you created this year. [截图未命名0812013903]https://user-images.githubusercontent.com/61811583/129077061-514b00e4-695b-43e1-877c-5b64bafffa44.jpeg

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/S0urceror/MSX-USB/issues/4#issuecomment-897020588, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGC6KDS3VKYEB4D46JO2QLT4KYWPANCNFSM5BVHFXHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

denjhang commented 3 years ago

I have placed an order for PCB production of MSX-USB V1.0, this time I can ensure that it is version 1.0, and I chose purple as the color of the PCB solder mask ink. In fact, I am willing to pay some costs for MSX-USB, because I think this is a very valuable project. Even if I encounter some problems, I have to solve them one by one.

S0urceror commented 3 years ago

The old version of the PCB had an error which meant you had to swap pins OE (output enable) and CE (chip enable). Without this flash.com does not work. Thanks Denjhang for pointing this out. The latest PCB gerbers correct this and are good. To be sure check the marking v1.0 on the silkscreen.