Search found 13 matches

by forrestjon
Tue Jun 24, 2014 6:22 pm
Forum: STM32 Support
Topic: STM32F4 SDIO f_write() lockup in Timer Callback
Replies: 4
Views: 2878

Re: STM32F4 SDIO f_write() lockup in Timer Callback

Hi Giovanni,

I understand. I posted my last message before seeing this one from you.
Thanks for the clarification on the "blocking" issue.

This unfortunately complicates my algorithm which needs to run every 5ms and write data to the SD card.
I slowed my timer callback down to 50ms to isolate what ...
by forrestjon
Tue Jun 24, 2014 5:35 pm
Forum: STM32 Support
Topic: STM32F4 SDIO f_write() lockup in Timer Callback
Replies: 4
Views: 2878

Re: STM32F4 SDIO f_write() lockup in Timer Callback

A little more info:
1) Increasing PORT IDLE STACK SIZE from 16 to 32 has no effect
2) I am using high optimization(for speed)
by forrestjon
Tue Jun 24, 2014 5:27 pm
Forum: STM32 Support
Topic: STM32F4 SDIO f_write() lockup in Timer Callback
Replies: 4
Views: 2878

STM32F4 SDIO f_write() lockup in Timer Callback

Hello,

I am toubleshooting an issue involving writing to an SD card with f_write().
My platform is as follows:
Hardware: STM32F4Discovery Board
Compiler : IAR 7.10.3
ChibiOS : 2.6.4

I am able to write full sectors(512 Bytes) to to the SD card without issue within main().

However, calling the same ...
by forrestjon
Tue Jun 24, 2014 1:58 pm
Forum: STM32 Support
Topic: STM32F4 FATFS f_open failure questions
Replies: 4
Views: 4525

Re: STM32F4 FATFS f_open failure questions

Hi Tabulous,

I was able to get things going yesterday by editing my own board file.
Thanks for the reference design files.
I'll keep them on hand for later.

-Forrest
by forrestjon
Mon Jun 23, 2014 8:59 pm
Forum: STM32 Support
Topic: STM32F4 FATFS f_open failure questions
Replies: 4
Views: 4525

Re: STM32F4 FATFS f_open failure questions

Hi,

The pin configuration in board.h was the problem indeed.

Thanks for the tip!

-Forrest
by forrestjon
Mon Jun 23, 2014 4:11 pm
Forum: STM32 Support
Topic: STM32F4 FATFS f_open failure questions
Replies: 4
Views: 4525

STM32F4 FATFS f_open failure questions

Hello,

I am working with the STM32F4Discovery board and making a ChibiOS project which utilizes FATFS to write sectors of data to an SD card.
My SD card interface is 4 bit wide.

I have successfully used the FATFS with the Discovery board to read and write files before attempting to move the ...
by forrestjon
Wed Jun 18, 2014 5:34 pm
Forum: STM32 Support
Topic: Simple Hardware Timer Setup Questions
Replies: 2
Views: 2414

Re: Simple Hardware Timer Setup Questions

Boy do I feel silly! :roll:
Added gpt_lld.c to the project...

Sorry for the post happy barrage from me today.
by forrestjon
Wed Jun 18, 2014 5:21 pm
Forum: STM32 Support
Topic: Simple Hardware Timer Setup Questions
Replies: 2
Views: 2414

Re: Simple Hardware Timer Setup Questions

I found a setting in gpt_lld.h that I thought would make a difference however it did not.
Setting STM32_GPT_USE_TIM14 to TRUE did not work.
I also tried setting the define for TIM9 to true. This did not work either.
/**
* @brief GPTD14 driver enable switch.
* @details If set to @p TRUE the support ...
by forrestjon
Wed Jun 18, 2014 5:09 pm
Forum: STM32 Support
Topic: Simple Hardware Timer Setup Questions
Replies: 2
Views: 2414

Simple Hardware Timer Setup Questions

Hi,

I have some simple questions about using hardware timers.
I am moving a design which is based on low level hardware control to a ChibiOS design.

In my low level design, I have set up a hardware timer (TIME13) to issue an interrupt every 5ms.
This works perfectly.

Now I am setting up a similar ...
by forrestjon
Wed Jun 18, 2014 4:53 pm
Forum: STM32 Support
Topic: STM32F4 DISCOVERY Start up HSI Stability Lockup Resolved
Replies: 5
Views: 3691

Re: STM32F4 DISCOVERY Start up HSI Stability Lockup Resolved

Hi,

I was using the IAR example project.

Thanks,

Forrest