/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Cirkel_mgr + link

Username:     
Password:     
             

Forum

# 1   2009-05-18 11:17:13 Cirkel_mgr + link

repzak
Member
Registered: 2008-03-05
Posts: 170

Cirkel_mgr + link

Hey,

I just realized when we add a program with cirkel_mgr, it links all together to one program.., right?

Then if i have 4 application there uses 17K ram each, as public variables (not inside an function), will cirkel_mgr then come with RAM error?

There are not any form for dynamic ram management as i know??

Kasper

Offline

 

# 2   2009-05-18 11:46:58 Cirkel_mgr + link

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Cirkel_mgr + link

Only one application is running at the same time. Therefore, all the applications can use the same RAM area (approx. 50KB from 0x20000000).
The problem will be diffferent if we allow an application to stay resident. In this case, we will need a global memory allocator. But no need for the moment.

Offline

 

# 3   2009-05-19 20:40:42 Cirkel_mgr + link

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: Cirkel_mgr + link

Will they have same stack adresses?

Offline

 

# 4   2009-05-20 06:07:52 Cirkel_mgr + link

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Cirkel_mgr + link

They will use the same stack, but not at the same time. Sharing the stack is not a problem... above all when only one application is executed (no time sharing).

We would have to take more care in the future if we wish an application to stay resident. In this case, the resident application. But currently, it's not the case (except if some one keeps one interrupt enabled, pointing to his application).

Offline

 

# 5   2009-05-20 07:53:53 Cirkel_mgr + link

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: Cirkel_mgr + link

Hi

Oki thanx, i confirmed i have no stack overflow last day..

Now i will continue to see if there maybe are a problem in the read from SD card...

Kasper

Offline

 

Board footer