Closed vacagonzalo2 closed 3 months ago
Hello, I never worked with ATSAMC20 series, but I think you need the cmsis pack file for this family to make things work. You can download it at https://packs.download.microchip.com/, or directly by this link: https://packs.download.microchip.com/Microchip.SAMC20_DFP.3.5.93.atpack
Then, add this argument to your command line: --pack <path-to-pack-file>
@hagibr thank you for your response.
Yes, I had installed the pack with the command: pyocd pack install atsamc20e18a
If I run pyocd pack show
, this is what I get:
ifupper@raspberrypi:~ $ pyocd pack show
Pack Version
----------------------------
Keil.SAM-C_DFP 1.4.3
The problem seems to be that I cannot flash the target more than once. I have to erase it from the IDE.
This problem is also present on Windows 10 pro.
more info on the packs... on the raspberrypi:
ifupper@raspberrypi:~ $ pyocd pack find atsamc20
Part Vendor Pack Version Installed
--------------------------------------------------------------------
ATSAMC20E15A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20E16A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20E17A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20E18A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20G15A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20G16A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20G17A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20G18A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20J15A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20J16A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20J17A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20J17AU Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20J18A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20J18AU Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20N17A Microchip Keil.SAM-C_DFP 1.4.3 True
ATSAMC20N18A Microchip Keil.SAM-C_DFP 1.4.3 True
on Windows:
F:\gnvaca>pyocd pack find samc20
Part Vendor Pack Version Installed
--------------------------------------------------------------------------
ATSAMC20E15A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20E16A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20E17A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20E18A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20G15A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20G16A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20G17A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20G18A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20J15A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20J16A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20J17A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20J17AU Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20J18A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20J18AU Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20N17A Microchip Microchip.SAMC20_DFP 3.5.93 True
ATSAMC20N18A Microchip Microchip.SAMC20_DFP 3.5.93 True
I was able to avoid this problem by excecuting pyocd erase --mass --target atsamc20e18a
before loading the binary.
Intended use
I want to flash and erase my target (multiple times if needed) from a Raspberry Pi. I have to use a raw binary in this case, I cannot use the HEX format.
Result
I was able to program the target and its working. However I can only erase or re program it from a vendor's IDE (MPLAB X).
System information
Debug probe: ATMEL-ICE
HOST: Raspberry Pi 4B
Log