Getting NAME ERR when I save program raw files

Discussion around the SwissMicros DM41X calculator
Post Reply
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Getting NAME ERR when I save program raw files

Post by HPMike »

Today I got a NAME ERR when attempting to save a program to the FAT disk. The file appears in the list, but is zero byte. I tried to resave an existing file, and it did the same thing. I’m confused ?

So I just connected the DM41X to my PC, and the files are indeed empty zero byte with recent date stamps, so they were created, but something went wrong. The file names are correct, so I don't know exactly what NAME ERR refers to. I had previously saved a program raw file successfully, so this problem just surfaced out of the blue.
Last edited by HPMike on Sun Oct 11, 2020 1:23 am, edited 3 times in total.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
Peet
Posts: 257
Joined: Tue Sep 29, 2020 12:01 am
Location: Germany

Re: Getting NAME ERR when I save program raw files

Post by Peet »

Same on my DM41X. Save a RAW works on an empty FAT Disk, but after using it I got the same Error.
My programmable calculators - former: CBM PR100, HP41CV, HP28S, HP11C - current: HP48G(256kB), HP35S, Prime, DM41X, DM42
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Getting NAME ERR when I save program raw files

Post by rprosperi »

I've no idea how zero length files were created, but I'd try these steps:

1. Connect the 41X to your PC or Mac, go to the folder with the problem files (probably /PROG)
2. Delete all zero length files
3. Tell the PC side to disconnect, this should make the 41X exit USB mode, but (depending on how it's done on the PC side) you may have to press [ON] on the 41X if the PC exiting USB mode does not do this automatically.
4. Try to save the file again, you should get no error as there is no file collision

If this does not work, you're FAT is likely corrupted (possible from not telling PC to disconnect before removing the cable, and other causes) so you should save whatever files on the FAT that you can, and then format the USB Flash from the DMCP menu (6.5.5 in the manual)
--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:34 am
I've no idea how zero length files were created, but I'd try these steps:

1. Connect the 41X to your PC or Mac, go to the folder with the problem files (probably /PROG)
2. Delete all zero length files
3. Tell the PC side to disconnect, this should make the 41X exit USB mode, but (depending on how it's done on the PC side) you may have to press [ON] on the 41X if the PC exiting USB mode does not do this automatically.
4. Try to save the file again, you should get no error as there is no file collision

If this does not work, you're FAT is likely corrupted (possible from not telling PC to disconnect before removing the cable, and other causes) so you should save whatever files on the FAT that you can, and then format the USB Flash from the DMCP menu (6.5.5 in the manual)
Wow ! I already tried deleting all zero length files, and the same thing happened again. I've always properly released the USB drive from my PC before disconnecting. I've already backed up all my FAT files to my PC. Will formatting delete anything else that I've not saved ? Will the calculator start up properly after formatting, or will I have to reload the firmware as well. Mind you, I can copy a .raw file from my PC to the FAT drive, and then reload it into the calculator without any problems, and the pc does not report any problems with the FAT drive when it is connected. So, if the FAT drive is truly corrupt, would I be able to do that ?
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Getting NAME ERR when I save program raw files

Post by rprosperi »

No, formatting does not affect the f/w, only the FAT portion, so if you have your other folder\files copied, just format it and then copy the good folders and non-zero length files back to FAT.

As for how the zero-length files are being created, are you specifying the top global label of the FOCAL program (aka the program's 'name') you want to save in Alpha before doing the save? If you don't specify the program to save in alpha, and your current program is the final program space (terminated by .END.) which is empty, then you are basically telling the 41X to save an empty file.

If the trouble persists, please post the exact steps you use to create a very short program and then save it to FAT, so we can reproduce them to see either if we can reproduce an error, or see where some step is possibly not correct.
--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 »

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
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
Peet
Posts: 257
Joined: Tue Sep 29, 2020 12:01 am
Location: Germany

Re: Getting NAME ERR when I save program raw files

Post by Peet »

I tried to answer yesterday. But my posting did not appear.

I have the same issue. If the fat disc has been freshly formatted, I can export a .raw without any problems.
With around 20 programs around the folder, I get the name error and 0-byte files when saving.
The chosen name does not matter. The error occurs even when overwriting existing files.
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:
Sun Oct 11, 2020 9:01 am
I tried to answer yesterday. But my posting did not appear.

I have the same issue. If the fat disc has been freshly formatted, I can export a .raw without any problems.
With around 20 programs around the folder, I get the name error and 0-byte files when saving.
The chosen name does not matter. The error occurs even when overwriting existing files.
Yes, I also got this error when I overwrote an existing file with the same name. In my case, I only had a single .raw file saved in the /PROG folder when this error occured. However, I have no problem copying a file from my PC to the FAT drive, and then loading it into the DM41X. So, it sounds like there is some problem with the firmware that is causing this to happen.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
dlachieze
Posts: 613
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: Getting NAME ERR when I save program raw files

Post by dlachieze »

Do you put the name of the program to be saved in the Alpha register as mentioned in the DM41X User Manual?
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 2:21 pm
Do you put the name of the program to be saved in the Alpha register as mentioned in the DM41X User Manual?
Yes, and I've previously saved programs successfully.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
Post Reply