adafruit / asf4

Microchip/Atmel ASF4 code libraries
32 stars 32 forks source link

Atmel Start update script still working? #29

Open st-arnold opened 4 years ago

st-arnold commented 4 years ago

I'm a beginner attemping to port MicroPython to SAME54 (Xplained Pro board). So I turns out I have to load the required ASF4 stuff for SAME54 to be able to compile.

Is tools/update_from_atmel_start.py still working for everyone else? I'm getting 502 Bad gateway even for the first target (SAMD21). In Atmel Studio 7 I am able to create a new START project so the server is probably OK. I tried changing the URL prefix in the script from http:// to https:// (since in web browser the page start.atmel.com seems to use that), to no avail.

How do I create json file for SAME54? Now I just copied samd51.json and manually replaced every SAMD51 -> SAME54 and every SAMD51G19A-MF -> SAME54P20A-MF, but is there anoter method to create it? If yes, where is it documented?

What is format_json.py supposed to do? It looks like it just performs some cleanup on json file, is this right?

tannewt commented 4 years ago

Hi @st-arnold. As far as I know it's been a while since we last ran the script. The json file is snagged from the Atmel Start website generator by looking at the network requests that the browser is making.

format_json.py is there to pretty print the json so that it is human readable. The Atmel endpoint died if you gave it the pretty print version so I had to make a script to help with it.

sabas1080 commented 3 years ago

Hello @tannewt

Im triying to do this for SAML21

These are the JSON files you are referring to?

Captura de Pantalla 2021-05-11 a la(s) 14 13 50 Captura de Pantalla 2021-05-11 a la(s) 14 14 17

Should I leave the default configuration in ATMEL START?

Thanks

tannewt commented 3 years ago

Sorry, I haven't looked in ages. I think it is the default.