Page 1 of 1

Problem with STM32F051C8T6 IAR compiler

Posted: Sat Feb 22, 2014 3:02 pm
by Alex
Hard Fault enter SysTick Handler. On enter SysTick SP = 0;

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Sat Feb 22, 2014 3:11 pm
by Giovanni
Hi,

You don't give much info about the problem...

Anyway M0 on IAR is not officially supported because the free compiler is limited to 8KB, not enough for the test suite.

Giovanni

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Sat Feb 22, 2014 7:14 pm
by Giovanni
I see in your project also the files for v7m, are those disabled?

The best way ahead would be if you could provide a project compilable in 8KB, I could at least test that (you can cut unused subsystems in chconf.h and halconf.h).

Giovanni

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Sat Feb 22, 2014 7:33 pm
by Alex
Hi, Giovanni.
Thank you very much, I'll try that way and send results toworrow. Sorry, my English so so bad.

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Sat Feb 22, 2014 7:56 pm
by Alex
Good night, Giovanni!

Cutting project
Size < 5 KByte
Maybe you will have some problems with my project - sorry - I am a beginner - "teapot"

Best regards from Ural mountains. :-)
Alex.

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Wed Mar 12, 2014 9:05 pm
by Giovanni
Forgot this one.... I placed a link at the center of my desktop, in the weekend I will give it a try.

Giovanni

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Wed Mar 12, 2014 9:35 pm
by alexblack
Hi.
I think the problem is in that you are using standard linker script. It is not compatible with ChibiOS because there is no definition for IRQ stack!
Use appropriate file from ChibiOS IAR demo.

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Thu Mar 13, 2014 7:23 pm
by Alex
Hi, AlexBlack
Your hint is very useful. Problem solved. Thank you very much.
Best regards.

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Fri Mar 14, 2014 9:59 pm
by alexblack
Hi.
Alex wrote:Best regards from Ural mountains. :-)
Alex.

О сразу не заметил - земляк! Я родился в Троицке Челябинской области :)
Всегда рад помочь.

Re: Problem with STM32F051C8T6 IAR compiler

Posted: Sat Mar 15, 2014 8:17 am
by Alex
Спасибо, дружище!