Author Topic: Amstrad CPC WiFi  (Read 330045 times)

0 Members and 1 Guest are viewing this topic.

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.235
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
  • Liked: 992
  • Likes Given: 2278
Re: Amstrad CPC WiFi
« Reply #425 on: 16:34, 05 July 16 »
 ;D

Offline hsimpson

  • CPC464
  • **
  • Posts: 37
  • Country: pl
  • Liked: 10
  • Likes Given: 18
Re: Amstrad CPC WiFi
« Reply #426 on: 21:05, 06 July 16 »
@Duke
Shipment arrived safely. Tests I will be doing over the weekend (lack of time).

Thanks a lot :)

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 2.921
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1091
  • Likes Given: 2304
Re: Amstrad CPC WiFi
« Reply #427 on: 21:29, 06 July 16 »
I received mine too some days ago, but haven't been able to try it out yet. Missing the cable, which I ordered from TotO, hopefully here soon.

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #428 on: 04:42, 08 July 16 »
Due to insomnia, here is a small update (beta for now) for M4 Board.
You can now replace lowerrom, meaning you can upgrade ie. CPC464 to Basic 1.1.

Download firmware v1.0.4:
http://www.spinpoint.org/cpc/M4FIRM_v104.zip

See screenshot below for usage (simply Enable lower-rom and pick a slot for it, where you upload the rom to).
Edit: A little temporary workaround if you experince browser crashing while uploading/removing roms. Go to Control first, press CPC Pause. Then go to Roms and upload/change things. When finished go back to Control and press M4 reset. And don't use Chrome yet.
« Last Edit: 12:56, 08 July 16 by Duke »

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #429 on: 13:54, 08 July 16 »
Yippee, Yes I tested this and it works, My M4 now has FW3.15 and the fw 3.15 expansion Rom, both installed and working perfectly.


All I need now is a Standalone memory expansion for the JustCPC and it will be amzinf, Anyone fancy making a MX4 connected 512k expansion?


Craig

IRC:  #Retro4All on Freenode

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #430 on: 14:09, 08 July 16 »
Good.
XMEM should be fine for 512k expansion no?

Yippee, Yes I tested this and it works, My M4 now has FW3.15 and the fw 3.15 expansion Rom, both installed and working perfectly.


All I need now is a Standalone memory expansion for the JustCPC and it will be amzinf, Anyone fancy making a MX4 connected 512k expansion?


Craig

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #431 on: 15:17, 08 July 16 »
Yeah, but I want to move that to another CPC now that I have a lower romboard in the M4 ;)
IRC:  #Retro4All on Freenode

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 776
  • Country: gb
  • Liked: 212
  • Likes Given: 215
Re: Amstrad CPC WiFi
« Reply #432 on: 15:45, 08 July 16 »
Yeah, but I want to move that to another CPC now that I have a lower romboard in the M4 ;)

You can get an XS-MEM (I think that's the right name, might be Y-MEM). It's an X-MEM but without the ROM. Ask @TotO , he made one for me a year or two ago. Price is a bit less than a full X-MEM IIRC

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #433 on: 15:46, 08 July 16 »
That would do it just perfectly ;)
IRC:  #Retro4All on Freenode

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: Amstrad CPC WiFi
« Reply #434 on: 20:07, 08 July 16 »
You can get an XS-MEM (I think that's the right name, might be Y-MEM). It's an X-MEM but without the ROM. Ask @TotO , he made one for me a year or two ago. Price is a bit less than a full X-MEM IIRC


No, a Y-MEM is the same like an X-MEM, but the ROMs are 32-63 (instead of 00-31) and the 512 KB RAM will be addressed using port &7Exx (instead of &7Fxx).


But one question form my side: How can I upload a ROM from the CPC side into the M4? (I would like to add that functionality to the ROManager).


A second question: Is there an "official" way of detecting if an M4 is connected to the CPC?

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Rennert

  • CPC464
  • **
  • Posts: 33
  • Country: 00
  • KC Compact
  • Liked: 14
  • Likes Given: 2
Re: Amstrad CPC WiFi
« Reply #435 on: 21:34, 08 July 16 »
where can i download the FW 3.16?
i´ve see it, but don´t found anymore.
...KC Compact

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #436 on: 21:50, 08 July 16 »
Use the fopen, fseek and fwrite commands to add a rom to m4/romslots.bin (offset = slot * &4000).
To parse just a block of a file you need to use FA_READ|FA_WRITE for fopen flags, then you can fseek into the file and just overwrite a block.
#define FA_READ            0x01
#define FA_WRITE            0x02
#define FA_CREATE_NEW        0x04

Then modify (read/overwrite) m4/romconfig.bin and set the corresponding updateflag to 2 (new rom).
Structure of romconfig.bin:
int    totalRoms; // 32
int    m4RomNum;  // M4 rom to map rom number 0-255
int    m4RomEnable; // M4 rom enabled
int    romRangeStart;    // start mapping roms from
int    lowerEnable; // lower rom replacement enabled
int    lowerSlot;   // which slot maps lowerrom (0-31)
unsigned int reserved[2]; // set to zero for now
then for each rom:
typedef struct
{
    char updateflag;    // 0 = no rom present (or disabled), 1 = rom present (enabled), 2 = New rom will be flashed into M4 internal flash, 3 = remove rom
    char    name[32];  // name of rom to be displayed in webinterface
} _romConfig[32];

I guess to check for M4 would be to issue one of the commands, ie. version command and check for a response or scan the roms for the rom name "M4 Board".

But one question form my side: How can I upload a ROM from the CPC side into the M4? (I would like to add that functionality to the ROManager).


A second question: Is there an "official" way of detecting if an M4 is connected to the CPC?
« Last Edit: 22:04, 08 July 16 by Duke »

Offline dirtybb

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 28
  • Likes Given: 97
Re: Amstrad CPC WiFi
« Reply #437 on: 21:52, 08 July 16 »
where can i download the FW 3.16?
i´ve see it, but don´t found anymore.


You will find it here :
GitHub - realmml/FW3.1x: A series of patches over the original Amstrad CPC




Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #438 on: 21:59, 08 July 16 »
Deleted redundant, dirtybb found the proper location for fw3.16.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: Amstrad CPC WiFi
« Reply #439 on: 23:24, 08 July 16 »
Thanks Duke! Doesn't look like Z80 code, but after reading twice I understood.  :)   :laugh:   :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #440 on: 02:22, 09 July 16 »
Ok Further testing. This is genius!!


I have put Parados 1.2 in the physical Rom 7 in the JustCPC board.
Put M4Rom in Slot 7 fro the menu
Set Slot 7 as Lower Rom and put FW3.1x there
so SLot 7 now has 3 roms.. Lower, Parados 1.2 and m4 rom


OK. Boot the board, fw3.1x and m4 roms are both loaded - Only one rom of the 32 is used :)


issue |m4romoff


fw3.1x and Parados1.2 are loaded - Again only 1 rom used from the 32 :)


this is awesome, perfect, fantastic!!


@Prodatron @TFM , any chance of a version of Symbos/FutureOS that can boot from the m4 board and run entirely from the SDcard A: thus not using any more ROMs?


Thanks


Craig

IRC:  #Retro4All on Freenode

Offline Phantomz

  • 6128 Plus
  • ******
  • Posts: 1.141
  • Country: gb
  • Liked: 1659
  • Likes Given: 534
Re: Amstrad CPC WiFi
« Reply #441 on: 18:51, 09 July 16 »
I haven't had a proper play about with mine yet, so haven't tried to use the wifi or roms.

I just checked that the board powered up and worked.

I did notice that the multiface two button didn't reset the machine when I tried it, doesn't it work when M4 Board is plugged it?  I don't think my reset button is broken!

I only tried the board with a real multiface two on a normal cpc 6128 with the M4 Board with Adapter.

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #442 on: 19:37, 09 July 16 »
New update v1.0.5 (beta):

Download from here:
http://www.spinpoint.org/cpc/M4FIRM_v105.zip

3 new RSX commands:

|ROMUP   - Use this to upload roms from basic/cpc, ie. |ROMUP,"UTOPIA.ROM",15 will upload utopia to slot 15.
|ROMSET -  Used to enable/disable roms (by default roms are enabled when uploaded). To disable rom slot 15, type |ROMSET,15,0. To re-enable it |ROMSET,15,1
|ROMUPD - This command will update rom changes live without a reboot needed. Ie. if you disable a rom and want it to take effect without reboot, use |ROMUPD afterwards.

2 new commands for devs:
C_FSIZE and C_FTELL, see updated http://www.spinpoint.org/cpc/m4info.txt (press ctrl+R to get latest) for details.
1 new file access mode (&80 = real fatfs mode)


@TFM and any other devs interested, here is a an example of the |ROMUP rsx I made, which shows how to upload a rom. This code is running from M4 rom, so some switching will need to be added, to/from another rom or ram:
#10902802 - Pastie

@CraigsBar
Neat little discovery, and yes, M4 rom does not actually take a slot, so perfectly fine way of doing it (toggling between two rom7's).

@Phantomz
I don't have a multiface, so not sure, but if the reset button is a regular reset (not some NMI related MF2 stuff) it definately should work, I would check connectors, replug etc.
« Last Edit: 20:30, 09 July 16 by Duke »

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #443 on: 01:38, 10 July 16 »
New update v1.0.5 (beta):

Download from here:
http://www.spinpoint.org/cpc/M4FIRM_v105.zip

3 new RSX commands:

|ROMUP   - Use this to upload roms from basic/cpc, ie. |ROMUP,"UTOPIA.ROM",15 will upload utopia to slot 15.
|ROMSET -  Used to enable/disable roms (by default roms are enabled when uploaded). To disable rom slot 15, type |ROMSET,15,0. To re-enable it |ROMSET,15,1
|ROMUPD - This command will update rom changes live without a reboot needed. Ie. if you disable a rom and want it to take effect without reboot, use |ROMUPD afterwards.

2 new commands for devs:
C_FSIZE and C_FTELL, see updated http://www.spinpoint.org/cpc/m4info.txt (press ctrl+R to get latest) for details.
1 new file access mode (&80 = real fatfs mode)


@TFM and any other devs interested, here is a an example of the |ROMUP rsx I made, which shows how to upload a rom. This code is running from M4 rom, so some switching will need to be added, to/from another rom or ram:
#10902802 - Pastie

@CraigsBar
Neat little discovery, and yes, M4 rom does not actually take a slot, so perfectly fine way of doing it (toggling between two rom7's).

@Phantomz
I don't have a multiface, so not sure, but if the reset button is a regular reset (not some NMI related MF2 stuff) it definately should work, I would check connectors, replug etc.


Upgraded with this version. All sees to have gone well, Although can I just confirm |version reports M4 on version 1.0.5 and ESP still 1.04, or did my ESP not update successfully?

IRC:  #Retro4All on Freenode

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #444 on: 08:30, 10 July 16 »
Yes, ESP firmware wasn't changed in this version... Will bump it next time :)

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #445 on: 11:17, 10 July 16 »
Yes, ESP firmware wasn't changed in this version... Will bump it next time :)


That makes sence then :) Oh, ANd the Web GUI still reflects 1.0.3
IRC:  #Retro4All on Freenode

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #446 on: 12:48, 10 July 16 »

That makes sence then :) Oh, ANd the Web GUI still reflects 1.0.3
Oops, and perhaps a slight bug report.....

|upgrade and |httpget now seem to hang the CPC.
IRC:  #Retro4All on Freenode

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #447 on: 12:52, 10 July 16 »
Thanks, glad someone is keeping an eye with the updates :) -will get the version numbers sorted in next update.
Just checked |httpget and |upgrade here and it works fine.... What's your netstat saying?

Oops, and perhaps a slight bug report.....

|upgrade and |httpget now seem to hang the CPC.

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #448 on: 13:25, 10 July 16 »
Thanks, glad someone is keeping an eye with the updates :) -will get the version numbers sorted in next update.
Just checked |httpget and |upgrade here and it works fine.... What's your netstat saying?


Netstat was fine.... I have now extracted the files from the zip again, and re-applied them. both commands work fine now.
It must have been a dodgy Extraction or updatge first time.


:)

IRC:  #Retro4All on Freenode

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 776
  • Country: gb
  • Liked: 212
  • Likes Given: 215
Re: Amstrad CPC WiFi
« Reply #449 on: 02:54, 11 July 16 »
No, a Y-MEM is the same like an X-MEM, but the ROMs are 32-63 (instead of 00-31) and the 512 KB RAM will be addressed using port &7Exx (instead of &7Fxx).

Aha, that's right. So it's an XS-MEM then. I can't remember if the RAM is also addressed at &7Fxx in the XS-MEM though. Either way, TotO can supply several different configurations.
« Last Edit: 02:56, 11 July 16 by Munchausen »