Recent

Author Topic: Cross compiling installation for AVR  (Read 8350 times)

d.ioannidis

  • Full Member
  • ***
  • Posts: 229
    • Nephelae
Re: Cross compiling installation for AVR
« Reply #15 on: July 23, 2020, 09:13:44 pm »
Hi,


< snip >

All that makes me to believe this is a bug.


I didn't notice such behavior. But if you can reproduce it, you should report it to the bug tracker.

regards,

process_1

  • Guest
Re: Cross compiling installation for AVR
« Reply #16 on: July 29, 2020, 03:54:52 am »
I didn't notice such behavior. But if you can reproduce it, you should report it to the bug tracker.

regards,

Well, that is how it behaves with the attached blinky example, where actually existed some parameters in "Custom options".

With absolutely new project, the "Custom options" memo is emply. But here "Generate info for the debugger" need to be disabled, otherwise this error is shown:

Code: [Select]
Compile Project, OS: embedded, CPU: avr, Target: Test: Exit code 1, Errors: 1
Fatal: Cannot find lnfodwrf used by Test.
« Last Edit: July 29, 2020, 04:15:24 am by process_1 »

ccrause

  • Hero Member
  • *****
  • Posts: 1007
Re: Cross compiling installation for AVR
« Reply #17 on: July 29, 2020, 09:12:01 am »
...
With absolutely new project, the "Custom options" memo is emply. But here "Generate info for the debugger" need to be disabled, otherwise this error is shown:

Code: [Select]
Compile Project, OS: embedded, CPU: avr, Target: Test: Exit code 1, Errors: 1
Fatal: Cannot find lnfodwrf used by Test.
Yes I agree, please log a bug report for this.  The lnfodwrf unit is not available for the AVR target.

ccrause

  • Hero Member
  • *****
  • Posts: 1007
Re: Cross compiling installation for AVR
« Reply #18 on: July 29, 2020, 11:28:11 am »
<snip>
Anyway, the whole process definitely require to be suggested to be fixed "officially" for some next realease of FPC.
This issue has been around for quite a while (e.g. this discussion) but no fix has been included in trunk yet. It also affects other targets such as ARM and xtensa.
For reference note that an issue requesting inclusion of subarch in the unit folder name has been created in 2016 already: https://bugs.freepascal.org/view.php?id=30294

process_1

  • Guest
Re: Cross compiling installation for AVR
« Reply #19 on: July 29, 2020, 11:37:19 am »
Huh, created 2016 and last change in 2018 for such trivial issue!

Yes I agree, please log a bug report for this.  The lnfodwrf unit is not available for the AVR target.

Be my guest, I have no account in bugtrucker.


PascalDragon

  • Hero Member
  • *****
  • Posts: 5906
  • Compiler Developer
Re: Cross compiling installation for AVR
« Reply #20 on: July 29, 2020, 01:40:07 pm »
Huh, created 2016 and last change in 2018 for such trivial issue!

It might seem easy to you, but this is not necessarily the case. See the mailing list discussion that is referenced from the issue report.

process_1

  • Guest
Re: Cross compiling installation for AVR
« Reply #21 on: July 29, 2020, 04:11:39 pm »
It might seem easy to you, but this is not necessarily the case. See the mailing list discussion that is referenced from the issue report.

I really have no luck when I opened the mailing list link:

Code: [Select]
Secure Connection Failed

An error occurred during a connection to www.mail-archive.com. SSL received a record with an incorrect Message Authentication Code.

Error code: SSL_ERROR_BAD_MAC_READ

What happening here?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5906
  • Compiler Developer
Re: Cross compiling installation for AVR
« Reply #22 on: July 29, 2020, 04:23:32 pm »
Don't know, mail-archive is not controlled by us. Here is the same thread on our own archive (it's continued in August here).

process_1

  • Guest
Re: Cross compiling installation for AVR
« Reply #23 on: July 29, 2020, 04:25:23 pm »
Thanks, that can be opened fine.

process_1

  • Guest
Re: Cross compiling installation for AVR
« Reply #24 on: July 29, 2020, 04:38:08 pm »
https://lists.freepascal.org/pipermail/fpc-devel/2018-July/039489.html

Well, according to this, fpmkunit is a problem. What is so dificult to fix it to support subarch?

Indeed, simply adding subarch and changing in few places in make scripts and FPC/Lazarus sources sounds fairly easy to me. But, I can't judge, since I have not looking inside the sources, nor I have working solution for that.
« Last Edit: July 29, 2020, 04:41:03 pm by process_1 »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5906
  • Compiler Developer
Re: Cross compiling installation for AVR
« Reply #25 on: July 29, 2020, 11:00:03 pm »
Did you also read the followup from August I linked to?

process_1

  • Guest
Re: Cross compiling installation for AVR
« Reply #26 on: July 30, 2020, 04:45:00 pm »
Yes, I did. There is several ways to do this, if I understand correctly.

But simply just pick one, whatever, and fix this. Waiting several years for this issue is just too much.

pascalbythree

  • Sr. Member
  • ****
  • Posts: 271
Re: Cross compiling installation for AVR
« Reply #27 on: September 11, 2022, 04:15:13 pm »
While installing FPC for AVR i got this error, plenty of times

Code: Pascal  [Select][+][-]
  1. Fatal: Can't find unit system used by delay

Does anybody have system.pp for AVR ? To place in the directory and help me compile it again.

Greetz W

d.ioannidis

  • Full Member
  • ***
  • Posts: 229
    • Nephelae
Re: Cross compiling installation for AVR
« Reply #28 on: September 11, 2022, 04:28:05 pm »
While installing FPC for AVR i got this error, plenty of times

Code: Pascal  [Select][+][-]
  1. Fatal: Can't find unit system used by delay

Can you please post more info so we can understand the problem ?

Which OS ?
Which compiler version used for bootstrap ?
Which compiler sources version used ?
Commands used for building the cross compiler ?

regards,

Mathias

  • Jr. Member
  • **
  • Posts: 98
Re: Cross compiling installation for AVR
« Reply #29 on: September 20, 2022, 02:08:31 pm »
I always use fpcupdeluxe, which usually allows you to build a cross-compiler for most embedded systems straight away. AVR should work right away if you use the stable from FPC and Lazarus.

https://wiki.freepascal.org/AVR_Embedded_Tutorial_-_Entry_Lazarus_and_Arduino

 

TinyPortal © 2005-2018