Page 1 of 2

chibios 2.5.2 stm32 serial_lld.h

Posted: Mon Jan 14, 2013 2:13 pm
by tdwebste
I am testing the demos/armcm4stm32f407-discovery with the latest chibios 2.5.2
no iar

Unfortunately the serial_lld.h file can not be found.

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Mon Jan 14, 2013 2:28 pm
by Giovanni
Hi,

The device drivers paths changed and some projects are not updated yet in the unstable release, make it use .\os\hal\platforms\STM32\USARTv1\serial_lld.c/.h.

Paths will be fixed before next release, stable release 2.4.2 is OK in this regard.

Giovanni

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Mon Jan 14, 2013 2:47 pm
by tdwebste
I think I have solved my own problem by updating the iar file ch.ewp

hmm, perhaps, not
The first problem is fixed, but
I have seem to bet stuck in loops waiting for chip to stabalize.

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Mon Jan 14, 2013 3:26 pm
by Giovanni
Hi,

Make sure the chip is correctly flashed, it could be related to the ST-Link V2 settings (could you be running it in a simulator? of course it would not work), anyway, I will give it a try in the evening.

Giovanni

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Mon Jan 14, 2013 3:45 pm
by tdwebste
Thank you,
I am using 2.5.2 because I want to use the stm32f3.

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Mon Jan 14, 2013 8:58 pm
by Giovanni
Hi,

I fixed the project file on the repository and the demo works correctly. Probably you are running the demo in the simulator which does not simulates peripherals this causes the endless loop.
Make sure to select "STLink v2" as debugger and to configure it correctly.

Giovanni

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Tue Jan 15, 2013 4:30 am
by tdwebste
Again, thx, but that does not seem to solve the problem.
with chibois 2.5.1
Also with chibois 2.5.1 I can get it running away and the cpu gets hot, I not sure what is happening,
running multiple copies.

I can repeat this, how should I break a get gdb connected? Or can I do this throw iar? I am currently using windows iar

But reloading any chibois 2.4.2 demo or my own code works fine
running iar . 6.40.5.427

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Tue Jan 15, 2013 4:36 am
by tdwebste
OK this is now weird

I something in my code or how my code uses chibios causes it to not allows other code to run.
After in debug mode I do a chip erase I can load other chibios code,

Re: chibios 2.5.2 stm32 serial_lld.h

Posted: Tue Jan 15, 2013 4:46 am
by tdwebste
sorry, I don't think I know how to properly reset with stlink v2

Re: chibios 2.5.2 stm32 serial_lld.h ( resolved) not softwar

Posted: Thu Jan 24, 2013 5:15 am
by tdwebste
update this was not a software problem

Was solved by leaving the stm32f4discouvery board unplugged over the weekend. Worked flawlessly afterwards afterwards