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 - Adrian

Pages: [1]
1
Luminary Micro TM LM3SXXXX / Re: Erase internal Flash
« on: May 14, 2010, 05:21:46 PM »
Ok Mark , i checked a lot of things, and this are my conclusion:

first i need to claryfi that i need to clean exteranl SPI flash but as u told me uFileErase(uFILE_SYSTEM_START, (MAX_FILE_LENGTH)FILE_SYSTEM_SIZE); should do excatly what i want, cos:
uFILE_SYSTEM_START is
#define uFILE_SYSTEM_START (MEMORY_RANGE_POINTER)(uFILE_START)
and uFILE_START is #define uFILE_START (SPI_FLASH_START)

FILE_SYSTEM_SIZE is  #define FILE_SYSTEM_SIZE (128*SINGLE_FILE_SIZE)
and SINGLE_FILE_SIZE is  #define SINGLE_FILE_SIZE (FILE_GRANULARITY)
and FILE_GRANULARITY is #define FILE_GRANULARITY (2*SPI_FLASH_BLOCK_LENGTH)      // (2 x 4096 byte blocks)

it shoud remove all files on external SPI flash, but i doesn't. This line uFileErase(uFILE_SYSTEM_START, (MAX_FILE_LENGTH)FILE_SYSTEM_SIZE); removes only some part of data and then device is reseting. i Know that in fnEraseFlashSector is WDTICR = 0; but it seems that it is in wrong place. My SPI flash is 1MB big. When i copy to device some files which size is more than 200 kB, not all will be removed and watchdog will reset device. BUT when i turn off watchdog (i use contruction like belove):
            WDTLOCK = WD_ACCESS;
            WDTCTL &= ~(WD_RESEN | WD_INTEN);                                      // disable watchdog and interru
            uFileErase(uFILE_SYSTEM_START, (MAX_FILE_LENGTH)FILE_SYSTEM_SIZE);
            WDTCTL = (WD_RESEN | WD_INTEN);                                        // enable watchdog and interrupt
            WDTLOCK = 0;
removing files takes like 7 second, but all filles will be removed then, i am wondering , why i need to turn off watchdog, if there is WDTICR = 0; in a loop.

device is not reseting then but is strange problem , that it lose connection but as i sad then delete all files.



2
Luminary Micro TM LM3SXXXX / Re: Erase internal Flash
« on: May 13, 2010, 05:56:01 PM »
I atached this strage file, when you copy this file using ftp to flash memory, there is no way to remove it under application. This file has been created when application was working, so there is bug on my site, but it shoud be way to remove it, i cant find the way:(, maby in the future it will be create again so strange file, so i am looking method to remove all files in flash including those strange i attached.

3
Luminary Micro TM LM3SXXXX / Re: Erase internal Flash
« on: May 13, 2010, 07:40:50 AM »
Hi Mark
1.) I am not using symulator at all.
2.) there is no way to send you this strange file or bin, couse this file has 138 kb and bin has 144 kb, and you allow to attach files only under 128 sieze, is there any other option to send it to you?

4
Luminary Micro TM LM3SXXXX / Re: Erase internal Flash
« on: May 12, 2010, 11:33:35 AM »
Hi Mark, to be honest , this function does not remove all files. I mean, all with known names and extensions are removed, but if i copy to device this specific file which screen i atatched below, this single file will not be deleted. Is there any other option to remove all under application? i can remove this file using ftp.



5
Luminary Micro TM LM3SXXXX / Re: Erase internal Flash
« on: May 11, 2010, 07:47:10 PM »
right, but there is no any procedure to erase internal flash when device is working? like if  device sends to my server some post and i respond to delete all conten, i am wondering , how to eraase all content including all files and sites and each files on interanl flash?

6
Luminary Micro TM LM3SXXXX / Re: Erase internal Flash
« on: May 11, 2010, 05:16:23 PM »
no i am thinking about my personal device, i saw that sometimes on the flash are creating files like ~?.??? or ".???, i just wanna erase all, because the is no way to remove file with name like ~?.???

7
Luminary Micro TM LM3SXXXX / Erase internal Flash
« on: May 11, 2010, 12:07:01 PM »
Hi Mark
I saw that sometimes when some file is open, and device has been reseted, after that , this file is full of '.' and the size of this file is about 0.5 Mb.
I am wondering, is there any procedure in uTasker to erase all internal Flash memory?

8
Luminary Micro TM LM3SXXXX / Re: JTAG as GPIO problem
« on: May 04, 2010, 08:43:45 PM »
OK , i've found solution , there is need to set those register:
GPIOLOCK_C = 0x1ACCE551;
GPIOCR_C = 0xFF;

9
Luminary Micro TM LM3SXXXX / Re: JTAG as GPIO problem
« on: May 01, 2010, 08:18:09 AM »
oh i just checked it and it seems that there is still PORTC_BIT0 not set as output, i can even program my device after that , so there is problem that JTAG is still not active as GPIO

10
Luminary Micro TM LM3SXXXX / JTAG as GPIO problem
« on: April 30, 2010, 07:26:46 PM »
Hello, i've got small problem, can't set JTAG as GPIO
my def are:
#define J1_PORT_BIT    PORTC_BIT0
#define J1_PORT    GPIODATA_C
#define J1_DDR    GPIODIR_C
#define ENABLE_J1_PORT()    GPIODEN_C |= J1_PORT_BIT;
#define J1_JTAG_TO_GPIO    GPIOAFSEL_C |= ~(J1_PORT_BIT);
#define J1_OUTPUT    J1_DDR |= (J1_PORT_BIT);
#define J1_INPUT    J1_DDR &= ~ (J1_PORT_BIT);
#define J1_ONE    J1_PORT |= (J1_PORT_BIT);
#define J1_ZERO    J1_PORT &= ~ (J1_PORT_BIT);

and 10s after start:
J1_JTAG_TO_GPIO;
ENABLE_J1_PORT();
J1_OUTPUT;
J1_ZERO;

SO PORTC_BIT0 should be 0 but is 1, any help?

11
Luminary Micro TM LM3SXXXX / Re: suspend watchdog
« on: April 21, 2010, 09:20:33 PM »
ok , i detected that devices not loses a clock , they freezs only after conncected to the power source, main tasks are starting, including watchdog but not all, i saw like davice after conecting to the power source start most of the task , i saw watschdog is runnign like 2 sec ,and after that jus freezing, if i plug the power source  100 times , ther will be 1 time like led status will be blinking 2 sec and stop after that.

12
Luminary Micro TM LM3SXXXX / Re: suspend watchdog
« on: April 19, 2010, 01:22:24 PM »
Is that possible to system would lost his clock?

13
Luminary Micro TM LM3SXXXX / suspend watchdog
« on: April 17, 2010, 05:54:30 PM »
I am wondering why just sometimes like once in a month my board just stop working and status led stop toogle. Watchdog doesn't react. The status led stays turned on or of. Where can i look for reasons of this behaviour? Ofcourse watchdog is turned on.

Pages: [1]