Search found 115 matches

by mebab
Wed Mar 01, 2023 5:37 pm
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1722

Re: Control time of a function's execution time

Thanks all for your helpful contributions!
by mebab
Fri Feb 24, 2023 7:40 pm
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1722

Re: Control time of a function's execution time

In fact, these values (0 and 8) exist before and after the photo is taken in a normal situation. When it fails, there is no evidence of what happens.
Anyway, since it is a rare event I used a Watchdog timer to bypass the issue if it happens.

Thanks for all your valuable comments.
by mebab
Sun Feb 19, 2023 8:43 pm
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1722

Re: Control time of a function's execution time

When I print the values of the following command under discussion, before and after the mentioned while loop in normal situation, they are 0 and 8 , respectively. Still looking to catch the case where the while loop stops, to present the value at least before the while loop. I will inform you as soo...
by mebab
Sat Feb 18, 2023 9:01 pm
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1722

Re: Control time of a function's execution time

Thank you! Does this differ from the following method for 1000 ms that I have already implemented. long cnt = millis(); while (!myCAM.get_bit(ARDUCHIP_TRIG , CAP_DONE_MASK)) if (millis()-cnt>1000) break; If it is different, please let me know how to define cnt and TIMEOUT_CNT . I think there is a pr...
by mebab
Sat Feb 18, 2023 4:58 pm
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1722

Re: Control time of a function's execution time

I just found out that the function that gets stuck is the following: while (!myCAM.get_bit(ARDUCHIP_TRIG , CAP_DONE_MASK)); But as I mentioned, it works fine most of the time and may stop rarely. I cannot find neither the reason nor any solution to bypass it. Therefore, the only way is to use a Watc...
by mebab
Fri Feb 17, 2023 6:49 am
Forum: General discussion
Topic: Control time of a function's execution time
Replies: 13
Views: 1722

Control time of a function's execution time

Hi, everyone! I use STM32 to take photos by using an ARDUCAM mini. From time to time (for instance once a 100 times) it may stick to a piece of code including read/write registers functions and cannot come out of one of them. I used a while-loop to limit the time that it takes to execute that piece ...
by mebab
Sat Jul 09, 2022 3:27 pm
Forum: General discussion
Topic: EEPROM
Topic: EEPROM
Replies: 2
Views: 831

Re: EEPTOM

Thank you
ag123
I will give a try your recommended links.
by mebab
Fri Jul 08, 2022 9:32 pm
Forum: General discussion
Topic: EEPROM
Topic: EEPROM
Replies: 2
Views: 831

EEPROM

Hi everybody,

Can anyone provide me a simple code to use a small part of the Flash on STM32L433 to write/read only a few numbers between (0 to 99)?

Thanks in advance
by mebab
Sat Jun 18, 2022 10:11 am
Forum: General discussion
Topic: Protect code on STM32
Replies: 2
Views: 1851

Re: Protect code on STM32

But, I think anybody can make another board behave the same as the first one based on the binary they get. Am I right?
Can we do this by 'Option bytes'?
by mebab
Sat Jun 18, 2022 9:33 am
Forum: General discussion
Topic: Protect code on STM32
Replies: 2
Views: 1851

Protect code on STM32

Hi,

I have written codes on my developed platforms for years and would like to keep them secured. Does anybody know how to protect a code on the STM32? I need it to be editable by myself whenever it is necessary but nobody else can download and discover the written code.

Thanks for your help!

Go to advanced search