Re: Of course, I have a memory corruption, but I'm not able to fix it...
Paweł Si <[email protected]> Sat, 22 May 2021 15:03:30 +0200
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Message-ID | <CAPgZLFbP_C+qJy+MaCORgZQ9-LLvL_AokibP8okMnsNZRUSeUg@mail.gmail.com> |
--0000000000003d144905c2eace6e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable sob., 22 maj 2021 o 09:49 BERTRAND Jo=C3=ABl <[email protected]> napisa=C5=82(a): > I'm not sure. In main() you will find : > > rfid_tag_t tag; > iso14443a_anticol(0, &tag); > I would remove this line (file iso14443a.c:244): memset(&tag, 0, sizeof(tag)); Best regards Pawe=C5=82 --0000000000003d144905c2eace6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g= mail_attr">sob., 22 maj 2021 o 09:49=C2=A0BERTRAND Jo=C3=ABl <<a href=3D= "mailto:[email protected]">[email protected]</a>> napisa= =C5=82(a):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=C2= =A0 =C2=A0 =C2=A0 =C2=A0 I'm not sure. In main() you will find :<br> <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 rfid_tag_t=C2=A0 tag;<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 iso14443a_anticol(0, &tag);<br></blockquote= ><div><br><div dir=3D"ltr"><div>I would remove this line (file iso14443a.c:= 244):=C2=A0</div><div><div style=3D"color:rgb(212,212,212);background-color= :rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,= "Droid Sans Fallback";font-size:14px;line-height:19px;white-space= :pre"><div> <span style=3D"color:rgb(220,220,170)">memset</span>(&<s= pan style=3D"color:rgb(156,220,254)">tag</span>, <span style=3D"color:rgb(1= 81,206,168)">0</span>, <span style=3D"color:rgb(86,156,214)">sizeof</span>(= <span style=3D"color:rgb(156,220,254)">tag</span>));</div></div></div><div>= <br></div><div>Best regards<br></div><div>Pawe=C5=82</div></div></div></div= ></div> --0000000000003d144905c2eace6e--