0

Unable to compile Gemma M0 bootcode
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Unable to compile Gemma M0 bootcode

by gingle on Tue Jun 01, 2021 5:36 pm

I have been trying to compile the UF2 bootloader for gemma m0. I downloaded the uf2-samdx1 files from git hub and put them in the same directory as circuitpython. I have been able to compile circuitpython OK. When I tried a "make V=1 BOARD=gemma_m0" I got the following errors shown in photo 1. I am wondering if I have the wrong compiler version. I am using the compilers shown in photo2. Any help would be appreciated.
Attachments
compiler.jpg
Photo2
compiler.jpg (69.89 KiB) Viewed 1036 times
Photo1.jpg
compiler output
Photo1.jpg (155.72 KiB) Viewed 1036 times

gingle
 
Posts: 35
Joined: Tue Mar 07, 2017 2:46 pm

Re: Unable to compile Gemma M0 bootcode

by mikeysklar on Fri Jun 04, 2021 11:08 am

I take it you really want a custom bootloader for the Gemma-M0 rather than using our pre-packaged ones?

I noticed you are passing a version number V=1, but we start all our boards with V=0 by default and there is only a version zero for the gemma-m0.

Which release of the gcc-arm are you using. The website seems to post versions by date rather than by release numbers.

Screen Shot 2021-06-04 at 8.03.48 AM.png
Screen Shot 2021-06-04 at 8.03.48 AM.png (188.73 KiB) Viewed 931 times

mikeysklar
 
Posts: 4981
Joined: Mon Aug 01, 2016 8:10 pm

Re: Unable to compile Gemma M0 bootcode

by gingle on Tue Jun 08, 2021 1:01 pm

Thanks for your reply. I want to readdress the pin that drives the LED. The version of gcc-arm that I am using is "gcc-arm-none-eabi-10-2020-q4-major". I am following the directions for creating the boot code in ~/uf2-samdx1/README.md. I take V=1 to mean "use Verbose mode" as make V=1 BOARD=gemma_m0. I tried deleting V=1 with the same results as before.
I see that the file that is failing is in core_cm0plus.h which is dated 22 August 2014. Is this outdated?

gingle
 
Posts: 35
Joined: Tue Mar 07, 2017 2:46 pm

Re: Unable to compile Gemma M0 bootcode

by plitog on Tue Jun 08, 2021 2:14 pm

Are you referring to the error stating "listing the stack pointer register 'sp' in a clobber list is deprecated"? If so, it looks like the uf2-samdx1 make file is using the -Wno-deprecated-declarations switch to ignore those warnings. Does your makefile have that same flag specified?

plitog
 
Posts: 4
Joined: Tue May 25, 2021 8:24 pm

Re: Unable to compile Gemma M0 bootcode

by gingle on Wed Jun 09, 2021 7:52 pm

I am trying to simply compile the UF2 file from the git hub repository using makefile contained within the download. I find that there are two UF2 files containing all the Adafruit boards. They are "uf2-samdx1-3.13.0" and "uf2-samdx1-master". It appears that the makefile in uf2-samdx1-master is dated 2021-04-23 (6867 bytes) and the uf2-samdx1-3.13.0 is dated 2021-02-21 (7061 bytes). Can you tell me which one is used to generate the board UF2 bootloaders listed on https://github.com/adafruit/uf2-samdx1/releases or is there another UF2 container that I have not listed?

gingle
 
Posts: 35
Joined: Tue Mar 07, 2017 2:46 pm

Re: Unable to compile Gemma M0 bootcode

by mikeysklar on Thu Jun 10, 2021 11:37 am

@gingle,

If you press the "Tags" button on the upper portion of the github releases page you can see each version drop. I'm assuming we are using 3.13.0 for the current bootloader drops, but I don't know how to verify that.

If you wanted to try and build previous versions (3.12.0) etc.. you can try this link:

https://github.com/adafruit/uf2-samdx1/tags

mikeysklar
 
Posts: 4981
Joined: Mon Aug 01, 2016 8:10 pm

Re: Unable to compile Gemma M0 bootcode

by gingle on Fri Jun 11, 2021 12:35 pm

Problem solved. I was using https://github.com/microsoft/uf2-samdx1.git instead of the correct file https://github.com/adafruit/uf2-samdx1.git. Everything compiles correctly now. Thanks, I am learning my way around git with your help.

gingle
 
Posts: 35
Joined: Tue Mar 07, 2017 2:46 pm

Re: Unable to compile Gemma M0 bootcode

by gingle on Thu Jul 01, 2021 6:21 pm

Is there a link similar to the UF2-samdx1/tags for the various versions of Circuitpython? I am not clear how you use "git checkout 6.2.x" that was mentioned in "Building CircuitPython" by Dan Halbert. I am having difficulty compiling boards in 7.0. Some compile and some don't compile. I am using "make" without any changes to any code. I was able to build feather_m0_basic but not feather_m4_express among others that I tried. I would like to regress to 6.2.0 and see if I get the same results.
I am using VPubuntu running in Oracle VM Virtual Box. I am attaching the errors that I am seeing.
Attachments
errors.jpg
errors.jpg (132.09 KiB) Viewed 48 times

gingle
 
Posts: 35
Joined: Tue Mar 07, 2017 2:46 pm

Please be positive and constructive with your questions and comments.