Search found 115 matches
- Wed Mar 01, 2023 5:37 pm
- Forum: General discussion
- Topic: Control time of a function's execution time
- Replies: 13
- Views: 5999
Re: Control time of a function's execution time
Thanks all for your helpful contributions!
- Fri Feb 24, 2023 7:40 pm
- Forum: General discussion
- Topic: Control time of a function's execution time
- Replies: 13
- Views: 5999
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.
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.
- Sun Feb 19, 2023 8:43 pm
- Forum: General discussion
- Topic: Control time of a function's execution time
- Replies: 13
- Views: 5999
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 ...
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 ...
- Sat Feb 18, 2023 9:01 pm
- Forum: General discussion
- Topic: Control time of a function's execution time
- Replies: 13
- Views: 5999
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 ...
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 ...
- Sat Feb 18, 2023 4:58 pm
- Forum: General discussion
- Topic: Control time of a function's execution time
- Replies: 13
- Views: 5999
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 ...
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 ...
- Fri Feb 17, 2023 6:49 am
- Forum: General discussion
- Topic: Control time of a function's execution time
- Replies: 13
- Views: 5999
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 ...
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 ...
- Sat Jul 09, 2022 3:27 pm
- Forum: General discussion
- Topic: EEPROM
- Replies: 2
- Views: 1778
Re: EEPTOM
Thank you
I will give a try your recommended links.ag123
- Fri Jul 08, 2022 9:32 pm
- Forum: General discussion
- Topic: EEPROM
- Replies: 2
- Views: 1778
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
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
- Sat Jun 18, 2022 10:11 am
- Forum: General discussion
- Topic: Protect code on STM32
- Replies: 2
- Views: 2957
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'?
Can we do this by 'Option bytes'?
- Sat Jun 18, 2022 9:33 am
- Forum: General discussion
- Topic: Protect code on STM32
- Replies: 2
- Views: 2957
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!
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!