Hello,
i got a stack overflow in the main after starting the application. I step over the first two commands (halInit(), chSysInit()). The stack gets normal after some more steps.
Could this be a problem?
I've attached a snapshot where i've done 4 steps.
Christian
Search found 14 matches
- Mon Sep 17, 2012 12:19 pm
- Forum: General Support
- Topic: STM32F4 hangs on _spi_wait_s
- Replies: 33
- Views: 21220
- Thu Sep 13, 2012 5:53 pm
- Forum: General Support
- Topic: LWIP Problem UDP
- Replies: 3
- Views: 4075
Re: LWIP Problem UDP
Hello,
thanks for the hint with the statistics. But i found no error or problem.
I have attached a test output after sending 15 UDP Packets, i expect 15 answer packets but i got only one. After the third thread is ready reinitialized, i got no packet.
Stats UDP
recv 15
cachehit 0
checkerr 0 ...
thanks for the hint with the statistics. But i found no error or problem.
I have attached a test output after sending 15 UDP Packets, i expect 15 answer packets but i got only one. After the third thread is ready reinitialized, i got no packet.
Stats UDP
recv 15
cachehit 0
checkerr 0 ...
- Thu Sep 13, 2012 1:24 pm
- Forum: General Support
- Topic: LWIP Problem UDP
- Replies: 3
- Views: 4075
LWIP Problem UDP
Hello
i'm working on a project with LWIP on the stm32f4 discovery. Therefor i have three threads which handles the ethernet connection.
One thread receive packages and put them on can bus. Another receive can packages an send them on udp. A third thread send on udp parallel.
My problem is, when ...
i'm working on a project with LWIP on the stm32f4 discovery. Therefor i have three threads which handles the ethernet connection.
One thread receive packages and put them on can bus. Another receive can packages an send them on udp. A third thread send on udp parallel.
My problem is, when ...
- Thu Sep 06, 2012 3:50 pm
- Forum: General Support
- Topic: STM32F4 hangs on _spi_wait_s
- Replies: 33
- Views: 21220
Re: STM32F4 hangs on _spi_wait_s
Hello,
now i get it working. Actually i have no problem. After i checked the stack size of all threads and test them.
How large is the maximum stack size in sum of all threads?
Christian
now i get it working. Actually i have no problem. After i checked the stack size of all threads and test them.
How large is the maximum stack size in sum of all threads?
Christian
- Fri Aug 31, 2012 9:21 pm
- Forum: General Support
- Topic: STM32F4 hangs on _spi_wait_s
- Replies: 33
- Views: 21220
Re: STM32F4 hangs on _spi_wait_s
Hello,
i think i have a memory problem maybe with the stack and threads.
When i call the spi functions from a empty main, it works. But when i call it from a thread i get the same problem. I think i have to check my codes again...
I use Eclipse Juno for debugging. But for testing i flash the stm ...
i think i have a memory problem maybe with the stack and threads.
When i call the spi functions from a empty main, it works. But when i call it from a thread i get the same problem. I think i have to check my codes again...
I use Eclipse Juno for debugging. But for testing i flash the stm ...
- Thu Aug 30, 2012 5:36 pm
- Forum: General Support
- Topic: STM32F4 hangs on _spi_wait_s
- Replies: 33
- Views: 21220
Re: STM32F4 hangs on _spi_wait_s
Hello,
i don't know what is wrong. My Program hangs at different positions. I've started with a clean demo project an added my SPI code. That was running. Later the program hangs at a chprintf() call. Now at a chThdSleepMilliseconds(). I don't know how i can debug this. Eclipse stops at the line ...
i don't know what is wrong. My Program hangs at different positions. I've started with a clean demo project an added my SPI code. That was running. Later the program hangs at a chprintf() call. Now at a chThdSleepMilliseconds(). I don't know how i can debug this. Eclipse stops at the line ...
- Wed Aug 29, 2012 8:52 pm
- Forum: General Support
- Topic: STM32F4 hangs on _spi_wait_s
- Replies: 33
- Views: 21220
Re: STM32F4 hangs on _spi_wait_s
Hi,
i have attached my test code. Do you find a failure in the code?
The error exist also when i flash it from the cosole with st-flash write build/ch.bin 0x8000000.
Tomorrow i try it without the stlink. Then i power it from an extern source.
Christian
#include "ch.h"
#include "hal.h ...
i have attached my test code. Do you find a failure in the code?
The error exist also when i flash it from the cosole with st-flash write build/ch.bin 0x8000000.
Tomorrow i try it without the stlink. Then i power it from an extern source.
Christian
#include "ch.h"
#include "hal.h ...
- Wed Aug 29, 2012 6:42 pm
- Forum: General Support
- Topic: STM32F4 hangs on _spi_wait_s
- Replies: 33
- Views: 21220
Re: STM32F4 hangs on _spi_wait_s
Hello,
installing the GNU Toolchain doesn't work for me. I get the same version output from arm-none-eabi-gcc -v . But the problem still exist. The program stops during the return of "void dbg_trace(Thread *otp)". At this point eclipse doesn't react. Only if i push the reset button from the stm ...
installing the GNU Toolchain doesn't work for me. I get the same version output from arm-none-eabi-gcc -v . But the problem still exist. The program stops during the return of "void dbg_trace(Thread *otp)". At this point eclipse doesn't react. Only if i push the reset button from the stm ...
- Wed Aug 29, 2012 4:06 pm
- Forum: General Support
- Topic: STM32F4 hangs on _spi_wait_s
- Replies: 33
- Views: 21220
Re: STM32F4 hangs on _spi_wait_s
Hello,
I've the same problem. Where can i find the old version of codesourcery (4.5.2). I've installed Verion 4.6.1.
I am working on Linux x64.
Christian
I've the same problem. Where can i find the old version of codesourcery (4.5.2). I've installed Verion 4.6.1.
I am working on Linux x64.
Christian
- Tue Jul 24, 2012 8:49 am
- Forum: General Support
- Topic: Question to Mailbox
- Replies: 8
- Views: 5583
Re: Question to Mailbox
Hi,
thanks for the fast answers.
The zero in chMBPost/Fetch was a try, normally i use TIME_INFINITE.
Thanks for the hint with msg_t and the third parameter. Now i found out that it is a multiple of Int32.
I try it later today.
Thanks, Christian
thanks for the fast answers.
The zero in chMBPost/Fetch was a try, normally i use TIME_INFINITE.
Thanks for the hint with msg_t and the third parameter. Now i found out that it is a multiple of Int32.
I try it later today.
Thanks, Christian