Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

DS3502 won't compile for QT Py
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

DS3502 won't compile for QT Py

by LikeTheSandwich on Fri Apr 23, 2021 7:47 pm

I have a QT Py (regular, SAMD21, not RP2040) and a DS3502 module and the Adafruit Libraries downloaded. It will compile for a few different AVR boards and the Seeeduino Xiao, but not for the QT Py, it spits out this error:
Code: Select all | TOGGLE FULL SIZE
C:\Users\rkrie\AppData\Local\Temp\ccsdpIYs.s: Assembler messages:
C:\Users\rkrie\AppData\Local\Temp\ccsdpIYs.s:947: Error: lo register required -- `sub r10,#1'

I tried Googling it but couldn't find anything.

LikeTheSandwich
 
Posts: 15
Joined: Tue Dec 08, 2020 3:36 am

Re: DS3502 won't compile for QT Py

by LikeTheSandwich on Mon Apr 26, 2021 1:16 am

So I got it to compile, it has to do with which optimization level is selected (I have to select Small). But it still just freezes and won't work. This is kind of frustrating since it's two Adafruit products I've purchased and they won't work together.

LikeTheSandwich
 
Posts: 15
Joined: Tue Dec 08, 2020 3:36 am

Re: DS3502 won't compile for QT Py

by adafruit_support_mike on Tue Apr 27, 2021 10:36 pm

The DS3502 code is negligible compared to the size of the SAMD21's memory. You shouldn't need to optimize for minimum size.

adafruit_support_mike
 
Posts: 62799
Joined: Thu Feb 11, 2010 2:51 pm

Re: DS3502 won't compile for QT Py

by LikeTheSandwich on Tue Apr 27, 2021 10:45 pm

I was experimenting to see if it would stop freezing. If I change the optimization to anything but "small" it won't compile, and when it compiled on small it freezes during run time on the first ds3602.begin()

LikeTheSandwich
 
Posts: 15
Joined: Tue Dec 08, 2020 3:36 am

Re: DS3502 won't compile for QT Py

by LikeTheSandwich on Wed Apr 28, 2021 10:47 pm

Well, now it's working magically for some reason.

LikeTheSandwich
 
Posts: 15
Joined: Tue Dec 08, 2020 3:36 am

Please be positive and constructive with your questions and comments.