Recent

Author Topic: [FPC, CROSS ARM] for LPC1114  (Read 275 times)

devport

  • New member
  • *
  • Posts: 9
[FPC, CROSS ARM] for LPC1114
« on: October 29, 2019, 09:43:00 pm »
Hey i compile simple code for my LPC1114.
I have questions:

1. i can use ObjFPC mode ?
2. If use SetLenght my program stoped why?
3. I muset settings heap size? 

Please help.

Sorry, my english is not perfet :) I from Poland.
Thx


Laksen

  • Hero Member
  • *****
  • Posts: 621
    • J-Software
Re: [FPC, CROSS ARM] for LPC1114
« Reply #1 on: October 29, 2019, 10:31:14 pm »
1. Yes, but as you have found out you need to ensure that you are aware of your memory usage
2. Because you need to install a memory manager explicitly. You can do that by adding "heapmgr" to your uses list as one of the first units. Then you need to set the heap size as in your third question
3. Setting the heap size only does something if you use the heap area. The heapmgr unit does that, for example. So if you set heap size (command line option -Ch) and use heapmgr you should see you should be able to allocate dynamic memory

devport

  • New member
  • *
  • Posts: 9
Re: [FPC, CROSS ARM] for LPC1114
« Reply #2 on: October 30, 2019, 08:42:07 am »
Thank you

I like Pascal Dialect and last 6 years programmed in C...
Does it make sense to write in this language? on embedded devices?
More as a hobby codding :P

Laksen

  • Hero Member
  • *****
  • Posts: 621
    • J-Software
Re: [FPC, CROSS ARM] for LPC1114
« Reply #3 on: October 30, 2019, 09:20:21 am »
Definitely :)