Search found 17 matches

by thor.thau
Wed Feb 08, 2017 4:41 pm
Forum: STM32 Support
Topic: External ADC & DMA
Replies: 37
Views: 27127

Re: External ADC & DMA

I'm not able to attach a debugger. The controller is programmed by SWD.

It is possible to debug through the microcontrollers SWD interface. I am using ST Link V2 and J-Link EDU debuggers. There are lots of explanations available on the internet for connecting a debugger JTAG interface to a board ...
by thor.thau
Mon Jan 16, 2017 4:34 pm
Forum: Bug Reports
Topic: Problem with StkUnused calculation
Replies: 6
Views: 9608

Re: Problem with StkUnused calculation

RoccoMarco wrote:Hi,
do you have set CH_DBG_FILL_THREADS as TRUE in chconf.h?


Yes, it is set to TRUE and I also checked with the debugger that all the stack memory was set to 0x55.
by thor.thau
Mon Jan 16, 2017 10:22 am
Forum: Bug Reports
Topic: Problem with StkUnused calculation
Replies: 6
Views: 9608

Problem with StkUnused calculation

ChibiStudio: Preview 17
ChibiOS: 16.1.6
SVN: branches/stable_16.1.x@10032
MCU: STM32F030x8

I have thread where I statically declared working area with a size of 2048 bytes. THD_WORKING_AREA(waThread, 2048U); When I debug and look in ChibiOS/RT 3.x.x Debug View -> Threads tab then the StkUnused is ...
by thor.thau
Wed Jan 11, 2017 12:18 pm
Forum: Bug Reports
Topic: Nitpicking the ChibiOS code
Replies: 7
Views: 7142

Re: Nitpicking the ChibiOS code

ChibiOS: 16.1.6
SVN: branches/stable_16.1.x@10005
Module: streams/chprintf

There are some errors in the comments to function chsnprintf. For example the comments say it is a vprintf implementation.


diff --git a/os/hal/lib/streams/chprintf.c b/os/hal/lib/streams/chprintf.c
index b2c4478da ...
by thor.thau
Thu Jan 05, 2017 1:53 pm
Forum: Bug Reports
Topic: [HAL][STM32] DMA isr ignores enabled interrupts
Replies: 1
Views: 3687

[HAL][STM32] DMA isr ignores enabled interrupts

ChibiOS: 16.1.6
SVN: branches/stable_16.1.x@10005
MCU: STM32F030x8
Module: DMAv1/stm32_dma

I am using the UART driver setup with USART1, TX requests on DMA1 channel 4 and RX requests on DMA1 channel 5. When I am using uartStartSend then only half of the bytes are send.

The problem is that with ...
by thor.thau
Wed Jan 04, 2017 4:56 pm
Forum: Bug Reports
Topic: HAL - STM32F030 TIM attribute errors
Replies: 6
Views: 6103

Re: HAL - STM32F030 TIM attribute errors

You forgot a part of the change. Selecting MCU type STM32F030xC will fail because STM32_HAS_TIM7 is then redefined.

ChibiOS: 16.1.6
SVN: branches/stable_16.1.x@10005


diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
index 1c9688664 ...
by thor.thau
Tue Jan 03, 2017 5:24 pm
Forum: Bug Reports
Topic: [HAL][STM32] Incorrect if check in pal_lld.c
Replies: 2
Views: 4030

[HAL][STM32] Incorrect if check in pal_lld.c

It seems like an if check implemented in function _pal_lld_setgroupmode for STM32/LLD/GPIO version 2 and version 3 is incorrect. The if check can only become true when the input ioportmask_t mask equals 0x01.

ChibiOS: 16.1.6
SVN: branches/stable_16.1.x@10005


diff --git a/os/hal/ports/STM32/LLD ...
by thor.thau
Mon Dec 12, 2016 12:42 pm
Forum: Bug Reports
Topic: Nitpicking the ChibiOS code
Replies: 7
Views: 7142

Re: Nitpicking the ChibiOS code

Spelling error in the main page of the generated reference manual by Doxygen.

ChibiOS: trunk
SVN: trunk@9952


diff --git a/doc/hal/src/main.dox b/doc/hal/src/main.dox
index cd8f735..3a96776 100644
--- a/doc/hal/src/main.dox
+++ b/doc/hal/src/main.dox
@@ -18,7 +18,7 ...
by thor.thau
Wed Nov 30, 2016 2:22 pm
Forum: Development and Feedback
Topic: chDbgAssert
Replies: 2
Views: 2693

Re: chDbgAssert

Hi Giovanni,

Thanks for the answer. I am more and more impressed by ChibiOS and the thoughts behind the different implementations.
by thor.thau
Wed Nov 30, 2016 10:46 am
Forum: Development and Feedback
Topic: chDbgAssert
Replies: 2
Views: 2693

chDbgAssert

chDbgAssert is the ChibiOS implementation alternative to using assert but the implementation still have one of the same problems.

I got this recommendation from a embedded newsletter:
The assert macro disappears when the debug switch isn't defined. But assert can take any argument, including ...