this post was submitted on 13 Mar 2024
36 points (97.4% liked)

flashlight

2971 readers
98 users here now

Portable illumination

Rules:

  1. Be excellent to each other
  2. Don't be the reason we need to make more rules

Related:

founded 1 year ago
MODERATORS
36
submitted 8 months ago* (last edited 8 months ago) by solrize to c/flashlight
 

And, any idea how to use them? 3 pins is perplexing.

you are viewing a single comment's thread
view the rest of the comments
[–] j4k3 12 points 8 months ago* (last edited 8 months ago) (4 children)
[–] EdibleFriend 18 points 8 months ago

AAAAH I LOVE YOU FLASHLIGHT LOVING BASTARDS

Seriously every time this group crosses my feed it makes me so goddamn happy. You guys and you're incredible niche little love that you know so much about I fucking love it

[–] [email protected] 9 points 8 months ago (2 children)

Nope.

UPDI used on Atmel micros on Anduril capable flashlights uses a single line for debug and flashing. Much earlier than that, Motorola/Freescale/NXP Coldfire, S12, and some other MCUs used BDM which was also a single wire protocol.

If you want to flash a newer Anduril to this light, look here for hardware and procedures to use those pads.

[–] solrize 3 points 8 months ago

Wow are you saying this light has updi and a t1616? Nice! I knew that the sp10 pro has that but I had thought the LT1S was older. I just checked my sp10 pro though, and sure enough, it has similar contacts. So this is welcome news. Thanks!

[–] Manfred 1 points 8 months ago* (last edited 8 months ago) (1 children)

The programming hardware won't help because the firmware is closed source.

[–] [email protected] 1 points 8 months ago (1 children)

You don't need the original source to program a flashlight. If it's ATTiny based then Anduril has your back.

[–] Manfred 2 points 8 months ago

I agree. If you are able to define the HW specific part of Anduril for this new model you can create a hex file and flash it.

[–] [email protected] 3 points 8 months ago (1 children)

Aren't most microcontrollers programmed over UART? AVR has their own one wire programming interface, but neither use clock signals.

[–] j4k3 1 points 8 months ago (1 children)

One wire is more for just a few sensors. I think the STmicro stuff has a 1 wire option. At least one of my programmers has a label for it, but with all my hobby stuff, I've never used 1 wire for programming. I have only used it for a temperature sensor as far as I can recall. Everything is either JTAG or UART in my limited experience.

[–] [email protected] 4 points 8 months ago

So there's the OneWire protocol that's for sensors, different microcontrollers will implement a programming protocol using a single wire, which is what I meant.

Jtag has a clock signal, but is generally 5 lines.

My point being that looking for similar trace lengths because one is a clock signal isn't sound advice. All the common protocols either don't use a clock signal, or are more than two lines.

[–] solrize 3 points 8 months ago

I won't know for sure without doing a reflash, but I think al177 has the right answer: those pads are for the UPDI system on newer AVR's, so this is great news once I can get a UPDI dongle. My D4v2 uses an older chip and 6 contact pads. Thanks for the response though!