[FX3] Memory definition issue for CODE AREA and RTOS HEAP AREA

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
HuYa_4249091
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi, I've studied the FX3 Programmers Manual for memory related concept. I'm confused with 2 items:

code area.JPG

I don't understand it clearly. We use the external ROM to store FW code(.img file) now.
Q1: In that case, we don't need to use the Code Area at all?

 

RTOS heap area.jpg

I knew the  memory of each thread is created by CyU3PMemAlloc( ) in example code.
Q2: Does it mean that the all the memory created by thread(such as local variable) belong to HEAP memory, not STACK memory?

Any help will be highly appreciated!

0 Likes
1 Solution

Hello,

1. The FX3 ROM Bootloader will download the FW image into code area directly. While doing so, the complete FW image is copied into the CODE AREA and not the fragments. Typically, the size of FW image is around 140KB. The default memory map of FX3 allows upto 180KB of code area. However, if a greater size is required, then the default memory map of FX3 should be modified.

2. Yes, your understanding is correct.

Best Regards,

AliAsgar

View solution in original post

5 Replies