Thanks.
So, I changed the main() loop to a simple infinite loop and the firmware still hangs.
What should the main() implement besides a simple infinite loop?
Search found 19 matches
- Thu Mar 26, 2020 6:13 pm
- Forum: ChibiOS/RT
- Topic: Firmware hangs when idle thread is disabled
- Replies: 5
- Views: 2977
- Thu Mar 26, 2020 7:52 am
- Forum: ChibiOS/RT
- Topic: Firmware hangs when idle thread is disabled
- Replies: 5
- Views: 2977
Re: Firmware hangs when idle thread is disabled
Thank you. I assume you mean allow the thread to run at maximum speed, since it is now the idle thread and will run at a lower priority than other threads.
Will the idle thread get starved if other threads never sleep or block?
Will the idle thread get starved if other threads never sleep or block?
- Wed Mar 25, 2020 11:11 pm
- Forum: ChibiOS/RT
- Topic: Firmware hangs when idle thread is disabled
- Replies: 5
- Views: 2977
Firmware hangs when idle thread is disabled
Hello, For our application (STM32f042) we want to disable the idle thread to save flash space. When we disable it via chconf.h, our firmware hangs (never starts up). Our main() implements an infinite loop, like so: while (true) { chThdSleepMilliseconds(MAIN_THREAD_CHECK_INTERVAL_MS);...
- Mon Oct 09, 2017 6:43 am
- Forum: STM32 Support
- Topic: SW-DP interface for debugging?
- Replies: 3
- Views: 2599
Re: SW-DP interface for debugging?
Any recommendations? Should the example code in the link simply do the job?
Thanks!
Thanks!
- Sat Sep 30, 2017 4:22 am
- Forum: STM32 Support
- Topic: SW-DP interface for debugging?
- Replies: 3
- Views: 2599
Re: SW-DP interface for debugging?
Hm, it might be as simple as some inline assembly. Here's a hint of how it might work:
https://electronics.stackexchange.com/q ... d-using-gd
https://electronics.stackexchange.com/q ... d-using-gd
- Sat Sep 30, 2017 3:53 am
- Forum: STM32 Support
- Topic: SW-DP interface for debugging?
- Replies: 3
- Views: 2599
SW-DP interface for debugging?
Hi, Does ChibiOS have any functions for using the SW-DP for outputting debuging messages over SWD? I'm using openocd as well. Having this would free up a USART we're currently using for debugging output. Barring that, can anyone recommend a software UART implementation for STM32 that could be used f...
- Thu Jul 20, 2017 5:21 pm
- Forum: STM32 Support
- Topic: Flash write routine for STM32F0
- Replies: 1
- Views: 3622
Flash write routine for STM32F0
Hi,
We have a project using the STM32F042 and ChibiOS. We have a need to store some configuration data in the processor's flash.
Anyone have an example that writes to flash memory on F0?
Thanks for any help!
We have a project using the STM32F042 and ChibiOS. We have a need to store some configuration data in the processor's flash.
Anyone have an example that writes to flash memory on F0?
Thanks for any help!
- Sun Jul 16, 2017 5:47 pm
- Forum: STM32 Support
- Topic: STM32F042 CAN filter problems
- Replies: 5
- Views: 5218
Re: STM32F042 CAN filter problems
Hi, thanks for the update. CAN bus most definitely works fine without filters enabled. However, I didn't think the filters would be related to the baud rate settings for the peripheral ? It seems like they are completely un-related? I will try with the latest version of ChibiOS, however. Thanks again!
- Sun Jun 18, 2017 4:45 pm
- Forum: STM32 Support
- Topic: STM32F042 CAN filter problems
- Replies: 5
- Views: 5218
Re: STM32F042 CAN filter problems
Thanks for the reply. So far I switched it to after canStart() with no effect. // Remap PA11-12 to PA9-10 for CAN RCC->APB2ENR |= RCC_APB2ENR_SYSCFGCOMPEN; SYSCFG->CFGR1 |= SYSCFG_CFGR1_PA11_PA12_RMP; /* CAN RX. */ palSetPadMode(GPIOA, 11, PAL_STM32_MODE_ALTERNATE | PAL_STM32_ALTERNATE(4)); /* CAN T...
- Sat Jun 17, 2017 3:30 am
- Forum: STM32 Support
- Topic: STM32F042 CAN filter problems
- Replies: 5
- Views: 5218
STM32F042 CAN filter problems
Hello, I'm having problems enabling CAN filters on the STM32F042. When filters are not enabled my CAN operations work correctly. I'm on ChibiOS 16.1.0. Goal is to accept IDs between E3700 and E37FF. here's my sample code. When the line canSTM32SetFilters is enabled, I do not receive CAN messages. //...