Oct 28, 2019
08:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 28, 2019
08:05 AM
Hi,
How to create new section in lsl script file ?
I tried to do it, following tasking user manual ( chapter 16 LSL )
But it's not working,
Code is still defined in flash.
What is defined wrongly ?
I work on Tc222L
How to create new section in lsl script file ?
I tried to do it, following tasking user manual ( chapter 16 LSL )
.lsl script:
section_layout :vtc:linear
{
group pspr0 ( run_addr = mem:mpe:pspr0, copy )
{
select "*.pspr_function ";
}
}
file.c:
__ inline void pspr_function(void);
But it's not working,
Code is still defined in flash.
What is defined wrongly ?
I work on Tc222L
Labels
- Tags:
- IFX
1 Reply
Oct 29, 2019
03:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 29, 2019
03:42 AM
Hi Lukas,
Since pspr_function was prototyped with the inline attribute, it will most likely have been inlined into the body of the function that calls it. Hence there is a good chance that your mapfile will not contain a section called .text.
Can you maybe show us a listing of your mapfile to allow us a peek of how it was located. Also note that --map-file-format supports a flag called rules that will add a listing to your mapfile that shows which rules worked and which ones didn't (for whatever reason).
Best regards,
Henk-Piet Glas
Principal Technical Specialist
Embedded Software