On 24 nov, 19:29, mattschinkel <[email protected]> wrote:
> Are you able to find where your program gets stuck in
> fat32_small_init() ?
>
> Matt.

Hi Matt,

I found where it stucks. But realy on a strange moment:
I used the serial feedback to see when it stops:

This procedure is started:

procedure fat32_small_read_boot_sector() is
   var dword sec_per_fat
   var byte _sec_per_fat[4] at sec_per_fat
   var word reserved_sectors
   var byte _reserved_sectors[2] at reserved_sectors
   var dword partition_lba_begin = 0

     serial_hw_data = 70       ;F
   fat32_small_start_read(0)
       serial_hw_data = 71     ; G
   fat32_small_read_pulse_byte(47)        => when calling this
procedure is does not come back

But when calling "fat32_small_read_pulse_byte(47)" it never comes
back.
If I then go to SD-Card lib, the Pic stops at this point (I receive
the letter "H" on my serial, but never "I"). This is realy strange for
me.

--------------------------------------------------------------------------------
-- send a read pulse to the sd card, go 1 bytes forward in current
sector.
--------------------------------------------------------------------------------
procedure sd_read_pulse_byte(word in count1) is
    serial_hw_data = 72     ; H
   var byte x
   for count1 loop           -- loop specified number of times
      x = sd_data_byte       -- do a data read and ignore the
incomming data
   end loop
    serial_hw_data = 73     ; I
end procedure

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to