• AVR Freaks

Hot![Solved] Programmer To Go SD Card Requirements

Author
luker
Senior Member
  • Total Posts : 175
  • Reward points : 0
  • Joined: 2015/04/17 06:24:04
  • Location: 0
  • Status: online
2019/11/08 08:14:30 (permalink)
0

[Solved] Programmer To Go SD Card Requirements

Hello forum,
 
this all started in another thread (this site /forums/m1116891 (dot) aspx) and worked in one way. Now I'm looking for another.
 
PICkit4 successfully programmed a dsPIC33EP128MC504 on the go through MPLabX v5.30 on Windows 7 Pro x64 with a 16 GB SD-Card inserted within the PICkit. That was a SanDisk Industrial 16 GB Micro SD HC I with a "1" in something like a "U" and a "10" in a "C"-like icon.
 
16 GB are way out of what we need to flash a PIC. There was only ~1 MB used on that card.
I have some 128 MB Cloudisk SD-cards which are labelled "CLASS" and a "4" in a "C"-like icon. All other things untouched, this one doesn't work. Here is what MPLab prints:
Connecting to MPLAB PICkit 4...

Currently loaded versions:
Application version............00.05.41
Boot version...................01.00.00
Script version.................00.03.33
Script build number............0540a22e50
PICkit 4 is supplying power to the target (3,25 volts).
Target device dsPIC33EP128MC504 found.
Device Revision Id = 0x4008

Calculating memory ranges for operation...

Erasing...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x25ff
configuration memory

Sending programmer to go information to the debug tool
An error occurred while creating the programmer to go image. Please retry the requested operation.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.

 
[Edit]
It works, however, if I use the 16 GB card, then copy its content over to one of the 128 MB cards. Then, P2G works with a 128 MB card.
[/Edit]
 
Is that a problem of manufacturer, speed class (10 vs 4) or is there information somewhere what we have to look for to know in advance if an SD card will work?
 
[Edit 2]
Support informs that SD cards have to adhere to the SDHC standard.
(notwithstanding the insight from the first Edit)
[/Edit]
 
post edited by luker - 2019/11/12 03:50:36
#1

8 Replies Related Threads

    Jim Nickerson
    User 452
    • Total Posts : 6326
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: Programmer To Go SD Card Requirements 2019/11/08 08:31:35 (permalink)
    5 (1)
    On my embedded device using SD it is sensitive to how the SD is formatted,
    File System ( FAT32 ... )
    Allocation unit size etc
    #2
    Antipodean
    Super Member
    • Total Posts : 1763
    • Reward points : 0
    • Joined: 2008/12/09 10:19:08
    • Location: Didcot, United Kingdom
    • Status: offline
    Re: Programmer To Go SD Card Requirements 2019/11/08 08:58:01 (permalink)
    0
    A 16GB card will be an SDHC, a 128MB card will be an SDXC.
     
    Does the PTG handle SDXC card writing correctly?
     
    What happens if the required file is above the maximum SDHC card limit (32GB)?
     
     

    Do not use my alias in your message body when replying, your message will disappear ...

    Alan
    #3
    mlp
    boots too small
    • Total Posts : 813
    • Reward points : 0
    • Joined: 2012/09/10 15:12:07
    • Location: previously Microchip XC8 team
    • Status: offline
    Re: Programmer To Go SD Card Requirements 2019/11/08 11:24:15 (permalink)
    4 (1)
    Anti podean
    a 128MB card will be an SDXC.

    MB? Don't think so.

    Mark (this opinion available for hire)
    #4
    ric
    Super Member
    • Total Posts : 24202
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Programmer To Go SD Card Requirements 2019/11/08 14:04:23 (permalink)
    0
    I think Allan misread 128MB as 128GB.
    Anything under 4GB will be simply SD, not SDHC.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    Antipodean
    Super Member
    • Total Posts : 1763
    • Reward points : 0
    • Joined: 2008/12/09 10:19:08
    • Location: Didcot, United Kingdom
    • Status: offline
    Re: Programmer To Go SD Card Requirements 2019/11/09 05:33:26 (permalink)
    0
    ric
    I think Allan misread 128MB as 128GB.
    Anything under 4GB will be simply SD, not SDHC.

     
    Umm, yes, I read it as 128GB - I certainly didn't expect the OP to be using 128MB.
     

    Do not use my alias in your message body when replying, your message will disappear ...

    Alan
    #6
    luker
    Senior Member
    • Total Posts : 175
    • Reward points : 0
    • Joined: 2015/04/17 06:24:04
    • Location: 0
    • Status: online
    Re: Programmer To Go SD Card Requirements 2019/11/11 00:35:58 (permalink)
    0
    The project has to fit into the flash of a PIC. Even with some overhead for the P2G stuff, there will hardly be anything as large as 8 MB. In fact, the project at hand occupies ~ 1MB of SDHC space. So using 128 MB seemed reasonable (and a bunch of them were really cheap).
     
    Now I would like to know what properties to look for that qualify an SD card as usable for P2G.
    #7
    luker
    Senior Member
    • Total Posts : 175
    • Reward points : 0
    • Joined: 2015/04/17 06:24:04
    • Location: 0
    • Status: online
    Re: Programmer To Go SD Card Requirements 2019/11/12 03:51:19 (permalink)
    0
    OP has been edited to reflect what support told me.
    #8
    ric
    Super Member
    • Total Posts : 24202
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Programmer To Go SD Card Requirements 2019/11/12 04:04:02 (permalink)
    0
    From your experience, I would guess that the PK4 is able to read from both SD and SDHC, but can only correctly write to SDHC.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #9
    Jump to:
    © 2019 APG vNext Commercial Version 4.5