Problems with Adafruit Feather M0 with RFM95 LoRa Radio - 90

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Hi,
Is there any advice you can give me regarding un-bricking my MO Lola, I'm hoping its a farely straight forward process.

Just to let you know I aiming to use it for a weather station, I am building, using circuitPython

Michael

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by adafruit_support_carter »

I tried to istall the bood loader, using "BISSA" bootloader, and using failed and I guess its now bricked so I have ordered a JTAG/SWD Debugger, in the hope I can fix it
Do you remember the exact command you used here? And what version of bossac you were using?

This is the general process that should have been followed:
https://learn.adafruit.com/welcome-to-c ... stallation
There are some potential gotchas depending on what version of bossac is used and what command line is used.

If the bootloader has truly been wiped out, then this is the general recovery process:
https://learn.adafruit.com/how-to-progr ... -m4-wiring

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Hi,

I have now recieved a SEGGER J-Link EDU Mini - JTAG/SWD Debugger and a Adafruit JTAG (2x10 2.54mm) to SWD (2x5 1.27mm) Cable Adapter Board. How ever I was not able to purchase a SWD (2x5 1.27mm) Cable Breakout Board, PRODUCT ID: 2743, any where in the UK.

Is it possible to use the Adafruit JTAG (2x10 2.54mm) to SWD (2x5 1.27mm) Cable Adapter Board, to connect the SEGGER J-Link EDU Mini to the MO, using jumper leads, If so how do I connect them together, using dupont jumper cables. I have searched on the net, but have found which pins connect to from the 20 pin connector to the MO.

Can any one help, please

Michael

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by adafruit_support_carter »

There's a pinout diagram on the back of the Adafruit JTAG (2x10 2.54mm) to SWD (2x5 1.27mm) Cable Adapter Board. You could use that in conjunction with the connection information from the guide above to figure out the required pins on the JTAG header.

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Thanks for your reply, so I do not blow any thing up.

Am I correct in thinking that on the Jtag plug

vref connects to 3v on the M0
ground to Ground M0
TCK to SWCLK M0
TMS to SWDIO M0

plus the usb cable connected to my PC

please can you comfirm that I my connections are correct

Michael

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by adafruit_support_carter »

Yep. That seems correct. I checked the schematic for the breakout:
https://github.com/adafruit/Adafruit-IS ... akout-PCBs
to make sure there aren't any odd cross connections. There aren't. It's a very simple adapter:
https://github.com/adafruit/Adafruit-IS ... akout-PCBs
Attachments
adapter.jpg
adapter.jpg (44.97 KiB) Viewed 264 times

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Thankyou for the Information.

I have connected the MO to the programmer as per your example, and following the instrustions from the adadfruit web page set up as the instructions show.


Then tried to load the new bootloader for the web page featherm0bootloader_160305.hex.

and now get this message.
m0_programing.jpg
m0_programing.jpg (58.24 KiB) Viewed 260 times
And now no leds on the M0 light, oall that happen is a the yellow led flashes very briefly, when the power is connected to the M0

I am beginning to think the device is dead, when I purchased it, from my supplier.

Or am I missing something

Michael
Attachments
m0_programing_1.jpg
m0_programing_1.jpg (37.08 KiB) Viewed 260 times

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by adafruit_support_carter »

Were you at least able to read the device signature?
https://learn.adafruit.com/how-to-progr ... 3016764-11

Were you able to figure out how to unset the bootloader fuses:
https://learn.adafruit.com/how-to-progr ... 3017004-16
I *think* the UI might be slightly different with newer versions of Atmel Studio, so not exactly as shown in guide.

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

I believe I was able to read the device signature, which I think was what the first image shows., and set the fuse

I have just down loaded Microchip Studio from the version 7.0.132

I will remove the version above and re-injstall it to see what happens

Michael

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Quick up date.

I have just removerd all the programming software, and following the web page instructions. Re-installed and tried again.

All worked untill, I tried to upload the boot file, then it failed.

Should any led's be showing on the M0 when power is added, as I said earlier all that happens when power is applied, is the yellow led flashes very briefley once, and then no led's light.

Which is new and has never worked

Which boot loader should I use? please, can you send me the correct link, so I may try again

Is this device dead?

Michael

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by adafruit_support_carter »

The bootloader files are linked from the guide here:
https://learn.adafruit.com/how-to-progr ... -3016838-3

From your first post:
when I doudle press the button all that happens, is the led flashes for a few seconds.
That is the expected behavior for the non-UF2 bootloader. So the board was originally working. Also, the non-UF2 bootloader does *not* create a folder. The only thing that will show up is a serial port, which it also did originally:
The device seems to be Feather M0 USB Serial Device Communication Yes Yes No No COM10,
Most likely, you wiped the bootloader by falling into the unfortunate gotcha when using bossac here:
I tried to istall the bood loader, using "BISSA" bootloader, and using failed and I guess its now bricked so I have ordered a JTAG/SWD Debugger
https://learn.adafruit.com/welcome-to-c ... stallation
(big red alert boxes)

The yellow LED is the charge indicator LED. Its behavior without a battery attached can be erratic:
https://learn.adafruit.com/adafruit-fea ... management

If you are reading the device signature, then you are at least connected and talking to the chip. What exact error message did you get here?
All worked untill, I tried to upload the boot file, then it failed.

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Hi thanks for replying.

I think I made a mistake by saying I used BISSA, when I think I have only used Atmel Studio 7.0, and got confussed between the two software packages. It possible I may have tried to use the wrong boot loader, I will try again, and post my results, along with any error I may get.

Michael

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Hi,

I have followed the programming instructions on https://learn.adafruit.com/how-to-progr ... mel-studio,
and used bootloader-feather_m0-v3.13.0.bin from this page https://github.com/adafruit/uf2-samdx1/releases.

Using the steps from the above page I got these results after trying twice to re-programming, please see pictures below.
Step_1.jpg
Step_1.jpg (61.54 KiB) Viewed 232 times
step_2.jpg
step_2.jpg (110.02 KiB) Viewed 232 times
step-3a.jpg
step-3a.jpg (22.61 KiB) Viewed 232 times
On the second try it worked without errors

And I reset the fuses to Fuses, set BOOTPROT to 0x2

And still the MO is dead, with no led showing when powered.

all that does happen is when the usb is connect a yellow led once, and the is no sign of the device showing on pc PC

I used the programmer from yur web site http://studio.download.atmel.com/7.0.19 ... 31-web.exe

Is there anything else I can try?

Micheal

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by adafruit_support_carter »

On the second try it worked without errors

And I reset the fuses to Fuses, set BOOTPROT to 0x2

And still the MO is dead, with no led showing when powered.
The fuse setting is the initial step before actual programming. Did you do the actual programming part too? And did it show the same output as here?

User avatar
Whimick
 
Posts: 109
Joined: Tue Jan 15, 2019 8:42 am

Re: Problems with Adafruit Feather M0 with RFM95 LoRa Radio

Post by Whimick »

Hi,

I have followed the instructions as discribed and still it will not program. The Fuses are set to 0x7, thewn try to program the MO, It so far has failed on the first attempt, as I showed in my previous post. I not sure what else I can try.

Also which boot loeder should be used?

Michael

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”