Search found 129 matches
- Fri Jul 25, 2014 9:39 pm
- Forum: STM32 Support
- Topic: usb shell spawn
- Replies: 19
- Views: 3965
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...
- Fri Jul 25, 2014 9:24 pm
- Forum: STM32 Support
- Topic: usb shell spawn
- Replies: 19
- Views: 3965
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...
- Fri Jul 25, 2014 2:25 pm
- Forum: STM32 Support
- Topic: usb shell spawn
- Replies: 19
- Views: 3965
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
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
- Thu Jul 24, 2014 11:42 pm
- Forum: General Support
- Topic: Advice - Which processor and what programming tools.
- Replies: 3
- Views: 1032
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 ...
- Mon Jun 30, 2014 11:12 pm
- Forum: General Support
- Topic: Share a resource between threads and VT?
- Replies: 2
- Views: 1586
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 ...
- Thu Jun 05, 2014 9:12 pm
- Forum: STM32 Support
- Topic: ChibiStudio Problems
- Replies: 4
- Views: 1668
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...
- Mon Apr 28, 2014 6:33 pm
- Forum: General Support
- Topic: starting thread with parameters...
- Replies: 4
- Views: 1838
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...
- Mon Apr 28, 2014 5:58 pm
- Forum: STM32 Support
- Topic: CCM section & "section `.bss' will not fit in region `ram'"
- Replies: 27
- Views: 8025
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
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
- Sun Apr 27, 2014 4:44 am
- Forum: General Support
- Topic: starting thread with parameters...
- Replies: 4
- Views: 1838
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...
- Fri Apr 25, 2014 6:43 pm
- Forum: STM32 Support
- Topic: CCM section & "section `.bss' will not fit in region `ram'"
- Replies: 27
- Views: 8025
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...