Green LED dim when idle - normal?

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

Thanks! Here are my current build settings, if that helps:

Code: Select all

Base code version = v3.5.1.12a
CONFIG_3DIGITS_7SEGMENT_SUPPORT = no
CONFIG_2DIGITS_7SEGMENT_SUPPORT = no
CONFIG_I2C4BITS_LCD_SUPPORT = yes
CONFIG_ROTARY_SUPPORT = 0x1
CONFIG_SELECT_BUTTON_SUPPORT = yes
CONFIG_BUZZER_SUPPORT = no
CONFIG_DEFAULT_STEPSOUND = 0x0
CONFIG_DEFAULT_STANDBY = 0x9
CONFIG_SOUND_STEP_DURATION = 0x2000
CONFIG_DEFAULT_AUTO_SELECT_DELAY = 0x0
CONFIG_GPT_TABLE_PARTITION_SUPPORT = no
CONFIG_MEDIA_FS_CACHE = yes
CONFIG_SORT_FOLDER_ENTRIES = yes
CONFIG_MOUNT_SEARCH_FOLDER_POSITION = yes
CONFIG_SYSTEM_MONITOR_SUPPORT = no
CONFIG_DEBUG_L1 = no
CONFIG_FLOPPY_INTERFACE_TESTMODE = no
CONFIG_DEFAULT_BACKLIGHT = 0xa
CONFIG_REFRESH_SCROLL_PERIOD = 0xc
CONFIG_DEFAULT_SCREEN_LCDXSIZE = 0x10
CONFIG_7SEGMENT_TRACKDISPLAY = no
CONFIG_HIDE_FILEEXTENSIONS = yes
CONFIG_SSD1306_OLED_SUPPORT = yes
CONFIG_SSD1306_OLED_TYPE = 0x0
CONFIG_SSD1306_OLED_UPSIDEDOWN = no
CONFIG_FONT_NUMBER = 0x0
CONFIG_OLED_LINE_PAGE_ALIGN = 0x1
CONFIG_DEFAULT_OLED_CONTRAST = 0x7f
CONFIG_DEFAULT_OLED_BACKGROUND = 0xff
CONFIG_I2C_SPEED = 0x186a0
CONFIG_VIDEO_OSD_SUPPORT = no
CONFIG_VIDEO_OSD_FILESELECTOR_SUPPORT = no
CONFIG_VIDEO_OSD_VSYNC_PIN = no
CONFIG_VIDEO_OSD_HSYNC_PIN = 0x0
CONFIG_VIDEO_OSD_RESOLUTION = 0x0
CONFIG_OSD_LINE_POSITION = 0x3c
CONFIG_SPLASHTXT_POWERUP_LINE0 = "HxC Floppy Emu"
CONFIG_SPLASHTXT_POWERUP_LINE1 = ""VERSIONCODE""
CONFIG_SPLASHTXT_PAGE0_LINE0 = "Insert USB"
CONFIG_SPLASHTXT_PAGE0_LINE1 = "flash drive"
CONFIG_SPLASHTXT_PAGE1_LINE0 = "Push select to"
CONFIG_SPLASHTXT_PAGE1_LINE1 = "change settings"
CONFIG_SPLASHTXT_PAGE2_LINE0 = ""
CONFIG_SPLASHTXT_PAGE2_LINE1 = ""
CONFIG_SPLASHTXT_PAGE3_LINE0 = ""
CONFIG_SPLASHTXT_PAGE3_LINE1 = ""
CONFIG_SPLASHTXT_PAGE4_LINE0 = ""
CONFIG_SPLASHTXT_PAGE4_LINE1 = ""
CONFIG_SPLASHTXT_PAGE5_LINE0 = ""
CONFIG_SPLASHTXT_PAGE5_LINE1 = ""
CONFIG_SPLASHTXT_PAGE6_LINE0 = ""
CONFIG_SPLASHTXT_PAGE6_LINE1 = ""
CONFIG_SPLASHTXT_PAGE7_LINE0 = ""
CONFIG_SPLASHTXT_PAGE7_LINE1 = ""
CONFIG_7SEGS_DIGIT1_SPLASH = 0x74
CONFIG_7SEGS_DIGIT2_SPLASH = 0x76
CONFIG_7SEGS_DIGIT3_SPLASH = 0x58
CONFIG_AMIGA_ADF_SUPPORT = no
CONFIG_AMSTRAD_DSK_SUPPORT = no
CONFIG_GENERIC_HFE_SUPPORT = yes
CONFIG_TI99_DSK_SUPPORT = no
CONFIG_GENERIC_RAW_SUPPORT = yes
CONFIG_DEFAULT_SYSTEM_FAMILY = 0x3
CONFIG_RAW_USER1_TRK = 0x50
CONFIG_RAW_USER1_NBSECT = 0x12
CONFIG_RAW_USER1_NBSIDE = 0x2
CONFIG_RAW_USER1_ENCOD = 0x1
CONFIG_RAW_USER1_SECTORSIZE = 0x200
CONFIG_RAW_USER1_SECTSTART = 0x1
CONFIG_RAW_USER1_GAP3 = 0x36
CONFIG_RAW_USER1_INTERLEAVE = 0x1
CONFIG_RAW_USER1_SKEW = 0x0
CONFIG_RAW_USER1_SKEWSIDE = 0x0
CONFIG_RAW_USER1_BITRATE = 0x1f4
CONFIG_RAW_USER1_RPM = 0x12c
CONFIG_RAW_USER1_INTERFACEMODE = 0x7
CONFIG_RAW_USER1_EXCHANGESIDES = no
CONFIG_RAW_USER1_SIDEIDALWAYSZERO = no
CONFIG_RAW_USER1_NONINTERLEAVEDSIDESFILE = no
CONFIG_RAW_USER1_SIDE1FILEREVERSEDORDER = no
CONFIG_RAW_USER1_EXT = "dsk,img"
CONFIG_RAW_USER1_IGNOREFILESIZE = no
CONFIG_DIRECT_ACCESS_SUPPORT = no
CONFIG_DIRECT_ACCESS_IDSTRING = "HxCFEDA"
CONFIG_DIRECT_ACCESS_FWVERSIONID = ""VERSIONCODE""
CONFIG_DIRECT_ACCESS_TRACK = 0xff
CONFIG_DIRECT_ACCESS_NBSECTOR = 0x9
CONFIG_DIRECT_ACCESS_SECTORSIZE = 0x200
CONFIG_DIRECT_ACCESS_DENSITY = 0x1
CONFIG_DIRECT_ACCESS_BITRATE = 0xfa
CONFIG_DIRECT_ACCESS_SECTORSGAP = 0x190
CONFIG_DIRECT_ACCESS_INTERLEAVE = 0x1
CONFIG_DIRECT_ACCESS_NAMEDWRSECTORS_SUPPORT = no
CONFIG_MOUNT_FOLDER_SUPPORT = no
CONFIG_AUTOBOOT_FILENAME = "AUTOBOOT.HFE"
CONFIG_MOUNT_MOUNTED_FILE = "MOUNTED.IMG"
CONFIG_DIRECT_FLOPPYIMAGE_PARTITION = no
CONFIG_MENU_SUPPORT = yes
CONFIG_DIGITMENU_SUPPORT = no
CONFIG_HXCSDFECFG_SUPPORT = yes
CONFIG_HXCSDFECFG_FILENAME = "HXCSDFE.CFG"
CONFIG_EEPROM_EMULATION_SUPPORT = yes
CONFIG_AUTOBOOT_FILENAME = "AUTOBOOT.HFE"
CONFIG_STARTUPA_FILENAME = "STARTUPA.HFE"
CONFIG_STARTUPB_FILENAME = "STARTUPB.HFE"
CONFIG_DEFAULT_UIMODE = 0x0
CONFIG_INDEXEDMODE_FILENAME_PREFIX = "DSKA****"
CONFIG_FLOPPY_PORT_ALWAYS_ENABLED = no
CONFIG_DEFAULT_WRITEPROTECTMODE = 0xff
CONFIG_DEFAULT_SETTLINGTIME = 0x5
CONFIG_READY_MOTOR_TIMING = 0x4
CONFIG_MOTORONSOURCE = 0x2
CONFIG_IGNORE_SIDE_SIGNAL = no
CONFIG_DEFAULT_INTERFACEMODE = 0x80
CONFIG_DEFAULT_INTERFACEMODE_CUSTOM_PIN02 = 0x6
CONFIG_DEFAULT_INTERFACEMODE_CUSTOM_PIN34 = 0x2
CONFIG_DEFAULT_BITRATE = 0x32
CONFIG_READ_DMA_BUF_SIZE = 0x100
CONFIG_HFE_BLIND_WRITE_MODE = no
CONFIG_GCR_WRITE_SUPPORT = no
CONFIG_GENERIC_QDHFE_SUPPORT = no
CONFIG_QDHFE_CLR_RDY_ON_NMO = no
TEXT_CHECKHUMAN = "567"

Jeff
Site Admin
Posts: 7340
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Green LED dim when idle - normal?

Post by Jeff »

Please find attached the new firmware to test (v3.5.2.1a)

The first thing to test : Save some files on one img file and then format the img file with the organ.
Are the files gone this time ?
HxCUSBFE.UPD
(89.5 KiB) Downloaded 11 times

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

Success! Formatting the IMG takes much longer with the test version (2:48 vs. 1:11 previously), but the files are gone once it completes. Deleting individual files also works properly.

Jeff
Site Admin
Posts: 7340
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Green LED dim when idle - normal?

Post by Jeff »

cc213t wrote:
Mon Oct 26, 2020 7:14 am
Success! Formatting the IMG takes much longer with the test version (2:48 vs. 1:11 previously), but the files are gone once it completes. Deleting individual files also works properly.
Ok fine !

I am still quite surprised that the file delete wasn't working before : This maybe mean that this machine "format" the directory entries to remove one file ? :?

Just for the "science" :
Can you update to the attached firmware (i enabled the hfe blind write mode) and format the attached hfe with the machine, write a file, then delete it and send me back the hfe file ? I should able to see how the machine is writing to the disk with the write splices.

About the read/write speed : i suspect that you have changed the default disk layout in the previous version with the custom firmware options to make it faster. maybe i need to tweak a little bit the 1.44MB layout to speed up it (increase the gap3 ?)
HxCUSBFE.UPD
(89 KiB) Downloaded 7 times
unformatted.hfe.zip
(5.26 KiB) Downloaded 9 times

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

Hmm, the organ firmware immediately hangs / locks up displaying "Please Wait" if I try any operations involving that unformatted.hfe (on both the current and previous test firmwares you sent). During the hang, the OLED display on the emulator indicates RA on track 0 of 84 and nothing changes. I suspect upon first access of any disk, it first tries to determine whether it's a 1.44MB or 720K disk, since the organ supports both. So maybe we should try an unformatted.hfe with the standard 80 tracks?

Regarding GAP3 - I hadn't customized it yet since I didn't know how to choose a suitable value. In my previous build, I left it at 54 (CONFIG_RAW_USER1_GAP3 = 0x36).

Jeff
Site Admin
Posts: 7340
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Green LED dim when idle - normal?

Post by Jeff »

cc213t wrote:
Mon Oct 26, 2020 10:59 am
Hmm, the organ firmware immediately hangs / locks up displaying "Please Wait" if I try any operations involving that unformatted.hfe (on both the current and previous test firmwares you sent). During the hang, the OLED display on the emulator indicates RA on track 0 of 84 and nothing changes. I suspect upon first access of any disk, it first tries to determine whether it's a 1.44MB or 720K disk, since the organ supports both. So maybe we should try an unformatted.hfe with the standard 80 tracks?

Regarding GAP3 - I hadn't customized it yet since I didn't know how to choose a suitable value. In my previous build, I left it at 54 (CONFIG_RAW_USER1_GAP3 = 0x36).
Yes the image is completely unformatted . Reformat one of your image then.

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

Please find attached an HFE resulting from taking a blank 1.44 MB IBMPC HFE from the website, formatting it with the organ, writing a file (ABC.PNL), deleting that file, then unmounting the HFE, using the custom firmware you posted with blind write enabled.
Attachments
technics_hfe_blind_write_test1.zip
(102.38 KiB) Downloaded 8 times

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

Hi Jeff, just curious whether the HFE in my preceding message provided any useful info. Also, what did you change in IMG file handling to get formatting and file deletion working? I hope we find a way to keep that improvement but without the reduced performance.

Jeff
Site Admin
Posts: 7340
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Green LED dim when idle - normal?

Post by Jeff »

cc213t wrote:
Fri Nov 13, 2020 7:46 am
Hi Jeff, just curious whether the HFE in my preceding message provided any useful info. Also, what did you change in IMG file handling to get formatting and file deletion working? I hope we find a way to keep that improvement but without the reduced performance.
A new firmware was released 10 days ago :

viewtopic.php?p=23115#p23115

(you can try the same gap3 setting you used the first time on the custom firmware page)

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

Thanks Jeff! v3.5.2.5a seems to be working OK so far with IMG files, and performance seems as expected with GAP3 set to 27 (0x1b) for 1.44 MB 2HD images.

Jeff
Site Admin
Posts: 7340
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Green LED dim when idle - normal?

Post by Jeff »

cc213t wrote:
Tue Nov 24, 2020 10:01 am
Thanks Jeff! v3.5.2.5a seems to be working OK so far with IMG files, and performance seems as expected with GAP3 set to 27 (0x1b) for 1.44 MB 2HD images.
Ok. This is a quite short non-standard value. I will probably not set this by default in the firmware :wink: .

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

Hmm, I found several sites that said GAP3 of 27 is standard for 1.44 MB disks... such as http://www.dbit.com/wilson/floppy.html and Table 26 in https://www.mouser.com/datasheet/2/268/37c78-468028.pdf Or are the units in HxC not bytes?

Jeff
Site Admin
Posts: 7340
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Green LED dim when idle - normal?

Post by Jeff »

In fact these values presented on these pages are the gap between the sector id part and the data part, not the space between the sectors.
As you can see the standard value for the GAP3 (space between the sectors) is around 0x54 for the 1.44MB format.

cc213t
Posts: 15
Joined: Wed Aug 26, 2020 1:31 am

Re: Green LED dim when idle - normal?

Post by cc213t »

What value is used if I pick Raw file image family preference = IBM PC XT/AT when building the firmware? Does that choice support 1.44 MB IMG files with standard timing?

Jeff
Site Admin
Posts: 7340
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Green LED dim when idle - normal?

Post by Jeff »

cc213t wrote:
Wed Nov 25, 2020 11:01 am
What value is used if I pick Raw file image family preference = IBM PC XT/AT when building the firmware? Does that choice support 1.44 MB IMG files with standard timing?
108 / 0x6C. This is the standard value for 1.44MB DOS disks.

What is odd is that should be able to have the perfect read speed if you format an hfe file with the machine : The low level format stored in the HFE file is then exactly what the machine is expecting. Maybe there is some "hidden" interleave and skew ? Can you format an HFE file and share it ?

And what is the read speed with the real floppy disk drive ?

Post Reply