Search found 122 matches

by geoffrey.brown
Fri Aug 14, 2026 6:09 pm
Forum: STM32 Support
Topic: standby in stm32u375 achieved
Replies: 12
Views: 570

Re: standby in stm32u375 achieved

It was really confusing because the coupling between spi, stop modes, and flash was really strange. I ended up writing a stand alone program to test just this path. In the end, I had to explicitly handle restarting power modes and flash after stop modes. Once that was done, your changed spi driver ...
by geoffrey.brown
Thu Aug 13, 2026 9:58 pm
Forum: STM32 Support
Topic: standby in stm32u375 achieved
Replies: 12
Views: 570

Re: standby in stm32u375 achieved

ok, I spent a long time trying to debug this, but don't have a root cause. The basic model is
1) wake,
2) collect some data
3) write to external flash cache
4) program external page when full

After the cache actions, the code goes to stop1. When waking after (4), the code (every K times) writes a ...
by geoffrey.brown
Wed Aug 12, 2026 9:47 pm
Forum: STM32 Support
Topic: standby in stm32u375 achieved
Replies: 12
Views: 570

Re: standby in stm32u375 achieved

That didn't work well -- still crashes after a while. I do use stop1 when the IMU is running while waiting for an interrupt. Not sure if that's the issue, but clearing the registers definitely makes something unhappy. I've found this part has a lot of subtle issues that aren't explainable by reading ...
by geoffrey.brown
Wed Aug 12, 2026 1:19 pm
Forum: STM32 Support
Topic: standby in stm32u375 achieved
Replies: 12
Views: 570

Re: standby in stm32u375 achieved

I ran into a problem with testing the changes -- I do my builds with the stable-21-11.x branch and there are enough structural changes to the config files that I'm reluctant to tweak my entire repo because I depend upon being able to recreate the build environment for my data loggers if there is a ...
by geoffrey.brown
Wed Aug 12, 2026 12:45 am
Forum: STM32 Support
Topic: standby in stm32u375 achieved
Replies: 12
Views: 570

Re: standby in stm32u375 achieved

I'm not completely clear what you are asking me to do.

My use case is a bit unusual. I have devices that spend much of their life in standby and wake periodically from a wakeup even (either the rtc or a wakeup pin). Typically, they collect and store some data and then go back to standby. The ...
by geoffrey.brown
Tue Aug 11, 2026 12:53 pm
Forum: STM32 Support
Topic: standby in stm32u375 achieved
Replies: 12
Views: 570

standby in stm32u375 achieved

I struggled mightily trying to get the stm32u375 into standby mode in my application. stop3 worked fine, but standby got stuck in a high-power state. However, standby worked fine after hal and ch init, but not after talking to my sensors. The final thing that worked --

rccResetSPI1();
__DSB ...
by geoffrey.brown
Mon Aug 10, 2026 12:39 pm
Forum: User Projects
Topic: generating board files
Replies: 3
Views: 229

Re: generating board files

I hadn't really thought in terms of a pull request. What would be the appropriate place within the ChibiOS directory structure?
Geoffrey
by geoffrey.brown
Mon Aug 10, 2026 1:41 am
Forum: User Projects
Topic: generating board files
Replies: 3
Views: 229

generating board files

For my research designing data loggers for biologists studying songbirds I build a lot of custom "boards" (tags). A typical tag is 0.5g and goes a year on a 5.5mAh battery that is included in the 0.5g. I used quotes around "boards" because many of these are development designs to test specific ...
by geoffrey.brown
Mon Aug 10, 2026 1:02 am
Forum: STM32 Support
Topic: stm32u3 stop3
Replies: 4
Views: 112

Re: stm32u3 stop3

I never really got things working properly with stop3. I could execute code afterwards, but no longer write to flash for logging. I ended up taking the cowards way out -- park a tag in the backup registers and reset. In the particular software architecture, that was "normal" since on the stm32l432 I ...
by geoffrey.brown
Fri Jul 31, 2026 11:30 am
Forum: STM32 Support
Topic: stm32u3 stop3
Replies: 4
Views: 112

Re: stm32u3 stop3

Here's how I have my clocks enabled
#define STM32_HSI16_ENABLED FALSE
#define STM32_HSIKERON_ENABLED FALSE
#define STM32_HSI48_ENABLED FALSE
#define STM32_HSE_ENABLED FALSE
#define STM32_LSI_ENABLED FALSE
#define STM32_LSE_ENABLED TRUE
#define STM32_LSE_BYPASS TRUE
#define STM32_MSIRC0_MODE RCC ...