Search found 32 matches

by ebeinecke
09 Aug 2012 00:27
Forum: Library Development Discussion
Topic: FAT32 library for MMC/SD cards
Replies: 84
Views: 92721

Re: FAT32 library for MMC/SD cards

When the Hardware stuck the message "Logando" is displayed in the display
so the problem occurs after status=FAT32_Exists(posi.nomearquivo);
and before FAT32_Close(fhandle);

I am sending the complete code.

Best regards.

Edmundo
by ebeinecke
08 Aug 2012 02:31
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FAT32 Library problem!
Replies: 4
Views: 1827

Re: FAT32 Library problem!

Sorry delete post please :)
by ebeinecke
08 Aug 2012 02:28
Forum: Library Development Discussion
Topic: FAT32 library for MMC/SD cards
Replies: 84
Views: 92721

Re: FAT32 library for MMC/SD cards

Thanks for the reply and for helping me, My buffer size is 1024 (FAT32 formatted in 1024 bytes per sector) and the max usage of the buffer is 862 positions, everytime I use the buffer the program fill it with zeros, I'll try to find something in the others sub routines that could be causing this and...
by ebeinecke
06 Aug 2012 00:06
Forum: Library Development Discussion
Topic: FAT32 library for MMC/SD cards
Replies: 84
Views: 92721

Re: FAT32 library for MMC/SD cards

Thx for helping me, but thinking about that I changed a bit my code and now I use only one buffer[1024] and save on the end of the routine, this is done in each 2 or 3 seconds it saves about 1,5Kb max. of data. But again after 20 ~ 25 min of operation the hardware stuck and all data erased (fat32 is...
by ebeinecke
05 Aug 2012 15:24
Forum: Library Development Discussion
Topic: FAT32 library for MMC/SD cards
Replies: 84
Views: 92721

Re: FAT32 library for MMC/SD cards

am using dspic33fj128mc202 at 79.2275 Mhz and this is my mmc initialization mmcinit(); do { Spi1_Init_Advanced(_SPI_MASTER, _SPI_8_BIT, _SPI_PRESCALE_SEC_1, _SPI_PRESCALE_PRI_64, _SPI_SS_DISABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_HIGH, _SPI_ACTIVE_2_IDLE); Delay_ms(20); i=FAT32_init(); inttostr...
by ebeinecke
05 Aug 2012 14:08
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FAT32 Library problem!
Replies: 4
Views: 1827

Re: FAT32 Library problem!

Bump? I am using dspic33fj128mc202 at 79.2275 Mhz and this is my mmc initialization mmcinit(); do { Spi1_Init_Advanced(_SPI_MASTER, _SPI_8_BIT, _SPI_PRESCALE_SEC_1, _SPI_PRESCALE_PRI_64, _SPI_SS_DISABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_HIGH, _SPI_ACTIVE_2_IDLE); Delay_ms(20); i=FAT32_init(); ...
by ebeinecke
05 Aug 2012 00:25
Forum: Library Development Discussion
Topic: FAT32 library for MMC/SD cards
Replies: 84
Views: 92721

Re: FAT32 library for MMC/SD cards

Hi ! I need some help using FAT32 library in libstock.com, I am trying to use the library to constantly acquire data from a stormscope sensor (by serial port 1) save latitude and longitude etc acquired by a second serial port and save the data in a file in a SD Card, my code works fine, but after 10...
by ebeinecke
02 Aug 2012 23:51
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FAT32 Library problem!
Replies: 4
Views: 1827

Re: FAT32 Library problem!

storm=stormlogger(); //data aquisition FAT32_Delete("SWAP.TXT"); //delete previous swap file if (FAT32_MakeSwap("SWAP.TXT", 5000, &swapStartSc) == 0) { // make swap file //for (d=0; d<5000; d++) { // to all swap file sectors // FAT32_Dev_Write_Sector(swapStartSc + d, buf); // write buffer content /...
by ebeinecke
02 Aug 2012 17:46
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FAT32 Library problem!
Replies: 4
Views: 1827

FAT32 Library problem!

Hi ! I need some help using FAT32 library in libstock.com, I am trying to use the library to constantly acquire data from a stormscope sensor (by serial port 1) save latitude and longitude acquired by a second serial port, my code works fine, but after 10 ~ 15 min of operation the hardware stuck and...
by ebeinecke
21 Nov 2010 20:09
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Help with initialization SD CARD
Replies: 16
Views: 5596

Re: Help with initialization SD CARD

Thank you guys, I finally detected the problem
It was a Hardware problem, my SD socket came with factory defect :roll:

Now everything is fine ! Sorry the inconvenience !

Wish you all the best !
by ebeinecke
19 Nov 2010 20:05
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Help with initialization SD CARD
Replies: 16
Views: 5596

Re: Help with initialization SD CARD

I posted only a part of the program sorry but the LCD and Mmc_Chip_Select are correctly coded. As I said before, I simulated in proteus and by hardware, got the same results LCD is fully functional I will try to chance the brand of the SD card, but I doubt it is that because in proteus i got the sam...
by ebeinecke
19 Nov 2010 01:11
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Help with initialization SD CARD
Replies: 16
Views: 5596

Re: Help with initialization SD CARD

I still got no results, I made the previous corrections but mmc_init() still returns me 255 code (MMC/not found) I tested it by hardware and by proteus simulation, got the same results I'll send my code again with some modifications. I am using Mikroc 4.10 with dspic33fjmc202 mcu, plz help :( void m...
by ebeinecke
14 Nov 2010 14:40
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Help with initialization SD CARD
Replies: 16
Views: 5596

Re: Help with initialization SD CARD

I tried AD1PCFGL = 0x3F; but no effect, sorry about the lame question but how can I set IOL1WAY in microc dspic ? in the project settings there is only peripheral pin select configuration (is on enable) instead of pps allow one configuration/ allow multiple configuration from the previous versions o...
by ebeinecke
11 Nov 2010 00:08
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Help with initialization SD CARD
Replies: 16
Views: 5596

Re: Help with initialization SD CARD

btw, I am using dspic33fj32mc202

Go to advanced search