Guido, what MLA version are you using? BTW, the last version has support for the XC8 but it seems that Microchip won't provide MDD support for PIC18F any more. Adapting the library is a task left for the community as XC8 is definitely the way to go for the C language... And, considering that now Microchip has a better line of 8bit microcontrollers (AVR), maybe the next step for those who want performance but prefer the Microchip peripherals, is to migrate to dsPIC30/33/24. But maybe a JAL for AVR would change the perspective for them as AVR is much, much easier in peripheral usage.
On Tue, Jun 7, 2016 at 1:43 AM, Guido Jones <[email protected]> wrote: > microSD card sockets usually don't have the mechanical card detection that > the full-size SD sockets do, so I'm pretty sure they must use polling to > determine if a card has been inserted. > > The Microchip C18 examples show how to switch between physical and "soft" > card detection methods. > > The "soft-detect" methodology is probably the best one to pursue in JALlib > (and it doesn't waste an I/O pin...) > > > > Thanks! > > On Monday, June 6, 2016 at 6:26:07 PM UTC-4, Matthew Schinkel wrote: >> >> I'll have to add the functionality to detect if a card is inserted. For >> now, the detect socket switch will do if used in your sample. >> >> Sent from my iPhone >> >> On Jun 6, 2016, at 6:18 PM, Guido Jones <[email protected]> wrote: >> >> Tired numerous cards, all worked fine with the Microchip example. >> >> JAL code never worked, always failed partway through when enumerating the >> device. The Microchip example does not need a card present to start with, >> it enumerates the device, assigns a drive letter, then mounts the SD volume >> if/when a card is inserted (as is normal with Windows 7 and "card-reader" >> devices). >> >> >> Thanks. >> >> On Monday, June 6, 2016 at 12:40:44 AM UTC-4, Matthew Schinkel wrote: >>> >>> Ok, i should be able to fix it for you. I'm the only one supporting USB >>> at Jallib. >>> >>> One other thing.. Did you try another sd card? >>> >>> Sent from my iPhone >>> >>> On Jun 5, 2016, at 11:10 AM, Guido Jones <[email protected]> wrote: >>> >>> FYI, This project was my original inspiration: >>> http://sky.geocities.jp/home_iwamoto/page/P26J50/P26_B02.htm (Use >>> Google translate!) >>> >>> >>> I went and re-installed Microchip C18 (eval. version required), compiled >>> the project on that page and low & behold it works a treat! :) The >>> "Microchip Mass Storage Drive" mounts immediately and the SD card appears >>> as a drive letter, all the files are there, and I can copy back & forth. >>> >>> The minor issue is that I absolutely hate C, and the entire Microchip >>> MPLAB suite is a disastrously confusing mess, made by geeks, exclusively >>> for geeks. JAL is the epitome of simplicity in comparison! ;) >>> >>> >>> Sooo, it has absolutely nothing to do with my hardware design, something >>> is up with the JAL code, but the million-dollar question is what/where? ;) >>> >>> I could send you one of my populated test boards and the code, and see >>> what you can make of it. Let me know if you're interested. >>> >>> >>> >>> On Saturday, June 4, 2016 at 9:41:39 PM UTC-4, Matthew Schinkel wrote: >>>> >>>> I got it working on my other PC, problem was I had turned debugging on. >>>> This debug feature uses serial, which is too slow. >>>> >>>> Make sure you have both of these set to FALSE >>>> const bit USB_DEBUG = FALSE >>>> const bit USB_DEBUG_HIGH = FALSE >>>> >>>> Wireshark does show me 2 incorrect packets during startup, but the >>>> windows machine does a packet re-request, and it works. I'll look into >>>> these errors further. >>>> >>>> Do you have debug on? >>>> >>>> Matt >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "jallib" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/jallib. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "jallib" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/jallib. >> For more options, visit https://groups.google.com/d/optout. >> >> -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/jallib. > For more options, visit https://groups.google.com/d/optout. > -- Vasi -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/jallib. For more options, visit https://groups.google.com/d/optout.
