The STM32-E407 topic

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The STM32-E407 topic

Post by Giovanni »

Thanks, fixed.

Giovanni
tmanev
Posts: 22
Joined: Thu Oct 04, 2012 8:57 am

Re: The STM32-E407 topic

Post by tmanev »

Giovanni wrote:Full demo finished :)

It includes:
- lwIP with web server on Ethernet port.
- Shell on USB-CDC.
- FatFs over SDIO (with card detection).

Everything happily running together in about 80KB, including 16KB of test suite code, still more than 900KB free.

Giovanni


Hi, Giovianni,
I am new here, but I would really like to see that DEMO. I have the board and would like to test it with your demo.
Where Can I find it ?

Todor
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The STM32-E407 topic

Post by Giovanni »

Hi,

The demo is included in ChibiOS 2.5.0 (the unstable version), here: https://sourceforge.net/projects/chibio ... n%202.5.0/

the demo is in:

./demos/ARMCM4-STM32F407-LWIP-FATFS-USB

If you download the toolchain ChibiStudio it is already imported in the default workspace. ChibiStudio is available here: https://sourceforge.net/projects/chibio ... ibiStudio/ It includes everything required.

Giovanni
tmanev
Posts: 22
Joined: Thu Oct 04, 2012 8:57 am

Re: The STM32-E407 topic

Post by tmanev »

Thank you! Great!
tmanev
Posts: 22
Joined: Thu Oct 04, 2012 8:57 am

Re: The STM32-E407 topic

Post by tmanev »

I am having problems running the demo using the J-Link EDU and ChibiStudio the GDB says:
WARNING: Failed to read memory @ address 0xCDCDCDCC

And the program is stuck here!
test_assert(12, !regfind(tp), "thread still in registry");

Any idea?

Todor
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The STM32-E407 topic

Post by Giovanni »

It is related to the jlink I think, are you sure the device is flashed correctly? that address is not even a valid address.

Are you using OpenOCD or another GDB server?

Giovanni
tmanev
Posts: 22
Joined: Thu Oct 04, 2012 8:57 am

Re: The STM32-E407 topic

Post by tmanev »

I tried J-Link GDB. I do not know how to setup OpenOCD.

Todor
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The STM32-E407 topic

Post by Giovanni »

When using GDB servers, the tricky part is to create a correct debug configuration. You may use the existing configurations as examples but it is possible that your GDB server requires some specific settings.

Does the vendor have a FAQ or a forum to ask this info?

Giovanni
tmanev
Posts: 22
Joined: Thu Oct 04, 2012 8:57 am

Re: The STM32-E407 topic

Post by tmanev »

How should I setup the OpenOCD ?

Todor
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The STM32-E407 topic

Post by Giovanni »

I never did it for J-Link. I think it is documented in "tools/openocd/OpenOCD User’s Guide.pdf". Probably you just need to select the right probe in the launcher, see the launchers for ST-Link and USB-JTAG-OCD already configured in ChibiStudio.

Giovanni
Post Reply