Search found 447 matches
- Tue Mar 26, 2024 1:16 pm
- Forum: General discussion
- Topic: strange USART behaviour
- Replies: 6
- Views: 5947
Re: strange USART behaviour
if you get the same behaviors on multiple uarts, the code is probably more likely the source of your problem.
- Sun Mar 17, 2024 2:47 pm
- Forum: General discussion
- Topic: STM32SD adjust file timestamps?
- Replies: 4
- Views: 4289
Re: STM32SD adjust file timestamps?
you probably want to figure out when stm32sd writes the time stamp in the directory, where it obtains the timing information and provide that from the rtc library.
- Wed Mar 13, 2024 3:24 pm
- Forum: General discussion
- Topic: Exploring Advanced Interrupt Handling Techniques in Arduino for STM32
- Replies: 1
- Views: 1771
Re: Exploring Advanced Interrupt Handling Techniques in Arduino for STM32
you probably want to read the specific programming manual on your ARM core. general answers: 1. you can set priorities for different interrupts (there are code in the specific core_cmx.h files) for that. 2. a high priority interrupt (=interrupt with lower priority number) can preempt a low priority ...
- Thu Mar 07, 2024 1:04 am
- Forum: General discussion
- Topic: How to port Arduino firmware into STM32 Cube IDE
- Replies: 2
- Views: 4932
Re: How to port Arduino firmware into STM32 Cube IDE
usually very simple:
1. understand what the code is trying to do;
2. understand how it does on the original chip;
3. implement it on the target chip;
4. enjoy the fruit of your labor
1. understand what the code is trying to do;
2. understand how it does on the original chip;
3. implement it on the target chip;
4. enjoy the fruit of your labor
- Thu Feb 29, 2024 1:15 pm
- Forum: General discussion
- Topic: STM32 hangs when >100khz signal applied to input
- Replies: 19
- Views: 9052
Re: STM32 hangs when >100khz signal applied to input
but this could be easier said than done depending on what other parts of STM32DUINO need to be used in the final project. even when you use stm32duino cores, you can still write your own isr routines and toggle register bits... Is it really necessary to measure each and every cycle of the waveform ...
- Thu Feb 29, 2024 12:08 am
- Forum: General discussion
- Topic: STM32 hangs when >100khz signal applied to input
- Replies: 19
- Views: 9052
Re: STM32 hangs when >100khz signal applied to input
so if I uncomment "t1 = TIM1->CNT;", and re-run the code, t1 goes down to 23 - 25. I tested on a stm32f103: t0: always 0-> isr is triggered when the TIM1 rolls over to 0. t1: 19 ticks. quite close to the ARM specification (of 12 ticks minimum). t2: 133 ticks. meaningfully above my estimate earlier ...
- Wed Feb 28, 2024 11:37 pm
- Forum: General discussion
- Topic: STM32 hangs when >100khz signal applied to input
- Replies: 19
- Views: 9052
Re: STM32 hangs when >100khz signal applied to input
I would be interested to see what you find. a couple differences that I can see: 1. my code doesn't rely on the stm32duino core(s): it uses a version of stm32duino-like core that I wrote myself and it is very lightweight and much faster. 2. in my test, I even pared down my code base to a customized ...
- Wed Feb 28, 2024 11:32 pm
- Forum: General discussion
- Topic: STM32 hangs when >100khz signal applied to input
- Replies: 19
- Views: 9052
Re: STM32 hangs when >100khz signal applied to input
to further speed up the isr execution, you can move the pwm period / dc calculation out of the isr and into the main loop -> it has its own downside but I was able to reduce the isr execution time from just over 100 ticks to just shy of 70 ticks, inclusive of the isr latency. void pwm_tks(void ...
- Wed Feb 28, 2024 6:40 pm
- Forum: General discussion
- Topic: STM32 hangs when >100khz signal applied to input
- Replies: 19
- Views: 9052
Re: STM32 hangs when >100khz signal applied to input
the equivalent of those numbers on a dsPIC33 (I happened to have it in front of me) would be t0 (always 0), t1 (~21), and t2 (~37).I then printed out t0 (should always be zero), t1 (~52 - 53) and t2 (103 - 104).
- Wed Feb 28, 2024 6:09 pm
- Forum: General discussion
- Topic: STM32 hangs when >100khz signal applied to input
- Replies: 19
- Views: 9052
Re: STM32 hangs when >100khz signal applied to input
I looked up ARM's documentation and it says that CM0 isr latency can be as low as 16 ticks (vs. low 20s I got), and CM3 isr latency can be as low as 12 ticks.