chThdSleep strange behaviour
Posted: Wed Jan 13, 2016 3:00 pm
Hello guys,
First of all, thanks for this tremendous work. ChibiOS is great !
I have some trouble with a custom board using a STM32F427IIT6. It is probably a configuration problem because I have reduced the code to :
I use ChibiOS 16.1.
In debug mode the chThdSleepMicroseconds function never end ( debugger is lost at line 338 of chschd.c )
My chconf.h have all the values at the default values.
Nothing is activated in halconf.h
My mcuconf.h:
Code works on other platforms ( stm32f7discovery with the demo config files )
Any idea of what happens?
Thanks
First of all, thanks for this tremendous work. ChibiOS is great !
I have some trouble with a custom board using a STM32F427IIT6. It is probably a configuration problem because I have reduced the code to :
Code: Select all
int main(void) {
halInit();
chSysInit();
chThdSleepMicroseconds(250);
while (TRUE) {
chThdSleepMicroseconds(250);
}
}I use ChibiOS 16.1.
In debug mode the chThdSleepMicroseconds function never end ( debugger is lost at line 338 of chschd.c )
My chconf.h have all the values at the default values.
Nothing is activated in halconf.h
My mcuconf.h:
Code: Select all
#define STM32F4xx_MCUCONF
/*
* HAL driver system settings.
*/
#define STM32_NO_INIT FALSE
#define STM32_HSI_ENABLED TRUE
#define STM32_LSI_ENABLED TRUE
#define STM32_HSE_ENABLED TRUE
#define STM32_LSE_ENABLED FALSE
#define STM32_CLOCK48_REQUIRED TRUE
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSE
#define STM32_PLLM_VALUE 24
#define STM32_PLLN_VALUE 336
#define STM32_PLLP_VALUE 2
#define STM32_PLLQ_VALUE 7
#define STM32_HPRE STM32_HPRE_DIV1
#define STM32_PPRE1 STM32_PPRE1_DIV4
#define STM32_PPRE2 STM32_PPRE2_DIV2
#define STM32_RTCSEL STM32_RTCSEL_LSI
#define STM32_RTCPRE_VALUE 8
#define STM32_MCO1SEL STM32_MCO1SEL_HSI
#define STM32_MCO1PRE STM32_MCO1PRE_DIV1
#define STM32_MCO2SEL STM32_MCO2SEL_SYSCLK
#define STM32_MCO2PRE STM32_MCO2PRE_DIV5
#define STM32_I2SSRC STM32_I2SSRC_CKIN
#define STM32_PLLI2SN_VALUE 192
#define STM32_PLLI2SR_VALUE 5
#define STM32_PVD_ENABLE FALSE
#define STM32_PLS STM32_PLS_LEV0
#define STM32_BKPRAM_ENABLE FALSE
Code works on other platforms ( stm32f7discovery with the demo config files )
Any idea of what happens?
Thanks