Problem with STM32F051C8T6 IAR compiler

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Alex
Posts: 39
Joined: Sat Feb 22, 2014 2:40 pm
Been thanked: 3 times

Problem with STM32F051C8T6 IAR compiler

Post by Alex »

Hard Fault enter SysTick Handler. On enter SysTick SP = 0;
Attachments
Debugger screenshot
Debugger screenshot
F051.jpg (1.04 MiB) Viewed 6247 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Problem with STM32F051C8T6 IAR compiler

Post 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
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Problem with STM32F051C8T6 IAR compiler

Post 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
Alex
Posts: 39
Joined: Sat Feb 22, 2014 2:40 pm
Been thanked: 3 times

Re: Problem with STM32F051C8T6 IAR compiler

Post by Alex »

Hi, Giovanni.
Thank you very much, I'll try that way and send results toworrow. Sorry, my English so so bad.
Alex
Posts: 39
Joined: Sat Feb 22, 2014 2:40 pm
Been thanked: 3 times

Re: Problem with STM32F051C8T6 IAR compiler

Post 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.
Attachments
chChannel.rar
(57.42 KiB) Downloaded 457 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Problem with STM32F051C8T6 IAR compiler

Post 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
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: Problem with STM32F051C8T6 IAR compiler

Post 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.
Alex
Posts: 39
Joined: Sat Feb 22, 2014 2:40 pm
Been thanked: 3 times

Re: Problem with STM32F051C8T6 IAR compiler

Post by Alex »

Hi, AlexBlack
Your hint is very useful. Problem solved. Thank you very much.
Best regards.
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: Problem with STM32F051C8T6 IAR compiler

Post by alexblack »

Hi.
Alex wrote:Best regards from Ural mountains. :-)
Alex.

О сразу не заметил - земляк! Я родился в Троицке Челябинской области :)
Всегда рад помочь.
Alex
Posts: 39
Joined: Sat Feb 22, 2014 2:40 pm
Been thanked: 3 times

Re: Problem with STM32F051C8T6 IAR compiler

Post by Alex »

Спасибо, дружище!
Post Reply