I have the following schematic. It is almost a copy from the ATSAMB11 datasheet with the only change that I use the same VDDIO and VBAT supply.
On pin 24 (SPI0_SSN_SD) I have connected a led and on pin 25 (SPI0_MISO) I have connected a switch (as input) that on the other side connects to GND (no external pullups, etc).
I have also created a small program at Atmel Studio:
struct gpio_config config_gpio_pin;
config_gpio_pin.direction = GPIO_PIN_DIR_INPUT;
config_gpio_pin.input_pull = GPIO_PIN_PULL_UP;
config_gpio_pin.direction = GPIO_PIN_DIR_OUTPUT;
/* Initialize the SAM system */
/* Replace with your application code */
bool pin_state = gpio_pin_get_input_level(25);
Then, I try setting breakpoints inside the main() function and try to debug it. Although the software seems to be uploaded to the microprocessor, I don't see any of the breakpoints being hit at all. Atmel studio adds automatically a breakpoint at address 0x10009000 or at address 0x1236 but I don't know what these addresses are.
I try to press the switch to see if the led will turn on but it seems like the processor is dead.
Does anyone have any idea of what might be happening?
Is it possible that although Atmel ICE recognizes the processor like bellow that it can not run any program because it might be dead?
Device signature 0x2000B1
SRAM size 136 KB
VCC range 2.3 - 3.6 V
Maximum operating speed 26 MHz
Anyone having some advice please?
Thank you very much.