ARMCM4-STM32F407-LWIP demo
Posted: Fri Aug 31, 2012 12:53 pm
Hello,
I am quite new to the ChibiOS and the STM32 family, so please excuse me if the questions are too basic.
I downloaed the 2.4.2 version of the OS and now am trying to play with the ARMCM4-STM32F407-LWIP demo software. My board is OLIMEX_STM32_P407. My debugger is ST-LINK. I am working in Eclipse with ARM Sourcery GCC for Windows.
I set up the project in Eclipse as described in the manuals and managed to compile it and download on the device.
When I started debugging, the program went in the following endless loop below:
1. file - mac_lld.c
2. line - 310 (function void mac_lld_start(MACDriver *macp))
ETH->DMABMR |= ETH_DMABMR_SR;
while(ETH->DMABMR & ETH_DMAB);
It seems the program can not reset the MAC registers, but I have no idea why.
Have you experienced this problem and can you please give me some hints? My be I have a wrong setting somewhere?
The changes I made from the original project are as follows:
Added "SHELL = C:\Windows\system32\cmd.exe" in the begining of the makefile (otherwise the cs-make crashes with exception)
added in main.c "DBGMCU_Config(DBGMCU_SLEEP | DBGMCU_STANDBY | DBGMCU_STOP, ENABLE);" to allow the debugger to work in low power modes of the MCU.
I guess these changes can not influence the MAC registers reset.
Thanks in advance for the help!
I am quite new to the ChibiOS and the STM32 family, so please excuse me if the questions are too basic.
I downloaed the 2.4.2 version of the OS and now am trying to play with the ARMCM4-STM32F407-LWIP demo software. My board is OLIMEX_STM32_P407. My debugger is ST-LINK. I am working in Eclipse with ARM Sourcery GCC for Windows.
I set up the project in Eclipse as described in the manuals and managed to compile it and download on the device.
When I started debugging, the program went in the following endless loop below:
1. file - mac_lld.c
2. line - 310 (function void mac_lld_start(MACDriver *macp))
ETH->DMABMR |= ETH_DMABMR_SR;
while(ETH->DMABMR & ETH_DMAB);
It seems the program can not reset the MAC registers, but I have no idea why.
Have you experienced this problem and can you please give me some hints? My be I have a wrong setting somewhere?
The changes I made from the original project are as follows:
Added "SHELL = C:\Windows\system32\cmd.exe" in the begining of the makefile (otherwise the cs-make crashes with exception)
added in main.c "DBGMCU_Config(DBGMCU_SLEEP | DBGMCU_STANDBY | DBGMCU_STOP, ENABLE);" to allow the debugger to work in low power modes of the MCU.
I guess these changes can not influence the MAC registers reset.
Thanks in advance for the help!