Search found 89 matches

by JoVM
Tue Aug 18, 2015 1:07 pm
Forum: General Support
Topic: **Freeing NULL pointers
Replies: 1
Views: 2169

**Freeing NULL pointers

Why chHeapFree() doesn't support freeing NULL pointers?

Code: Select all

chDbgCheck(p != NULL);


It is heavily supported in mbed TLS and my code has runtime failures. Is a wrapper required or else?
by JoVM
Thu Aug 13, 2015 7:19 pm
Forum: STM32 Support
Topic: SDRAM driver
Replies: 5
Views: 4039

Re: SDRAM driver

Is it planned for consistency with the latest release? Do I include FSMC always with every build?
by JoVM
Thu Aug 13, 2015 4:31 pm
Forum: STM32 Support
Topic: SDRAM driver
Replies: 5
Views: 4039

Re: SDRAM driver

The commit in ChibiOS-contrib doesn't include a .mk for smartbuild.
Doesn't it need something like

Code: Select all

ifneq ($(findstring HAL_USE_FSMC TRUE,$(HALCONF)),)
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/FSMC/....
endif
?
by JoVM
Thu Aug 13, 2015 1:45 pm
Forum: STM32 Support
Topic: SDRAM driver
Replies: 5
Views: 4039

Re: SDRAM driver

Hi Giovanni,

Likely. I have the IS61WV1024 on my STM32F40G-EVAL board. I thought it was DRAM but it must be SRAM then.


Kr,Jo
by JoVM
Thu Aug 13, 2015 1:18 pm
Forum: STM32 Support
Topic: SDRAM driver
Replies: 5
Views: 4039

SDRAM driver

Why

Code: Select all

#if (defined(STM32F427xx) || defined(STM32F437xx) || \
     defined(STM32F429xx) || defined(STM32F439xx))

#include "fsmc.h"
...
??

Is it tested for stm32f407? This comes from barthess commit.


Kr,Jo
by JoVM
Wed Aug 12, 2015 6:25 pm
Forum: General Support
Topic: missing newlib stubs
Replies: 11
Views: 9317

Re: missing newlib stubs

Depends you want to use syscalls.o or libg.a?

Kr,Jo
by JoVM
Mon Aug 10, 2015 6:25 pm
Forum: General Support
Topic: ChibiOS Debug View: Thread View Error
Replies: 1
Views: 2231

ChibiOS Debug View: Thread View Error

If I want to read the thread usage in Eclipse chibiOS Debug view I get an Error: error reading memory at 536906904. I can't find an answer.
by JoVM
Fri Aug 07, 2015 3:42 pm
Forum: General Support
Topic: Thread SlotS
Replies: 5
Views: 4230

Re: Thread SlotS

tnx Giovanni,


Code: Select all

if (tp->p_state != CH_STATE_FINAL) {
    list_insert(currp, &tp->p_waiting);
    chSchGoSleepS(CH_STATE_WTEXIT);
  }


CH_STATE_FINAL means the handler thread is cleaned?
by JoVM
Fri Aug 07, 2015 3:10 pm
Forum: General Support
Topic: Thread SlotS
Replies: 5
Views: 4230

Re: Thread SlotS

Hi Giovanni,

chThdWait() blocks the invoking thread. But this thread can't be blocked cause it's accepting connections. It manages a thread for each connection. If the handler thread is finished it frees a place in the list.


Kr,Jo
by JoVM
Fri Aug 07, 2015 11:59 am
Forum: General Support
Topic: Thread SlotS
Replies: 5
Views: 4230

Thread SlotS

Is there a thread_join function in chibiOS 3.0 to do thread slots.

static int thread_create( int client_fd )
{
int ret, i;

/*
* Find in-active or finished thread slot
*/
for( i = 0; i < MAX_NUM_THREADS; i++ )
{
if( threads&#91;i&#93;&#46;active == 0 )
break;

if( threads&#91;i&#93;&#46 ...