Search found 129 matches

by jscott
Fri Jul 25, 2014 9:39 pm
Forum: STM32 Support
Topic: usb shell spawn
Replies: 19
Views: 3453

Re: usb shell spawn

Ah! Yes. In your main change while(TRUE){} to while(TRUE) { chThdSleepMilliseconds(500); } Never use an empty loop in an RTOS... I know from experience. :oops: :oops: If you have other code that runs in that while() loop, you will probably want to use a shorter delay. A few milliseconds would be fin...
by jscott
Fri Jul 25, 2014 9:24 pm
Forum: STM32 Support
Topic: usb shell spawn
Replies: 19
Views: 3453

Re: usb shell spawn

I doubt it is a chibios problem. Where is your main where you init chibios? Can you provide your whole file? If not, can you create a short test program that does the same thing? Are you running a debugger? can you see what the processor is doing? Do you have all the debug options turned on? You mig...
by jscott
Fri Jul 25, 2014 2:25 pm
Forum: STM32 Support
Topic: usb shell spawn
Replies: 19
Views: 3453

Re: usb shell spawn

1. What board are you using?

2. On the stm32f4 discovery, be sure you plug the usb cable into the OTHER usb
port. The plug you use to load programs and debug through is not connected
to the stm32f4, you need to connect to the plug on the bottom of the bourd next
to the audio jack.

-John Scott
by jscott
Thu Jul 24, 2014 11:42 pm
Forum: General Support
Topic: Advice - Which processor and what programming tools.
Replies: 3
Views: 922

Re: Advice - Which processor and what programming tools.

Congratulations on deciding to upgrade!!! :D :D I would say go with the STM32F4Discovery. It includes a programmer on board. Then download ChibiStudio. It includes all the tools you will need to get started. Beware, however, that it is Eclipse, and will probably require some time for you to get the ...
by jscott
Mon Jun 30, 2014 11:12 pm
Forum: General Support
Topic: Share a resource between threads and VT?
Replies: 2
Views: 1485

Re: Share a resource between threads and VT?

Hi Korken, If I understand your concept correctly, I think I would implement your message passing using a thread not the VT callback. -- In the thread, you would wait on a semaphore. -- Then in the VT callback you would signal that semaphore. -- Then the thread can do whatever it needs, and you can ...
by jscott
Thu Jun 05, 2014 9:12 pm
Forum: STM32 Support
Topic: ChibiStudio Problems
Replies: 4
Views: 1528

Re: ChibiStudio Problems

...all runs into hell ... is not a very technical description .... Can you provide some more detailed information.... ... say a error message? ... or better yet a screen print would help provide us an idea just what is going on. otherwise perhaps someone can recommend a good exorcist.... :P Most de...
by jscott
Mon Apr 28, 2014 6:33 pm
Forum: General Support
Topic: starting thread with parameters...
Replies: 4
Views: 1705

Re: starting thread with parameters...

Colin, Yea, I think just passing a message might be better. That would solve the problem I have with defining a thread in one module and creating the thread. Giovanni, How would I go about having one module named processing.c that contains a thread defined in the usual way. Then call the create proc...
by jscott
Mon Apr 28, 2014 5:58 pm
Forum: STM32 Support
Topic: CCM section & "section `.bss' will not fit in region `ram'"
Replies: 27
Views: 7377

Re: CCM section & "section `.bss' will not fit in region `ra

Russian,

Try declaring pendingBuffer volatile.

They if that does not do it, try adding a simple pendingBuffer[0] = 1;
and see what that does...

It seems to be a very fussy problem...

-John
by jscott
Sun Apr 27, 2014 4:44 am
Forum: General Support
Topic: starting thread with parameters...
Replies: 4
Views: 1705

starting thread with parameters...

I am getting ADC data from three ADC channels and doing some processing in the ADC callback. When my data buffer is ready, I switch buffers and need to send the full buffers to another thread for processing while the second set of buffers fill. I have not been able to figure out how to start a threa...
by jscott
Fri Apr 25, 2014 6:43 pm
Forum: STM32 Support
Topic: CCM section & "section `.bss' will not fit in region `ram'"
Replies: 27
Views: 7377

Re: CCM section & "section `.bss' will not fit in region `ra

Russian, Ok, I did some testing on a sample program of mine... The *_ccm.ld file that Giovanni updated works! ( not that that is a surprise!!) While I don't think I have done exhaustive testing, I found two things that need to be done. 1. Declare your variable such as: volatile uint16_t zaudio_sampl...

Go to advanced search