IP Library Granted Patent US 11,544,171
Granted Patent B2
US 11,544,171 · App. 16/647,760 · Granted Jan 3, 2023

Method for monitoring the free space of a memory stack

Inventor: Jacques Delaire (Toulouse, FR)
G06F11/3471G06F11/3037G06F12/0238
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,544,171
App. No.
16/647,760
Granted
Jan 3, 2023
Kind
B2
Abstract

A method for monitoring the free space of a stack of a microcontroller during the execution of a process using spaces of the stack from a start address to an end address of the stack, in which the method includes: in a prior step, writing N keys in the stack at N addresses of the stack, the memory space between two consecutive keys decreasing in a direction from the start address to the end address of the stack; and, in a step of executing the process, saving the address of the current key, corresponding to the address of the existing key, among the N keys, that is closest to the stack start address.

Claims (38)

1. A method for monitoring free space of a stack of a microcontroller during execution of a process using spaces of said stack from a start address to an end address of the stack, in which said method comprises:

in a prior step, writing N keys, in the stack at N addresses of said stack, the memory space between any two consecutive keys of the N keys gradually decreases as each of the N keys are written in addresses closer to the end address of the stack;

in a step of executing the process, saving the address of the current key, corresponding to the address of the existing key, among the N keys, that is closest to the start address of the stack; and

comparing the address of the current key to the address of a maximum key corresponding to an address of the stack, and, in the case where the address of the current key is closer to the end address than the address of the maximum key, the address of said maximum key takes the value of the address of the current key.

2. The method for monitoring the free space of a stack according to claim 1 , wherein from a predefined address of a first key A(1), the address of the i-th key, i varying from 2 to N, is equal to the whole part of

(

2

i

-

1

-

1

2

i

-

1

×

(

SS

-

(

A

(

1

)

-

SSA

)

)

)

,

where SS is equal to the size of the stack, SSA being the start address of the stack.

3. The method for monitoring the free space of a stack according to claim 1 , wherein said method further comprises writing two keys at each end of the stack.

4. The method for monitoring the free space of a stack according to claim 3 , wherein the address of the maximum key is stored in a non-volatile memory area.

5. The method for monitoring the free space of a stack according to claim 1 , wherein the addresses of the keys are stored in a data table.

6. The method for monitoring the free space of a stack according to claim 5 , wherein an address of an i-th key is accessible by its index i in the data table.

7. A non-transitory computer program product, intended to be executed by a processing means of a calculation unit, said calculation unit further comprising a memory, and said program configured for the implementation of the method of claim 1 .

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2025
From: CONTINENTAL AUTOMOTIVE GMBH; CONTINENTAL AUTOMOTIVE FRANCE S.A.S.
To: CONTINENTAL AUTOMOTIVE TECHNOLOGIES GMBH
Reel/Frame 071931/0711 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 28, 2020
From: DELAIRE, JACQUES
To: CONTINENTAL AUTOMOTIVE FRANCE; CONTINENTAL AUTOMOITVE GMBH
Reel/Frame 052773/0460 →
Priority Claims (1)
FR 1755836 · Jun 26, 2017 · national
Continuity (1)
Related Publication 20210133077A1 · May 6, 2021