1260 views|0 replies

3836

Posts

19

Resources
The OP
 

Defining large arrays in C2000 [Copy link]

-------cmd command-----------------------------

.tired : > FLASHB PAGE = 1

-----------Main function start method-------------------

#pragma DATA_SECTION(tiredata1,".tired");

const int tiredata1[1000]={5255,55525};


1. Open up a memory area in cmd

MEMORY

{

PAGE 1: spacename : origin = 0x...., length 0x..

}

SECTIONS

{

.my_sect : {} >spacename PAGE 1

}

2. Define array variables in .c

#pragma DATA_SECTION(a, "my_sect ")

int a[]=

{

........

};

This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list