element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Need to flash the bootloader of Atmel ATSAMD21J18 - Not sure how
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 1 answer
  • Subscribers 274 subscribers
  • Views 1805 views
  • Users 0 members are here
  • microchip
  • steamdeck
  • bootloader
  • ATSAMD21J18
  • EV2
  • atmel
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Need to flash the bootloader of Atmel ATSAMD21J18 - Not sure how

stanto
stanto over 1 year ago

I've been sent a Valve SteamDeck, unfortunately, someone has managed to flash the wrong bootloader onto the microcontroller that is in charge of the joypad.

SteamDeck

The joypad usually connects over USB, and the SteamDeck runs Archlinux, it has scripts that program the bootloader over USB/I2C (I'm not sure which).

There are two ATSAMD21J18's in use, one for each side of the controller, left and right, and one side then connects to the main motherboard of the device. The joypad when working identifies itself as a USB device.

Because it has been flashed with the wrong bootloader, it doesn't identify itself to the operating system, so I can no longer program it via the scripts.

It is also a somewhat unique unit, it's an 'EV2' which is basically an engineering sample, so it needs a particular older firmware/bootloader and is out of support from Valve.

This file contains the firmware:

https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/jupiter-hw-support-20220329.1-1-any.pkg.tar.zst

Situated in /usr/share/jupiter_controller_fw_updater are the firmware files, along with update python scripts in there, and /usr/bin/jupiter-controller-update being the main script to command the updates.

Without being able to update it via the operating system that means I need to update it via a chip programmer. Here's a look at one of the boards:

Controller boardController board

It appears that there's a footprint for attaching a programmer, about 6 'test pads'. I've seen cable assemblies for mounting/latching onto the board like this before.

I own an Atmel SAM ICE, but I haven't really used it in earnest before, and I don't have the type of cable assembly for mounting to this test/programming pad.

Does anyone have any tips/advice/links on what software/setup I would use to code the chips with the firmware files, and what I should actually use to program these chips? Further where I might acquire an appropriate cable assembly for the programming pads, ideally affordably, I could jimmy rig something together with wires I suppose, but I want to explore all options.

I have access to Windows and Linux to be able to do this.

Thanks for reading.

  • Sign in to reply
  • Cancel

Top Replies

  • genebren
    genebren over 1 year ago +4 suggested
    The footprints on the boards for ISP programming are from Tag-Connect | Tag-Connect . They can be ordered direct from their website or through various distributors. Thw atmel ICE is an appropriate device…
  • genebren
    genebren over 1 year ago in reply to stanto +1
    The Atmel ICE will work with the following cable: There are a few different types of programmer connection schemes for the ATSAMD21J18 devices. You may want to see if you can trace how the Tag-connect…
  • stanto
    stanto over 1 year ago in reply to genebren +1
    I'd be tempted to jimmy-rig my own cable for this, but I'm not on a deadline and I'd rather have something that "just works" and is "as intended". I've had too many solutions be very hacky and bodged together…
  • genebren
    0 genebren over 1 year ago

    The footprints on the boards for ISP programming are from Tag-Connect | Tag-Connect .  They can be ordered direct from their website or through various distributors.

    Thw atmel ICE is an appropriate device to reprogram the ATSAMD21J18 devices.  You should be able to download the MicroChip Studio from the MicroChip website (they bought Amtel several years ago).

    With the above pieces and the firmware from your link, should be all that you need to restore the bootloader.

    Good luck!

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • stanto
    0 stanto over 1 year ago in reply to genebren

    Tag connect! Thanks I'll check it out!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stanto
    0 stanto over 1 year ago in reply to genebren

    Hm, seems I have the Atmel SAM-ICE

    image

    And not the atmel ICE

    image

    I'm not sure which tag connect cable would be correct, if there is one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • genebren
    0 genebren over 1 year ago in reply to stanto

    The Atmel ICE will work with the following cable:

    image

    There are a few different types of programmer connection schemes for the ATSAMD21J18 devices. You may want to see if you can trace how the Tag-connect pins are connected to the ATSAMD21J18 device, and double check the data sheet for the ATSAMD21J18, Atmel ICE and the Tag-Connect to see if the pins are routed correctly.  (I believe that the ULINK and Atmel ICE are the same hardware).

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stanto
    0 stanto over 1 year ago in reply to genebren
    genebren said:
    The Atmel ICE will work with the following cable:

    Do you mean the Atmel SAM-ICE ? 

    Confusing, isn't it? Thanks for giving this your attention.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • genebren
    0 genebren over 1 year ago in reply to stanto

    Yes, the SAM-ICE. (My mistake).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stanto
    0 stanto over 1 year ago in reply to genebren

    I'd be tempted to jimmy-rig my own cable for this, but I'm not on a deadline and I'd rather have something that "just works" and is "as intended". I've had too many solutions be very hacky and bodged together, only to be tripped up because the proprietary software doesn't identify that, while "that" programmer has the same connections, because it isn't specifically identifying itself as the tool it expects to work with the hardware, it won't.

    To attempt to mitigate this I figured I'd check out my local Hackspace for an atmel-ice, I remembered seeing two there, but one was damaged.

    The 'working' one isn't there anymore, so I have another project.

    atmel ice 

    It looks like it has ripped off a pad that matters, so maybe I can get away with scraping off a bit of the green and soldering directly to the trace from the pin.

    atmel-ice-2

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • genebren
    0 genebren over 1 year ago in reply to stanto

    Good luck with your repair job.  You are probably right about the non-working aspect being related to the missing USB jack.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube