Search found 7 matches

by Lupin
Wed Jan 30, 2013 5:14 pm
Forum: Development and Feedback
Topic: External binary applications
Replies: 1
Views: 1991

External binary applications

For my current project I would like to have some parts of the firmware interchangeable by loading applications from SD card.

One way is to run the application as a ChibiOS thread. But how can I link my application against the main firmware? In need a way to interact with the main firmware.

I have ...
by Lupin
Sun Jan 13, 2013 11:20 pm
Forum: General Support
Topic: Managing resources... or how to program for ChibiOS?
Replies: 2
Views: 2612

Managing resources... or how to program for ChibiOS?

I am using ChibiOS for a while now, it's really an amazing piece of software, seriously

But i always wonder how to manage hardware resources correctly.

1) How to determine the work-area size for a thread? Usually i just try to decrease the work area until the system crashes and then give the ...
by Lupin
Mon Jan 07, 2013 1:01 am
Forum: General Support
Topic: SDIO fails on waiting for transfer state?
Replies: 3
Views: 3650

Re: SDIO fails on waiting for transfer state?

Okay... i just tried to init the SDIO in a loop. After a while it would work. Then i noticed that PD2 (SDIO CMD) is sensitive to my touch (if i touch it the SD card wont be detected).

The pin configuration in board.h is correct, but maybe PD2 has another problem? Maybe it needs an external pull-up ...
by Lupin
Mon Jan 07, 2013 12:42 am
Forum: General Support
Topic: SDIO fails on waiting for transfer state?
Replies: 3
Views: 3650

Re: SDIO fails on waiting for transfer state?

Just tried again with a fresh setup of ChibiOS 2.5.1 and the FATFS-USB demo code (but with my specific board.h file of course).

It still doesn't work, but i think i don't get the first error in "sdc_lld_send_cmd_short_crc" any more (maybe it is just sporadic, no idea), but still the same problem ...
by Lupin
Sun Jan 06, 2013 11:34 pm
Forum: General Support
Topic: SDIO fails on waiting for transfer state?
Replies: 3
Views: 3650

SDIO fails on waiting for transfer state?

I am currently trying to get SDIO running on STM32F4 Discovery.

I have connected the SD conector with some wires (no pull-ups or series resistors) and cut the PC10/PC12 traces to the DAC. The DAC is now connected to other pins on Port B and still works fine

I am trying to use SDIO with FatFS. The ...
by Lupin
Fri Jan 04, 2013 11:11 pm
Forum: General Support
Topic: Using sprintf / sbrk_r
Replies: 2
Views: 2486

Re: Using sprintf / sbrk_r

I just modified chprintf to chsprintf and it works good. But still i would like to know how one could fix the issue with sbrk_r?
by Lupin
Fri Jan 04, 2013 11:02 pm
Forum: General Support
Topic: Using sprintf / sbrk_r
Replies: 2
Views: 2486

Using sprintf / sbrk_r

At the moment i am stuck trying to get sprintf to work with ChibiOS (STM32F4 / gcc-arm-embedded compiler).

At first i got linker errors because of missing sbrk_r function. Then i included the syscalls.c file that comes along with ChibiOS.

The code compiles, works for a few seconds and then the OS ...