"HDD" LED stays on when turning off X16 during SD card access

Get help from the community & developers with the X16 hardware if you can't find the solution elsewhere
Post Reply
Dacobi
Posts: 292
Joined: Sun Dec 19, 2021 1:44 am
Location: Samsø, Denmark
Contact:

Hardware "HDD" LED stays on when turning off X16 during SD card access

Post by Dacobi »

I have a "problem" with my X16, which is that the "HDD" LED stays on when I shut off the machine with the power button, while a program is accessing the SD card.
I've tested this with the demos that stream audio/images from the SD card as well as my game, which streams audio from the SD card in the menu.

The "HDD" LED turns off, when I turn the machine back on.

Is this normal behavior/a known bug or an issue with my board?
User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by JimmyDansbo »

I have seen similar behavior on both the official board and the OtterX.

It is strange as the code in the SMC clearly turns of the activity light on both a poweroff and a reset.
I wonder if there is something in the timing that prevents the SMC from actually turning the activity LED off?
Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
Stefan
Posts: 454
Joined: Thu Aug 20, 2020 8:59 am

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by Stefan »

I've not been able to replicate that issue. What Kernal and SMC firmware versions do you use?
Dacobi
Posts: 292
Joined: Sun Dec 19, 2021 1:44 am
Location: Samsø, Denmark
Contact:

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by Dacobi »

I've not been able to replicate that issue. What Kernal and SMC firmware versions do you use?
I haven't changed anything since I received the board, which is running ROM v47 and VERA v0.3.2, with 2MB RAM and User Port installed.
Stefan
Posts: 454
Joined: Thu Aug 20, 2020 8:59 am

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by Stefan »

AFAIK, R47 hasn’t been published yet. The VERA firmware doesn’t control the activity LED. The easiest way to get what firmware versions are installed is to type HELP
Dacobi
Posts: 292
Joined: Sun Dec 19, 2021 1:44 am
Location: Samsø, Denmark
Contact:

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by Dacobi »

I got R47 from neofetch, but HELP also says pre-release R47

IMG20240222174943.jpg
IMG20240222174943.jpg (5.44 MiB) Viewed 2318 times
DragWx
Posts: 333
Joined: Tue Mar 07, 2023 9:07 pm

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by DragWx »

I found this issue on Github which might be the issue you're describing. It should be fixed in the latest version of the SMC firmware (45.1.1).
Stefan
Posts: 454
Joined: Thu Aug 20, 2020 8:59 am

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by Stefan »

Yes, looking at the Github blame, it seems that the code that turns off the activity LED was added to the Power Off sequence as part of Pull Request #18, merged on Oct 18, 2023.

The SMC firmware version was changed to 45.1.0 on Sep 3, 2023 and to 45.1.1 on Oct 20, 2023. There is no published 45.1.0 release, and it's likely that the firmware installed on Dacobi's machine is from before the fix merged on Oct 18, 2023. I'm running the latest master branch, and it doesn't have a problem with the activity LED.
Dacobi
Posts: 292
Joined: Sun Dec 19, 2021 1:44 am
Location: Samsø, Denmark
Contact:

Re: "HDD" LED stays on when turning off X16 during SD card access

Post by Dacobi »

Is the SMC firmware a part of/embedded in the ROM or does it need to be flashed separately?

Edit: nevermind, I found it
https://github.com/X16Community/x16-doc ... 20Guide.md
Post Reply