Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The issue was that i mistakenly declared larger data buffer as local in a SerialTestAuto() function. That caused the firmware to crash. I, now, declared them as global and everything is fine now.
There were 5 tasks running, i stopped all the task except the one with the desired function. Firmware doesn't freeze on anywhere now. Then i re-opened all tasks one by one and found the one which one was causing problems.
This task does nothing, was included for future use. But Disabling this...
I wrote a simple program to test the on board peripherals. here is the code, i excluded the unnecessary details.
int WRToSD(char cStrings[100])
{
if (SdCard.iSdStatus == SD_INITIALIZED)
{
K_Serial_Print_Wait("WRToSD called\r\n",15,200); // Writes to Serial monitor
SDFile =...
I have been working on SD Cards and tested the code on different brands of SD card.
All work fine but Kingston. I have tested SanDisk, ADATA and Kingston.
Whenever I use Kingston, it initializes on alternate turns i.e. if it is successfully initialized on the first attempt, it will definitely...
Yes, I was referring to an SD Card formatted in FAT/FAT32.
Yes, this is true for FAT only. For FAT32, there is structure INFO Sector, usually the 1st sector, that contains the information about number of free clusters, and next free cluster etc.
Reading the sector, significantly reduces the...
Hi,
I want to find the free space on SD Card. What i am doing reading out every sector and mark the free sectors. In the end, multiplying it with number of clusters and BytesPerSector. it works fine. but it takes much time on 40MHz micorcontroller and the time increases with the increase in the...
Yup, I have gone through the this before.
My Init() routine doesn't send any commands, but only some pulses.
I modified it to this:
static WORD spiSD_Init(WORD j)
{
WORD aFreq= SPISD_BRATE_PINDEFAULT;
BYTE i, Y= 0xFF;
BYTE idle[6] = {0x40,0x00,0x00,0x00,0x00,0x95};
unsigned int retry...
My code works fine SD card < 2GB. but when i use SDHC (>2GB) , it gives error in initialization.
Here is the code:
static WORD spiSD_Init(WORD j)
{
WORD aFreq= SPISD_BRATE_PINDEFAULT;
BYTE i, Y= 0xFF;
SetBit(SPI_CS_PORT, SPI_CS_PIN)...
I am trying to interface SD card with ST10276e controller.
During Initializing SD card don't go to IDLE State. SD card returns a 8bit data to every command send, which tells the status of the command.
I have declared a character type variable "ucStatus" to hold the returned token.
I want to...
Preprocessor Driective are commonly used for three purporses:
1: Header Filer like this
#include <stdio.h>
2: Macro
#define [Function Name with arguments] [condition]
#define Max(int a, int b) (a>b) ? a :b
3: Defining Constants
#include [Name] [Constant Value]
#include T4_Trap 0x27...
The Macro name does show any arguments. Is this Macro Syntax?
If EpanelMain is set. This makes this "MaybeExtern _far float fGenCurrent[MaxGeneric]" variable only this "_far float fGenCurrent[MaxGeneric]".
This is a C code for an Embedded application. What does the MaybeExtern implies? It is not given any value.
This Code is written in a Main.c file:
#define EpanelMain
#include "globals.h"
#undef EpanelMain
This code is written in globals.h .
#ifdef EpanelMain
#define MaybeExtern
#else...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.