Question about Sammy-C21 board
-
@fcwilt I'm using a Sammy-C21 on a CannedERCF and created a build environment for compiling firmware so I'll try to remember the steps:
Towards the bottom of the Duet3Expansion repository are the links to three packages you need to download (gcc cross compiler, the Eclipse IDE, and the GNU Arm Eclipse bundle)
Install them.
When installing Eclipse you want Eclipse for C/C++.
I created a folder on my drive, then cloned the following repositories:
- Duet3Expansion
3.5-dev
- CANlib
3.5-dev
- RRFLibraries
3.5-dev
- CoreN2G
3.5-dev
- FreeRTOS
3.5-dev
- Qfplib-M0-full
3.5-dev
and added that folder as a workspace.
The FreeRTOS repository also has instructions for adding a PATH variable to the project in Eclipse necessary to compile for the Sammy-C21.
After that you make the necessary changes to your code, set the build target in eclipse to
SAMMY-C21
, cross your fingers, and hope for the best! - Duet3Expansion
-
Thank you VERY much.
I will download the items mentioned and see what kind of trouble I can get into.
Frederick
-
Back again.
I already have questions:
You posted then cloned the following repositories
How is that done?
You posted and added that folder as a workspace.
How is that done?
Thanks again.
Frederick
-
For cloning the repositories, I use
git
from the command prompt. I believe you can also use Github Desktop if you're more comfortable with a GUI, though I've never used it personally. You need to installgit
or Github Desktop for your OS if you haven't already.For each repository, there is a
button. If you click it'll have the particular URL for cloning the repository using the command line, or a button for opening in Github Desktop.
So for example, to clone the 3.5-dev branch of Duet3Expansion, I open my terminal inside the workspace folder I created and type:
git clone --branch 3.5-dev https://github.com/Duet3D/Duet3Expansion.git
Do that for each of the repositories above, changing the URL for each, and placing them all into the same folder.
In the end, it should look something like this:
After that, open Eclipse. It should ask you to select a directory as a workspace. Point it to the folder with your cloned repositories.
Then to the File menu, and select
Open Projects from File System...
.Set the Import Source is your workspace folder and it should show your folders.
Click finish and you should see everything in Eclipse
Hope this helps!
-
-
@fcwilt FYI, depending on your needs, the compiled 'standard' Sammy firmware is located in the RRF releases page - you might not need to compile your own version!
-
@omtek said in Question about Sammy-C21 board:
Duet3Expansion 3.5-dev
CANlib 3.5-dev
RRFLibraries 3.5-dev
CoreN2G 3.5-dev
FreeRTOS 3.5-dev
Qfplib-M0-full 3.5-devIf you are starting a new project i would base it off the 3.6-dev
-
Thanks for the info.
I am running firmware 3.4.6 on my two Mini 5+ boards.
Will the 3.6 you mentioned work with the boards despite them being at 3.4.6?
Frederick
-
@fcwilt all the firmware builds need to be the same version. If you don't want to update to 3.6beta yet then you will need to build the version that's the same as you want to run on the mainboard.
-
-
@fcwilt
To me it sounds like you have to buy a cow to get a liter of milk. -
@DIY-O-Sphere said in Question about Sammy-C21 board:
@fcwilt
To me it sounds like you have to buy a cow to get a liter of milk.??? I have no idea what that means ???
Frederick
-
@fcwilt
It means that the effort is quite high.
It's a poor performance that the latest firmware is no longer provided.
Until now I thought the Sammy-C21 is a cool option, but not any more.... -
@DIY-O-Sphere said in Question about Sammy-C21 board:
@fcwilt
It means that the effort is quite high.
It's a poor performance that the latest firmware is no longer provided.
Until now I thought the Sammy-C21 is a cool option, but not any more....You must be mistaken, the latest compiled firmware for the Sammy-C21 is 100% up to date with 3.6.0 Beta 3 here: https://github.com/Duet3D/RepRapFirmware/releases , and you can see the 3.6-dev branch here: https://github.com/Duet3D/Duet3Expansion/tree/3.6-dev
I've recently worked on a Sammy-C21 project and the firmware is up to date and available.
-
@DIY-O-Sphere the dev work would be if the example firmware for the sammyc21 did not provide the required IO for example, not to bring it up to the latest version
-
@sebkritikel
Thanks for the clarification. And for the correct reference.
If you go to the sammy-c21 documentation. The dev branch is linked and as far as I can see it ends with 3.4.2.
Maybe i'm too stupid to use github. -
@DIY-O-Sphere please can you post the page you mean I will update the docs
-
@T3P3Tony
https://docs.duet3d.com/en/Duet3D_hardware/Duet_3_family/Using_the_Sammy-C21_development_board_with_Duet_3#duet3d-firmware-source-code-for-sammyc21
Sorry I have overseen that the section is for the source code.But still can't get it to see the right release.
Shouldn't it show 3.5.4 and switch when you select a different version in the branch pulldown?
Or is it just because the zip file for the version is missing?I would suggest putting the section Loading firmware at the end. And i think it needs a bit of a rework
I am still confused as to why the firmware has to be adapted. The table shows many ports that can be used as input.
The original request was here
As far as i can see, standard io's can do the job.
What am I missing here? -
@DIY-O-Sphere said in Question about Sammy-C21 board:
As far as i can see, standard io's can do the job.
What am I missing here?Can at least answer this! As an example, some folks have modified the source to allow the Sammy-C21 to drive 2x external drivers. The 'example' source (or standard release) is set up to only drive a single external driver. For the 2x external driver version, this has been used by some as part of the ERCF multi-filament system, as seen here: https://forum.duet3d.com/topic/27573/canned-ercf-board-v1-0-beta2/24
-
@DIY-O-Sphere the releases are now released as part of the main RepRapFirmware repository. E.g.:
https://github.com/Duet3D/RepRapFirmware/releases/download/3.6.0-beta.3/Duet3Firmware_SAMMYC21.bin
You can select the source branch in GitHub for the expansion project, here is 3.5-dev:
https://github.com/Duet3D/Duet3Expansion/tree/3.6-dev
You are correct that the default firmware has lots of IO enabled so if that's enough for @fcwilt then they won't need to modify it. If however they need more, they can.