/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / 3.82 FAT update

Username:     
Password:     
             

Forum

# 1   2010-06-10 11:23:35 3.82 FAT update

logictechs
Member
Registered: 2009-05-07
Posts: 68

3.82 FAT update

Hi,

Can you please explain what changes were done to the FAT.  I was struggling again with writing to files because of the glitchy thing and had given up on your system for my needs.

Also, what is being done in regards to using sprintf in apps?  I had been able to make my own OS version just fine using sprintf.  Has there been any progress with this issue?

Offline

 

# 2   2010-06-10 14:31:46 3.82 FAT update

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: 3.82 FAT update

Hi,

Normally, no changes have been done to the FAT between 3.8 and 3.82. This version is just a "patch" about touchscreen calibration, following many requests about it.

What is the problem about sprintf ? sprintf is available if Ride is configured with "LDLinker/librairies/" option to "Full GNU printf", but it takes a lot of flash.
What do you mean by "Has there been any progress with this issue?" ?

Yves

Offline

 

# 3   2010-06-11 11:09:29 3.82 FAT update

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: 3.82 FAT update

2 logictechs: What exactly is wrong with file writing?
There is a bug with file overwriting. One simple solution is to create many files from PC and then to deleta them, so that system can overwrite existing name records. I also posted a patch for that issue with 'directory create' code.

Offline

 

# 4   2010-06-12 15:42:16 3.82 FAT update

logictechs
Member
Registered: 2009-05-07
Posts: 68

Re: 3.82 FAT update

The problem with the sprintf others and myself have been experiencing is when you try to add a program in the release mode instead of debug mode.  There is a linker error of some sort going on.  Do a search on here for sprintf to see all the posts about this issue.

The FAT problem being experienced is where I try to write a text file and there are added characters or missing characters.  I have not found a stable solution still from all the posts on here.

Offline

 

# 5   2010-06-21 13:38:39 3.82 FAT update

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: 3.82 FAT update

Is there something special to do to build 3.82 fat.elf ?

if i add fat.rapp in the primer2_cricle project fat does build successfully but initial primer2_circle elf build  fail  ?
 
Building C:\Program Files\Raisonance\Ride\lib\ARM\Circle382\Primer2_Circle.rapp
Running: LD
"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -mcpu=cortex-m3 -mthumb -Wl,-T -Xlinker "C:\Program Files\Raisonance\Ride\lib\ARM\Circle382\OS\Primer2_obj\Primer2_Circle.elf.ld" -u _start -Wl,-static -Wl,--gc-sections -nostartfiles -Wl,-Map -Xlinker "C:\Program Files\Raisonance\Ride\lib\ARM\Circle382\OS\Primer2_lst\Primer2_Circle.map"   
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld.exe: C:\Program Files\Raisonance\Ride\lib\ARM\Circle382\OS\Primer2_obj\Primer2_Circle.elf section ._usrstack will not fit in region RAM 
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld.exe: region RAM overflowed by 100 bytes 
collect2: ld returned 1 exit status 
 
Build failed

I guess by building project  twice (once with fat once wihout) the two builts elf files would  be correct but why  this strange failure ?  am i doing something wrong ?

Offline

 

# 6   2010-06-21 14:15:50 3.82 FAT update

logictechs
Member
Registered: 2009-05-07
Posts: 68

Re: 3.82 FAT update

To modify the FAT system, you need to modify the fs.c and/or fs.h and/or dos.c and/or dos.h files in the 3.82 OS project.  Once you've made your mods, build the project load it into the Primer 2 using the OS loader not the app loader.

Offline

 

# 7   2010-06-21 14:53:33 3.82 FAT update

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: 3.82 FAT update

Not sure to get it right ... 

i want o build the "fat.elf" file  for that i believe i have to "make/build" fat.rapp right  ? so it  must  be added to some project no ? but when i add fat.rapp to Primer2_Circle project Primer2_Circle build to fail .. that  is my problem .. how to build both .elf in the same project (it was working  with 3.8)

note i then mainly use  the IDE/Debug to load the files and my application into the target (after having replaced older two elf files into lib/ARM/CircleOS )

Offline

 

# 8   2010-06-22 08:37:04 3.82 FAT update

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: 3.82 FAT update

Effectively the FAT.elf is build with a specific project, but why do you want to modify the FAT.elf ?

Offline

 

# 9   2010-06-22 14:48:27 3.82 FAT update

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: 3.82 FAT update

I have modfied the os sources  so i 'm assuming i have to rebuild it  but  maybe i'm wrong ?
anyway i managed to fix the issue in the meantime.

Offline

 

# 10   2010-06-22 20:44:33 3.82 FAT update

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: 3.82 FAT update

FAT.elf is a small stub with address of first application (only application). It's used to register application when running it with debugging from RIDE (not from circle_mgr).

If you changed OS flash limits you'll need to rebuild it. Otherwise leave it as it is.

Offline

 

# 11   2010-06-23 05:56:04 3.82 FAT update

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: 3.82 FAT update

I agree with ntrf.  You have to change the Fat.elf only in the case of you modify the 24Kb high limit of debuggable OS flash, and the build failed. But the other way, if your code is too big, is to move some functions into non debuggable area (upper flash area) with the appropriate NODEBUG section attribute (see CircleOS for syntax example)

Offline

 

Board footer