STM32 GPIOE and debugging problems
Posted: Mon Nov 12, 2012 11:45 pm
Hi all ChibiOS users.
I have just started testing the ChibiOS RTOS system and have sucessfully got both Ethernet, PWM and other things to work at our STM32-E407 board from Olimex, featuring an STM32F407ZG chip.
My only problem currently is that I can't seem to get the GPIOE port working, the one used on D2-D5 output pins.
I have initialized the output with "palSetPadMode(GPIOE, 2, PAL_MODE_OUTPUT_PUSHPULL);"
But then when I try to toggle the output, or even set or clear the bit, nothing happens. The output stays at a high or floating level.
Any suggestions why this happens?
Next problem is about JTAG Debugging. We got a J-Link adapter which integrates (using GDB) with CooCox CoIDE (which is the IDE we are using).
Sometimes debugging works without any issues but suddenly it NEVER works.
All the time when we try to start a debugging session the code execution is started (the on-board LED blinks), but the program isn't and the address pointer set/held at "main()" as it should - waiting for the user to press "Go".
Instead Eclipse says "No source available for """ and a button saying "View disassembly" which gives absolutely nothing. So to me it seems like the JTAG reset isn't done properly and the processor dislodges from the debugging session.
And yes, we have followed the debugging guide but it didn't change anything at all.
Thanks a lot.
Best Regards
Thomas Jespersen
I have just started testing the ChibiOS RTOS system and have sucessfully got both Ethernet, PWM and other things to work at our STM32-E407 board from Olimex, featuring an STM32F407ZG chip.
My only problem currently is that I can't seem to get the GPIOE port working, the one used on D2-D5 output pins.
I have initialized the output with "palSetPadMode(GPIOE, 2, PAL_MODE_OUTPUT_PUSHPULL);"
But then when I try to toggle the output, or even set or clear the bit, nothing happens. The output stays at a high or floating level.
Any suggestions why this happens?
Next problem is about JTAG Debugging. We got a J-Link adapter which integrates (using GDB) with CooCox CoIDE (which is the IDE we are using).
Sometimes debugging works without any issues but suddenly it NEVER works.
All the time when we try to start a debugging session the code execution is started (the on-board LED blinks), but the program isn't and the address pointer set/held at "main()" as it should - waiting for the user to press "Go".
Instead Eclipse says "No source available for """ and a button saying "View disassembly" which gives absolutely nothing. So to me it seems like the JTAG reset isn't done properly and the processor dislodges from the debugging session.
And yes, we have followed the debugging guide but it didn't change anything at all.
Thanks a lot.
Best Regards
Thomas Jespersen