Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - timadria

Pages: [1]
utFAT / New SD cards stuck in CARD_BUSY_WAIT
« on: May 20, 2022, 09:59:37 AM »

WE received a new batch of SD cards (2 different brands) and they stay in a CARD_BUSY_WAIT loop forever. The older cards (same type, capacity, brand, ...) work perfectly.
I already updated our µtFAT library to the newest version.

I've added some logging:
 SD v2 or higher
 SD do new poll (Now we are in a SD_STATE_APP_CMD55_CMD41 - CARD_BUSY_WAIT loop

Is there any known issue/solution?

ATMELTM AT91SAM7X and AVR32 / __irq_en
« on: January 20, 2020, 04:03:46 PM »
I've just upgraded to Crossworks v4 and after uploading the utasker to the SAM7S processor this will halt on the __irq_en macro.
When executing
Code: [Select]
mrs r12, CPSR  the CPU halts and loops on
Code: [Select]
  b .    /* endless loop */
Any idee how this can be solved?

utFAT / Writing data to the SD
« on: July 12, 2012, 03:08:12 PM »

When I try to write data to the SD card. The first write seems not to be saved on the card.
When I open the complete SD-Card on my PC (interesting programm to do this: HxD - Hexeditor) the data is written on the SD itself, but the FAT is not adapted. The file itself is still empty.

The strange thing is that when I reed the data on the uTasker the data is in the file and can be read. I'm thinking that the filesize is not correctly stored in the FAT table.

In short: Every last write is not saved in the file after a powerup of my application.

What can be this problem?

« on: May 30, 2012, 08:45:08 AM »
I think there is a miner issue when u use the SAM7S series in combination with the uTasker.
You addapted the uTasker to work with this processor.

But the Peripherial indentifiers for the SAM7S series is lightly different of these of the SAM7SE and SAM7X.

So I added the PIDs for the SAM7S to the sam7x.h file. Now the clock is set correct.
I discovered the problem when using the SPI bus.

Code: [Select]
    #define AIC_FIQ                      0x00000001                      // Advanced Interrupt Controller - fast external interrupt
    #define SYSIRQ                       0x00000002                      //
    #define PIOA                         0x00000004                      // Parallel Input/Output Controller A
    #define ADC                          0x00000010                      // ADC Converter
    #define SPI0                         0x00000020                      // Serial Peripheral Interface 0
    #define USART0                       0x00000040                      // USART 0
    #define USART1                       0x00000080                      // USART 1
    #define SSC                          0x00000100                      // Synchronous Serial Controller
    #define TWI                          0x00000200                      // Two Wire Interface (IIC)
    #define PWMC                         0x00000400                      // Pulse Width Modulator Controller
    #define UDP                          0x00000800                      // USB Device Port
    #define TC0                          0x00001000                      // Timer Counter 0
    #define TC1                          0x00002000                      // Timer Counter 1
    #define TC2                          0x00004000                      // Timer Counter 2
                                                                         // 15..29 reserved
    #define AIC_IRQ0                     0x40000000                      // Advanced Interrupt Controller - external interrupt 0
    #define AIC_IRQ1                     0x80000000                      // Advanced Interrupt Controller - external interrupt 1
Kind regards Tim

utFAT / utSeek is slow with larger files
« on: May 24, 2012, 09:42:37 AM »
Im using the SD card to store a logfile with a lot of measurements.
When I read out these measurements I do this:
  • I go to the end of the file
  • read my last measurement
  • Send this to my pc
  • delete the last measurement from the file (by changing the filesize)

The problem is that when I have a large file the utSeek will take some time because it needs to scroll trough all the sectors.

Is there a way to speed up this process?

Kind regards Tim

Pages: [1]