Search found 89 matches

by omcdr
Fri May 18, 2018 5:43 pm
Forum: Bug Reports
Topic: chcoreasm_v6m.s chSysHalt Topic is solved
Replies: 1
Views: 531

chcoreasm_v6m.s chSysHalt Topic is solved

In IAR file: os\common\ports\ARMCMx\compilers\IAR\chcoreasm_v6m.s
missing?:

Code: Select all

EXTERN chSysHalt
by omcdr
Wed May 09, 2018 7:03 am
Forum: Bug Reports
Topic: STM32F030x4 bugs Topic is solved
Replies: 1
Views: 540

STM32F030x4 bugs Topic is solved

I'm trying to use NIL and HAL with STM32F030x4 in 18.2.1 but I got a lot of errors. I have set #define STM32F030x4 in my board.h and I have found bugs: - in hal_lld.h missing #if defined(STM32F030x4) got #error "STM32F0xx device unsupported or not specified" - in STM32F0xx/stm32_registry.h...
by omcdr
Fri Apr 06, 2018 8:20 am
Forum: General Support
Topic: own chDbgCheck Topic is solved
Replies: 1
Views: 708

own chDbgCheck Topic is solved

What is best way to define own chDbgCheck macro ?
In chdebug.h there is #if !defined(chDbgCheck), but this file doesn't include other files to overide it.
It could be a good idea to include global user.h if exists to override macros like this ?
by omcdr
Fri Mar 16, 2018 8:42 pm
Forum: STM32 Support
Topic: palEnablePadEvent
Replies: 1
Views: 795

palEnablePadEvent

I want to enable IRQ on GPIOA 0, there is my simple code: palSetPadMode(GPIOA, 0,PAL_MODE_INPUT_PULLUP | PAL_STM32_OSPEED_HIGHEST); palSetPadCallback(GPIOA, 0, cbIrqA0, NULL); palEnablePadEvent(GPIOA, 0, PAL_EVENT_MODE_FALLING_EDGE); but I got Assert in this line osalDbgAssert(((EXTI->RTSR & pad...
by omcdr
Thu Mar 15, 2018 8:59 am
Forum: Bug Reports
Topic: Macro rccDisableTIMx Topic is solved
Replies: 1
Views: 566

Macro rccDisableTIMx Topic is solved

In file community\os\hal\ports\STM32\LLD\TIMv1\hal_eicu_lld.c there is macros rccDisableTIMx with parametr FALSE #if STM32_EICU_USE_TIM2 if (&EICUD2 == eicup) { nvicDisableVector(STM32_TIM2_NUMBER); rccDisableTIM2(FALSE); } but in file os\hal\ports\STM32\STM32F4xx\stm32_rcc.h there is macro with...
by omcdr
Thu Feb 08, 2018 3:03 pm
Forum: General Support
Topic: Thread suspend
Replies: 3
Views: 825

Re: Thread suspend

How to suspend task, if I know thread_t * ?
Can I from main suspend other task ? chThdSuspendS can suspend only current thread.
by omcdr
Wed Feb 07, 2018 12:03 pm
Forum: General Support
Topic: Thread suspend
Replies: 3
Views: 825

Thread suspend

How to suspend task ? I have simple code, one thread, I start it and call chThdSuspendS in this task - it works. I can resume with chThdResume this thread, but I can't suspend it. I call chThdSuspendS in main, it return MSG_OK, but thread still working. What is wrong ? typedef struct trg_t { thread_...
by omcdr
Mon Jan 22, 2018 7:44 pm
Forum: General Support
Topic: LwIP demo for Nucleo-144
Replies: 13
Views: 2764

Re: LwIP demo for Nucleo-144

Check lwipopts.h and LWIP_DHCP option.
by omcdr
Wed Jan 17, 2018 9:24 am
Forum: General Support
Topic: CMSIS RTOS API
Replies: 2
Views: 872

Re: CMSIS RTOS API

Thank you for your explanation
by omcdr
Wed Jan 17, 2018 8:55 am
Forum: General Support
Topic: CMSIS RTOS API
Replies: 2
Views: 872

CMSIS RTOS API

Why in CMSIS RTOS API compatibility layer there is a dynamic memory management ? Does it depend on something? Can it be static ? In version v2.12 I have seen osKernelLock. How to map it to chSysLock ? It return state. https://www.keil.com/pack/doc/CMSIS/RTOS2/html/group__CMSIS__RTOS__KernelCtrl.html...

Go to advanced search