Flip&Click SAM3X pin definitions.

General discussion on mikroElektronika development boards.
Post Reply
Author
Message
awneil
Posts: 32
Joined: 30 Mar 2023 12:10

Flip&Click SAM3X pin definitions.

#1 Post by awneil » 30 Mar 2023 16:55

Is there a header file with Flip&Click SAM3X pin definitions?

Specifically for the Arduino IDE just now, but something general should do...

awneil
Posts: 32
Joined: 30 Mar 2023 12:10

Re: Flip&Click SAM3X pin definitions.

#2 Post by awneil » 01 Apr 2023 10:17

(deleted)

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Flip&Click SAM3X pin definitions.

#3 Post by IvanJeremic » 06 Apr 2023 11:55

Hi,

Here is the schematic of he board and a manual:
https://download.mikroe.com/documents/s ... l-v100.pdf

Here is a manual on how to program the board if you need it:
https://developer.thingstream.io/guides ... ng-started

Regards,

Ivan.

awneil
Posts: 32
Joined: 30 Mar 2023 12:10

Re: Flip&Click SAM3X pin definitions.

#4 Post by awneil » 11 Apr 2023 17:21

Yes, but is there a header with the pin definitions?

It's laborious (and error-prone) to have to manually transcribe from the schematic!

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Flip&Click SAM3X pin definitions.

#5 Post by filip » 13 Apr 2023 13:26

Hi,

I'm afraid we don't have a header for this.

Regards,
Filip.

awneil
Posts: 32
Joined: 30 Mar 2023 12:10

Re: Flip&Click SAM3X pin definitions.

#6 Post by awneil » 17 Apr 2023 09:44

That does seem like a major omission.

Surely, that should be considered a basic part of the "board support package"?

It's a fundamental part of the usability of any development board!

EDIT

There isn't even a table of pin usage - the *only* way is to manually trace it from the schematic. :(
Last edited by awneil on 17 Apr 2023 09:49, edited 1 time in total.

awneil
Posts: 32
Joined: 30 Mar 2023 12:10

Re: Flip&Click SAM3X pin definitions.

#7 Post by awneil » 17 Apr 2023 09:45

(oops! double post - can't delete)

awneil
Posts: 32
Joined: 30 Mar 2023 12:10

Re: Flip&Click SAM3X pin definitions.

#8 Post by awneil » 17 Apr 2023 21:17

OK so here's a spreadsheet showing what's connected to all the pins of the SAM3, and the pinouts of the mikroBUS and Arduino headers:
Attachments
Flip-Click-SAM3X-Pinouts_v1-0.xlsx
(118.69 KiB) Downloaded 28 times

revida
Posts: 1
Joined: 04 Mar 2023 06:18

Re: Flip&Click SAM3X pin definitions.

#9 Post by revida » 18 Apr 2023 07:32

Yes, there is a header file available with Flip&Click SAM3X pin definitions. The file is called "variant.h" and it can be found in the "variants" folder of the "Arduino SAM Boards" package.

To locate the file on your computer, you can follow these steps:

Open the Arduino IDE
Go to "Tools" > "Board" and select "Arduino Due (Programming Port)"
Go to "File" > "Examples" > "01.Basics" and select "Blink"
Click on the "Verify" button to compile the sketch
Once the compilation is complete, click on the "Show verbose output" button (the button with the icon of a magnifying glass located on the right side of the Arduino IDE window)
Scroll up in the output window and look for the line that starts with "Using library Arduino SAM Boards". The line should contain the path to the "variants" folder.
Navigate to the "variants" folder and locate the "variant.h" file.
The "variant.h" file contains the pin definitions for the Flip&Click SAM3X board. You can use these definitions in your sketches by including the file at the beginning of your code using the following line:

#include <variant.h>

Smart_Aleck
Posts: 16
Joined: 07 Feb 2023 20:45

Re: Flip&Click SAM3X pin definitions.

#10 Post by Smart_Aleck » 18 Apr 2023 16:32

Looks very good !

Thanks for sharing.

Post Reply

Return to “Development Boards”