Search found 383 matches

by rew
Wed Jul 17, 2024 7:27 pm
Forum: ChibiOS/RT
Topic: Manual chSchRescheduleS() neccessary?
Replies: 4
Views: 22339

Re: Manual chSchRescheduleS() neccessary?

Just FYI: I wanted to know what was explained in this thread. I checked the docs for chSchRescheduleS and it didn't explain it one bit. Something like: This call is necessary if you call XXX or YYY from thread context, if a reschedule becomes necessary in ISR context, the reschedule is done automati...
by rew
Sun Jul 14, 2024 8:03 pm
Forum: ChibiOS/RT
Topic: Starting ADC from PWM callback.
Replies: 2
Views: 17598

Re: Starting ADC from PWM callback.

Found it:

Code: Select all

  chSysLockFromISR ();
  adcStartConversionI(&ADCD1, &adcgrpcfg1, samples1, ADC_GRP1_BUF_DEPTH);
  chSysUnlockFromISR ();
by rew
Sun Jul 14, 2024 7:27 pm
Forum: ChibiOS/RT
Topic: Starting ADC from PWM callback.
Replies: 2
Views: 17598

Starting ADC from PWM callback.

Hi, I'm working on an STM32F303RB currently and I'm trying to get the ADC running. I can trigger the ADC once using my commandline-command. Now I want to trigger it 40k times per second (or less we'll see) from the pwm/timer callback. I could probably setup and automatic trigger to let the hardware ...
by rew
Sat Jun 18, 2022 5:48 pm
Forum: STM32 Support
Topic: Halting debugger with IWDG
Replies: 1
Views: 2096

Re: Halting debugger with IWDG

If that didn't work on first try I'd disable the watchdog until I have my current debugging-session done. Or are you debugging something related to the watchdog?
by rew
Tue Apr 12, 2022 10:22 am
Forum: STM32 Support
Topic: QSPI register corruption
Replies: 14
Views: 10479

Re: QSPI register corruption

He is not in memory mapped mode. Or at least trying not to use it.

Another way to debug this might be with data breakpoints. Not sure if you can trigger on a region... A quick research session hints at: no ranges allowed.
by rew
Wed Apr 06, 2022 3:21 pm
Forum: STM32 Support
Topic: Self-flashing STM32G030F
Replies: 2
Views: 2622

Re: Self-flashing STM32G030F

On a slightly related note... On older chips, you could program an already-programmed word to something that was bitwise smaller. So for example you could do 0xffff -> 0xfff3 -> 0xfff0 -> 0xff00 -> 0xf000 -> 0x0000. On these chips the specs say that the only allowed "reprogramming" is to v...
by rew
Wed Apr 06, 2022 11:48 am
Forum: STM32 Support
Topic: Self-flashing STM32G030F
Replies: 2
Views: 2622

Self-flashing STM32G030F

HI, I'm saving a few parameters in flash (in this case normally only updated once when being installed in the field). Then I encountered this Heisenbug. With debugging enabled it worked, when disabled it didn't. Turns out its that one delay that does the trick... (the debug code is if (debug) {chpri...
by rew
Tue Apr 05, 2022 10:34 am
Forum: STM32 Support
Topic: QSPI register corruption
Replies: 14
Views: 10479

Re: QSPI register corruption

The way I read it, you can also map a memory region as memory in the chip connected through QSPI. i.e. you just access memory at 0x...something and the hardware will push out a QSPI read cycle, wait for the results and sends off the CPU with the result when its done. Loads of waitstates, but for sca...
by rew
Thu Oct 14, 2021 8:52 am
Forum: STM32 Support
Topic: STM32G030 support.
Replies: 16
Views: 12421

Re: STM32G030 support.

Giovanni wrote:I will look into building G070 correctly, I cannot run code because I don't have any HW right now.
I understand that "not having hardware" is a problem. I just don't understand why you can't accept "let me send you some hardware then" as a solution ?
by rew
Fri Sep 03, 2021 3:16 pm
Forum: STM32 Support
Topic: STM32G030 support.
Replies: 16
Views: 12421

Re: STM32G030 support.

I think that this is the nucleo that ST thinks should cover the 'G030 as well. https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards/nucleo-g031k8.html I have posted my current diff here: https://prive....

Go to advanced search