Apple II DISK Emulator using STM32

367 posts / 0 new
Last post
Offline
Last seen: 1 day 10 hours ago
Joined: Jul 5 2018 - 09:44
Posts: 2732
I noticed there is a new 0.80

I noticed there is a new 0.80.8 version out there, what needs to be tested?

 

Online
Last seen: 55 min 18 sec ago
Joined: Nov 19 2023 - 15:28
Posts: 250
A new version is available on

A new version is available on github with a major fix on stability of read and write.

I have done some testing already but will be good if you can give as well your input.

 

I change the way Interrupt are working between the SDCard and Read Timer & Write Timer,

Priority is on read write, but if I stop the SDCArd DMA IRQ after a few minutes it stop working and I have a kind of segfault

What to test:

- read of protected images, 

- 10 mins between reads access to SDCard,

- Disk II emulation, Smartport Emualtion

 

Thanks 

V

 

Offline
Last seen: 1 day 10 hours ago
Joined: Jul 5 2018 - 09:44
Posts: 2732
VIBR wrote:A new version is
VIBR wrote:

A new version is available on github with a major fix on stability of read and write.

I have done some testing already but will be good if you can give as well your input.

 

I change the way Interrupt are working between the SDCard and Read Timer & Write Timer,

Priority is on read write, but if I stop the SDCArd DMA IRQ after a few minutes it stop working and I

 

I will pull the latest version from GitHub and update some of the 15 that I have built with it and test with the focus you suggest above.  If that looks good I will update the rest of them.  So far as far as Disk ][ emulation goes, things really look great and I am super excited about it.  I have yet to get SmartPort to work, but I will take another look at that.

 

Intel8051's picture
Offline
Last seen: 1 week 13 hours ago
Joined: Sep 28 2024 - 19:58
Posts: 10
VIBR wrote:A new version is
VIBR wrote:

A new version is available on github with a major fix on stability of read and write.

I have done some testing already but will be good if you can give as well your input.

 

I change the way Interrupt are working between the SDCard and Read Timer & Write Timer,

Priority is on read write, but if I stop the SDCArd DMA IRQ after a few minutes it stop working and I

 

Hello Vincent.

Thank you very much for making the fix available.

So far, no problems. I am able to write programs in basic and save them to the dsk without crashes (4 hours in a row).

In previous versions of the firmware, the crash occurred in less than 20 minutes.

 

One of the features that I liked is that it is possible to create the DSK, WOZ and PO image directly on the SmartDisk II.

And An interesting thing is that COPYA (DOS 3.3) is working perfectly, I was able to copy several DSKs to a blank image (DSK).

Another test that worked perfectly was creating DSKs from Asciiexpress.net.

 

I would like to share a custom version of the SmartDiskII that I built myself.

Since I had trouble finding a case for the project, I built one using black acrylic. 

After a few days of gluing acrylic in the correct position, sanding and polishing and a lot of patience, I got a satisfactory result.

 

I created a new layout and added a vintage bicolor LED.

 

> No light = No activity

> Green light = Image reading

> Red light = Image recording.

 

I modified the firmware to light the LED according to the activity.

 

 

Thank you,

Daniel.

mikedanick's picture
Offline
Last seen: 6 days 10 hours ago
Joined: Mar 1 2021 - 16:48
Posts: 13
greets

i built the smartdisk II rev.4 board and seem to be having issues installing the bootloader and firmware.  i used the stm32 st-link utility to flash the .bin from https://github.com/vibr77/AppleIIDiskIIStm32F411/blob/main/Contributed/Build/SmartDiskII_STM32F411_bootloader_v0.12.bin and seems to flash fine but when i try to update the firmware with https://github.com/vibr77/AppleIIDiskIIStm32F411/blob/main/Contributed/Build/AppleIISDiskII_stm32f411_sdio_v0.80.9_A2F.uf2 my blackpill is seen as an unrecognized device, so i am unable to install the firmware (.uf2)

 

any ideas what i'm doing wrong?  any help is greatly appreciated!

 

thanks,

 

mike

 

Offline
Last seen: 1 day 10 hours ago
Joined: Jul 5 2018 - 09:44
Posts: 2732
mikedanick wrote:i built the
mikedanick wrote:

i built the smartdisk II rev.4 board and seem to be having issues installing the bootloader and firmware.  i used the stm32 st-link utility to flash the .bin from https://github.com/vibr77/AppleIIDiskIIStm32F411/blob/main/Contributed/Build/SmartDiskII_STM32F411_bootloader_v0.12.bin and seems to flash fine but when i try to update the firmware with https://github.com/vibr77/AppleIIDisk

I build the firmware from source (cloned the GitHub repository).  I use the ".elf" file and the STMCubeProgrammer app which you can download from ST's web site if I remember right.  If you want to build from source you also need to get the arm-gnu-toolchain.  That's assuming you are using Linux.  I don't know about MacOS and you'd have to install a whole bunch of dev tools on Windows, it's probably not worth the trouble.

 

Online
Last seen: 55 min 18 sec ago
Joined: Nov 19 2023 - 15:28
Posts: 250
Hello Mike, You need to

Hello Mike, 

You need to program your blackpill with the bootloader using the ST Programmer, and then you should have on the screen the booloader information. 

Then plugin into USB you should be able to see a drive where you can drap and drop the UF2 file. 

(When programming the bootloader firmware it will write protect the first rom memory to avoid bootloader overwrite)

Let me know if you need further support 

Vincent 

 

Offline
Last seen: 3 days 9 hours ago
Joined: Jan 8 2025 - 02:41
Posts: 5
Hi Vincent I noticed you have

Hi Vincent I noticed you have an updated Bootloader Ver 0.13 available however ive tried to write this to my stm32 but it always fails? ver 0.12 however works fine, can you check if the file is ok and or if it's recommended to upgrade. Thank you :-)

Online
Last seen: 55 min 18 sec ago
Joined: Nov 19 2023 - 15:28
Posts: 250
No need to update, it is just

No need to update, it is just cosmetic, and it fails because there is a memory protection that need to be removed using ST Prog32

 

Offline
Last seen: 1 day 10 hours ago
Joined: Jul 5 2018 - 09:44
Posts: 2732
stm_prog1.jpeg

STM programming tool

STM programmer attached to computer and emulator

STM programming software.  First press the blue "Read" button.

Then select the .elf file.

Next press the green "Connect" button, then press the blue "Download" button.  You should see messages scroll in the log window and a popup should show the results.  Dismiss the popup.  Press the green "Disconnect" button and then you can unplug the programmer and the emulator should be ready to go with the new version.

 

Offline
Last seen: 3 days 9 hours ago
Joined: Jan 8 2025 - 02:41
Posts: 5
VIBR wrote:No need to update,
VIBR wrote:

No need to update, it is just cosmetic, and it fails because there is a memory protection that need to be removed using ST Prog32

Hi yes sorry what I was meaning is that if I have bootloader vr 0.13 installed it doesn't allow fw to be uploaded when connected via usb? Pressing reset the stm32 fails to be detected just blue light on as if no bootloader installed?

No problem if I use vr 0.12 it works normally (ie double press reset and drive appears) and can upload fw.

I think might be issue with the ver 0.13 file?

 

Offline
Last seen: 1 week 5 days ago
Joined: Jan 27 2015 - 16:20
Posts: 3
Is emulation of Macintosh and Lisa floppy drives "in the cards"?

 

Hi VIBR,

thank you for the great apple II flopy disk emulator. I built it, and ti works great :)

I wonder if this hardware will eventually emulate floppy disk drives for Macintosh and Lisa?

Are there enough unused GPIO pins for the exra signals?

Do you have plans on working on the necessary firmware changes?

Online
Last seen: 55 min 18 sec ago
Joined: Nov 19 2023 - 15:28
Posts: 250
Hello good_geek, Thanks for

Hello good_geek, 

Thanks for the feedback, and yes it is part of the roadmap, I would like to fully finish the DISK 3.5 emulation (only doing UNIDISK 3.5 for the moment) and also the little glitch that is still here in the DISK II writting process. 

Will keep this forum updated

Vincent

 

mikedanick's picture
Offline
Last seen: 6 days 10 hours ago
Joined: Mar 1 2021 - 16:48
Posts: 13
can i use the .bin thats on

can i use the .bin thats on the github to program the bootloader?  or do i need to build the bootloader?

 

when i tried programming the available .bin with my st-link, then plug my blackpill into a usb port, the blackpill shows as an unknown usb device.

 

sorry to sound newbish...

 

 

thanks!  

mike

 

Online
Last seen: 55 min 18 sec ago
Joined: Nov 19 2023 - 15:28
Posts: 250
Hello Mike, The bin are

Hello Mike, 

The bin are outdated, 

I suggest you use the bootloader as it is the most easy way to update the SmartDisk II, 

or you can build from the source

Vincent

 

Offline
Last seen: 6 hours 5 min ago
Joined: Mar 12 2023 - 16:49
Posts: 25
Programming or updating BlackPill with USB connection
mikedanick wrote:

can i use the .bin thats on the github to program the bootloader?  or do i need to build the bootloader?

 

when i tried programming the available .bin with my st-link, then plug my blackpill into a usb port, the blackpill shows as an unknown usb device.

 

sorry to sound newbish...

 

 

thanks!  

mike

 <

Hi Mike ,

I have been through this problem just recently so perhaps I can help.

On VIBR's GitHub page link to page you will see on the right hand side of the page the text" releases 27" and under it "+ 26 releases" click on the link there and you will get to the releasses pages. Scroll down to the bottom of the page a click on page 3, When in page 3 look for update "Bootloader v0.13" and click on the asseets arrow and then select "AppleSDiskII_bootloader.bin". you should now have a download file of this name in your computer downloads area.

Assuming you have STM32 Cube Programmer installed on your computer start this programme.

Take out any SD card as a safety measure.

Connect your ST_LINK programmer to your BlackPill and then plug the programmer into your computer. In the STM Cube Programmer Select ST_LINK blue top right and press connect Green top right.

Assuming you get a connection go to the left hand side of Cube Programmer and click the 2nd from top green icon showing a down arrow. 

On this new page browse to select your file "AppleSDiskII_bootloader.bin"

You should see or set a start address 0x08000000.

set tick for verify prog, set tick run after programming.

set tick full chip erase 

set tick download file.

push the blue start programming button.

If all goes well your Sdisk 2 Oled screen should be showing that you are in bootloader mode.

Next remove the ST_Link programmer from the BlackPill and plug the BlackPill into the usb cable socket on the Pill and the computer. If you do not see the bootloader mode message on the OLED screen then press reset button twice on the Pill, windows should now see the Pill as astorage device and even ask you what you want to do?

Open the blackpill storage device in explorer and in another explorer window open the location of the .UF2 programme you want to load to the BlacPill, drag the .UF2 file into the BlackPill storage device window and you should see the OLED screen showing VIBR brilliant code working.

If you need more info you can PM me and I will give more help if possible.

I have just started on building my second unit and should be able to start testing the pair as I would use a standard pair of floppy drives. 

Regards Mike aka Crusty

 

Pages

Log in or register to post comments