PIC-IoT board - SAMD21 as mass storage device and PIC programmer.

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Everybody!

 

I've been playing with the PIC-IoT development board for a project, and the hardware includes a SAMD21E part. This is used as a mass storage device (it shows up as a Curiosity drive), a USB-Uart for debug output from the PIC24, as the PIC24 programmer. 
 
Does anyone know whether there's source code available for how the SAMD part is programmed on this board? The PIC24 source is available through Microchip Code Configuration, but that usage of the SAMD looks really good - would love to put something like this on my own projects. 

 

Thank you everyone.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Engineer_MH124 wrote:
the PIC-IoT development board

This: https://www.microchipdirect.com/dev-tools/AC164164 ?

 

https://www.microchip.com/en-us/development-tool/AC164164

 

Engineer_MH124 wrote:
a SAMD21E part. This is used as a mass storage device (it shows up as a Curiosity drive), a USB-Uart for debug output from the PIC24, as the PIC24 programmer. 

So basically an EDBG ?

 

https://onlinedocs.microchip.com...

 

Engineer_MH124 wrote:
Does anyone know whether there's source code available for how the SAMD part is programmed on this board?

I think not - it's proprietary.

 

Engineer_MH124 wrote:
would love to put something like this on my own projects

Not sure it really makes sense to build a debug probe into products - unless you're actually making development kits?

 

Anyhow, for ARM-based parts, you could look at CMSIS-DAP: https://os.mbed.com/handbook/CMSIS-DAP

 

now known as DAPlink: https://os.mbed.com/docs/mbed-os/v6.13/debug-test/daplink.html

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi awneil!

Well, I sincerely thank you very detailed feedback from you. Can you tell me the pic24fj128ga705 microcontroller in that PIC IoT Kit can be programing through another external loader?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Engineer_MH124 wrote:
Can you tell me the pic24fj128ga705 microcontroller in that PIC IoT Kit can be programing through another external loader?

I don't know. It's usually possible - I'm sure the necessary information will be in the documentation.

 

But, as it does have a built-in debugger/programmer, why not just use that?

 

ADDENDUM

 

Sometimes, with these things, it's possible to use the built-in debugger/programmer with an external target - again, the necessary information will be in the documentation.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Wed. Aug 18, 2021 - 01:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Yes, maybe I should follow your advice. I really thanks for useful information from you!

best regards,