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.


Messages - timadria

Pages: [1]
1
utFAT / Re: New SD cards stuck in CARD_BUSY_WAIT
« on: May 23, 2022, 08:45:16 AM »
I indeed use it in SPI mode. The strange thing is that the cards work in my digital camera and laptop.
I've seen in the SD card protocols that a command is always ended with a stop bit. This is not done in your library. I've tested this and then the initialization continuous until the SD_MOUNTING_1 state. Here I get a timeout.

Maybe I can send you one of these cards?

2
utFAT / New SD cards stuck in CARD_BUSY_WAIT
« on: May 20, 2022, 09:59:37 AM »
Hi,

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_STATE_STABILISING
SD_STATE_GO_IDLE
SD_STATE_IF_COND
 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?

3
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?

4
µTasker general / Re: INTERNAL_ROUTE
« on: May 04, 2016, 12:59:33 PM »
Hi Marc,

This works perfect for me.

Thanks

5
µTasker general / Re: INTERNAL_ROUTE
« on: May 03, 2016, 10:12:50 AM »
Marc,

I was searching for this solution myself. E need this to check if there is still some space available on my serial port buffer before adding extra messages.
I tried to do this but get not the serial buffer size. This is set to 1024 in the fnOpenUart.
tInterfaceParameters.Rx_tx_sizes.TxQueueSize = 1024;   // output buffer size

I always get 37 back. Is there an other solution to check this for the serial port?

I did the request like this: fnEventMessage(TASK_SERIAL, CHECK_QUEUE, 0);

Thanks, Tim

6
utFAT / Re: SD card area for other data
« on: December 17, 2012, 02:09:04 PM »
Mark,

Is it possible for the µTasker to make these 2 partitions and use them as separate partitions?

Tim

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

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?

8
ATMELTM AT91SAM7X and AVR32 / SAM7S and the PMC_PCER
« 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

9
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]