Search found 5 matches

by MySOL93
Mon May 15, 2017 8:32 pm
Forum: STM32 Support
Topic: chThdSuspendS problem
Replies: 4
Views: 2521

Re: chThdSuspendS problem

Giovanni wrote:The meaning of codes is in this article: http://www.chibios.org/dokuwiki/doku.ph ... ebug_guide

Giovanni


Giovanni, thank you for your help
by MySOL93
Mon May 15, 2017 4:24 pm
Forum: STM32 Support
Topic: chThdSuspendS problem
Replies: 4
Views: 2521

Re: chThdSuspendS problem

Giovanni wrote:Hi,

S-class functions must be called between a chSysLock() and chSysUnlock(), the state checker is informing you that something is wrong there.

Giovanni


Thank for answer!
I am uncomment "chSysLock()" and "chSysUnlock()" and now i got SV#4
by MySOL93
Mon May 15, 2017 11:48 am
Forum: STM32 Support
Topic: chThdSuspendS problem
Replies: 4
Views: 2521

chThdSuspendS problem

Hello! Need some help with "Suspend/Wakeup"


static thread_reference_t* PWaitingThread;

/*
* Threads
*/

static THD_WORKING_AREA(waThd,512);
static THD_FUNCTION(Thd, arg){


//chSysLock();
chThdSuspendS(PWaitingThread);
//chSysUnlock();

while(TRUE) {



palSetPad(GPIOB, GPIOB_LED4 ...
by MySOL93
Thu Dec 29, 2016 10:49 pm
Forum: STM32 Support
Topic: STM32F407/New Keil Project from F303/DMA driver problem
Replies: 2
Views: 2020

Re: STM32F407/New Keil Project from F303/DMA driver problem

Giovanni wrote:Hi,

Make sure to take a makefile from an F407 project, it uses a different DMA, check the paths.

Giovanni


Solved! Thank you
by MySOL93
Thu Dec 29, 2016 9:22 pm
Forum: STM32 Support
Topic: STM32F407/New Keil Project from F303/DMA driver problem
Replies: 2
Views: 2020

STM32F407/New Keil Project from F303/DMA driver problem

Dear friends!

Please help with the following problem:
Create a new project for STM32F407 from F303 template. In file stm32_registry.h for stm32f4 is missing definition of STM32_DMA_SUPPORTS_CSELR/STM32_DMA1_NUM_CHANNELS/STM32_DMA2_NUM_CHANNELS unlike in the same file for stmf3. This difference ...