Search found 11833 matches

by Giovanni
Sun Jun 16, 2019 5:04 pm
Forum: Bug Reports
Topic: linking troubles with STM32F platforms
Replies: 12
Views: 208

Re: linking troubles with STM32F platforms

Perhaps I found a solution to the problem or, at least, a problem. Could you try using this rule in rules_code.ld? .text : ALIGN_WITH_INPUT { __text_base = .; *(.text) *(.text.*) *(.glue_7t) *(.glue_7) *(.gcc*) __text_end = .; } > TEXT_FLASH AT > TEXT_FLASH_LMA It is a new keyword not present in the...
by Giovanni
Sun Jun 16, 2019 2:43 pm
Forum: Bug Reports
Topic: linking troubles with STM32F platforms
Replies: 12
Views: 208

Re: linking troubles with STM32F platforms

I found that -falign-functions=16 in Makefile is probably the trigger, it enforces alignment in VMA but not in LMA, adjusting alignment in .ld files just hides the problem.

Could you try to remove that option in Makefile and see if it fixes the problem for you?

Giovanni
by Giovanni
Sun Jun 16, 2019 1:02 pm
Forum: Small Change Requests
Topic: chprintf enhancement Topic is solved
Replies: 5
Views: 487

Re: chprintf enhancement Topic is solved

Fix committed thanks.

Giovanni
by Giovanni
Fri Jun 14, 2019 9:50 am
Forum: ChibiOS/RT
Topic: RT 19.1: Exception Handling for Fast Interrupt
Replies: 1
Views: 58

Re: RT 19.1: Exception Handling for Fast Interrupt

Hi, RT CM port default settings are already OK for what you need to do: Priorities 0 and 1 are reserved as "fast interrupts", priority 2 is reserved for the OS. The OS code cannot be invoked from fast handlers, you can use PENDSV (or some other interrupt) to delegate an action to a lower p...
by Giovanni
Thu Jun 13, 2019 4:38 pm
Forum: Bug Reports
Topic: Virtual timer overflow Topic is solved
Replies: 12
Views: 367

Re: Virtual timer overflow Topic is solved

Thanks, I will proceed with back-porting then.

Giovanni
by Giovanni
Tue Jun 11, 2019 6:14 pm
Forum: General Support
Topic: How to use custom GCC?
Replies: 5
Views: 108

Re: How to use custom GCC?

ChibiOS code should not use much of libraries if any.

Giovanni
by Giovanni
Tue Jun 11, 2019 6:12 pm
Forum: Bug Reports
Topic: linking troubles with STM32F platforms
Replies: 12
Views: 208

Re: linking troubles with STM32F platforms

This is what that alignment 4->16 should have fixed.

I will play with constructors and destructors some more.

Giovanni
by Giovanni
Tue Jun 11, 2019 1:38 pm
Forum: Bug Reports
Topic: linking troubles with STM32F platforms
Replies: 12
Views: 208

Re: linking troubles with STM32F platforms

Could you try excluding subsystems from your project and see which one triggers it?

Giovanni
by Giovanni
Tue Jun 11, 2019 10:00 am
Forum: Bug Reports
Topic: linking troubles with STM32F platforms
Replies: 12
Views: 208

Re: linking troubles with STM32F platforms

Is there anything that is enforcing a 64bytes alignment? perhaps compiler-generated code? 0x20C->0x240 still looks as an alignment problem.

Giovanni
by Giovanni
Sun Jun 09, 2019 6:38 am
Forum: Bug Reports
Topic: linking troubles with STM32F platforms
Replies: 12
Views: 208

Re: linking troubles with STM32F platforms

Hi, Could you check if changing rules_code.ld fixes the problem? .text : ALIGN(16) <---- THIS { __text_base = .; *(.text) *(.text.*) *(.glue_7t) *(.glue_7) *(.gcc*) __text_end = .; } > TEXT_FLASH AT > TEXT_FLASH_LMA It could be an alignment issue. Text was aligning to 16 in VMA and to 4 in LMA. The ...

Go to advanced search