Getting NAME ERR when I save program raw files

Discussion around the SwissMicros DM41X calculator
rprosperi
Posts: 1710
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Getting NAME ERR when I save program raw files

Post by rprosperi »

Aha, thanks for posting the detailed steps, I can see the problem, simple after all.

Do NOT use any extension (in this case ".raw") when you save any files in the 41X, each file Load and Save area assumes the files are of the required type, and the file browse display will only show you files of the proper type.
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Getting NAME ERR when I save program raw files

Post by HPMike »

rprosperi wrote:
Sun Oct 11, 2020 3:01 pm
Aha, thanks for posting the detailed steps, I can see the problem, simple after all.

Do NOT use any extension (in this case ".raw") when you save any files in the 41X, each file Load and Save area assumes the files are of the required type, and the file browse display will only show you files of the proper type.
The .raw extension was provided by the HP41X on the input line, not by me. Please explain in detail how I'm supposed to do this.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
rprosperi
Posts: 1710
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Getting NAME ERR when I save program raw files

Post by rprosperi »

HPMike wrote:
Sun Oct 11, 2020 3:09 pm
rprosperi wrote:
Sun Oct 11, 2020 3:01 pm
Aha, thanks for posting the detailed steps, I can see the problem, simple after all.

Do NOT use any extension (in this case ".raw") when you save any files in the 41X, each file Load and Save area assumes the files are of the required type, and the file browse display will only show you files of the proper type.
The .raw extension was provided by the HP41X on the input line, not by me. Please explain in detail how I'm supposed to do this.
Ugh, I see, I thought from your notes that you were adding it. I'll look closer but unfortunately I'm traveling the rest of today and tomorrow, but will come look again if/when I can, and take my 41X along as well.
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Getting NAME ERR when I save program raw files

Post by HPMike »

rprosperi wrote:
Sun Oct 11, 2020 3:14 pm
HPMike wrote:
Sun Oct 11, 2020 3:09 pm
rprosperi wrote:
Sun Oct 11, 2020 3:01 pm
Aha, thanks for posting the detailed steps, I can see the problem, simple after all.

Do NOT use any extension (in this case ".raw") when you save any files in the 41X, each file Load and Save area assumes the files are of the required type, and the file browse display will only show you files of the proper type.
The .raw extension was provided by the HP41X on the input line, not by me. Please explain in detail how I'm supposed to do this.
Ugh, I see, I thought from your notes that you were adding it. I'll look closer but unfortunately I'm traveling the rest of today and tomorrow, but will come look again if/when I can, and take my 41X along as well.
Also, note that another user @Peet is having exactly the same problems, and that I have previously saved program raw files successfully on this device. So, I'm not going to bother to reformat my FAT disk until the root cause is identified.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
dlachieze
Posts: 614
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: Getting NAME ERR when I save program raw files

Post by dlachieze »

HPMike wrote:
Sun Oct 11, 2020 5:13 am
Step 1 create program MAN:

Enter program mode [PRG]

00 REG 209
01 LBL <text>MAN
02 CF 15
03 CF 16
04 END

Exit program mode [PRG]

The program MAN now appears in the third line of the display

Step 2 save as .raw file in FAT disk PROG folder:

SETUP > File > Save RAW Program > <New File> Input Mode 'A' > MAN.raw > [R/S]

Result in x-register of display = NAME ERR

Step 3 view list of saved .raw files in /PROG folder

Setup > File > Load RAW Program

There is now a zero byte file named MAN.raw
I tested this on my DM41X beta with your MAN and NORM programs and it worked correctly to create the .raw files. I then imported the two .raw files in V41 and everything was there. No error.
I don't have a production DM41X, my beta unit is running DMCP v3.20 with DM41X v1.15.
DM42: 00425 - DM41X: β00066 - WP43: 00042
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Getting NAME ERR when I save program raw files

Post by HPMike »

dlachieze wrote:
Sun Oct 11, 2020 4:24 pm
HPMike wrote:
Sun Oct 11, 2020 5:13 am
Step 1 create program MAN:

Enter program mode [PRG]

00 REG 209
01 LBL <text>MAN
02 CF 15
03 CF 16
04 END

Exit program mode [PRG]

The program MAN now appears in the third line of the display

Step 2 save as .raw file in FAT disk PROG folder:

SETUP > File > Save RAW Program > <New File> Input Mode 'A' > MAN.raw > [R/S]

Result in x-register of display = NAME ERR

Step 3 view list of saved .raw files in /PROG folder

Setup > File > Load RAW Program

There is now a zero byte file named MAN.raw
I tested this on my DM41X beta with your MAN and NORM programs and it worked correctly to create the .raw files. I then imported the two .raw files in V41 and everything was there. No error.
I don't have a production DM41X, my beta unit is running DMCP v3.20 with DM41X v1.15.
The production units also run DMCP v3.20, but DM41X is v2.0. I don't think this problem has anything to do with the programs themselves, as it also occurs when resaving programs that have not changed and saved properly on previous occasions.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Getting NAME ERR when I save program raw files

Post by HPMike »

Update on 10/13/2020

Today I went ahead and reformatted the FAT disk with a media test first, which found no bad blocks. I reloaded all data that I had backed up to my PC hard drive. I tried again to save a program .raw file, and again got the NAME ERR message with a zero byte file stored on the FAT drive. I am still able to load program files, module files and state files from the FAT drive. So, the next step is to re-flash the firmware, but the SM website does not have the current production version of the firmware listed. The DM41X program version on the website is V1.15, whereas the production units have V2.0. Since this problem does not appear to affect all DM41X units that were shipped, it would appear that this is not a problem with firmware, but something else. If a firmware reflash does not fix this, then perhaps I have defective hardware that should be replaced. I have already tried resetting the calculator to clear memory, which does not fix the problem either.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
Peet
Posts: 258
Joined: Tue Sep 29, 2020 12:01 am
Location: Germany

Re: Getting NAME ERR when I save program raw files

Post by Peet »

HPMike wrote:
Tue Oct 13, 2020 5:32 pm
I reloaded all data that I had backed up to my PC hard drive. I tried again to save a program .raw file, and again got the NAME ERR message with a zero byte file stored on the FAT drive. .... Since this problem does not appear to affect all DM41X units that were shipped, it would appear that this is not a problem with firmware, but something else.
My dm41x has the same problem. I had done the following test: Formatted FAT on the 41x, wrote a small program, saved RAW - the RAW was OK. Then my own RAW programs (approx. 25 pcs.) Were copied to the 41x again and the error occurs again.

My dm41x hat the s/n 00408 and it had an complete empty FAT (no files or dirs) when I recieved it.
My programmable calculators - former: CBM PR100, HP41CV, HP28S, HP11C - current: HP48G(256kB), HP35S, Prime, DM41X, DM42
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Getting NAME ERR when I save program raw files

Post by HPMike »

Peet wrote:
Tue Oct 13, 2020 5:47 pm
HPMike wrote:
Tue Oct 13, 2020 5:32 pm
I reloaded all data that I had backed up to my PC hard drive. I tried again to save a program .raw file, and again got the NAME ERR message with a zero byte file stored on the FAT drive. .... Since this problem does not appear to affect all DM41X units that were shipped, it would appear that this is not a problem with firmware, but something else.
My dm41x has the same problem. I had done the following test: Formatted FAT on the 41x, wrote a small program, saved RAW - the RAW was OK. Then my own RAW programs (approx. 25 pcs.) Were copied to the 41x again and the error occurs again.

My dm41x hat the s/n 00408 and it had an complete empty FAT (no files or dirs) when I recieved it.
Do you mean that you copied your programs from your PC/MAC to your DM41X FAT drive, loaded them into your DM41X memory, and then tried to resave them with the same name when the NAME ERR occurred ?

Not only can't I resave any files, when I create a new program and attempt to save it, I get the same error and zero byte file.

My FAT disk arrived with directories and files in some of them. When I reformatted it, some of the directories were recreated, and others were not.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
Peet
Posts: 258
Joined: Tue Sep 29, 2020 12:01 am
Location: Germany

Re: Getting NAME ERR when I save program raw files

Post by Peet »

HPMike wrote:
Tue Oct 13, 2020 6:16 pm
Do you mean that you copied your programs from your PC/MAC to your DM41X FAT drive, loaded them into your DM41X memory, and then tried to resave them with the same name when the NAME ERR occurred ?

Not only can't I resave any files, when I create a new program and attempt to save it, I get the same error and zero byte file.
The NAME ERR did not occurred after reformating with no files on the disk and saving the first file, the raw was OK. After copying about 20 raw from the PC to the 41x the error occurs both when overwriting a file and when entering a new name - tried differend Names "abc" "x" even "123" always a zero-byte raw with this name. Copying from the PC to the 41x is OK, the 41x can read the RAWs but not "resave" them.
My programmable calculators - former: CBM PR100, HP41CV, HP28S, HP11C - current: HP48G(256kB), HP35S, Prime, DM41X, DM42
Post Reply