public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: CKM367 <intel.regressions@gmail.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Parameters of SYG_FLASH_DRIVER macro
Date: Thu, 19 Dec 2013 11:28:00 -0000	[thread overview]
Message-ID: <1387452525022-255235.post@n7.nabble.com> (raw)

Could anybody specify the parameters of /SYG_FLASH_DRIVER/ macro?

I have got a 128MB flashlike device with 130 blocks of 0x10000 bytes size
and 4 ones of 0x4000 bytes. So, I made such an array:

static const cyg_flash_block_info_t p8p_block_info[2] = {
{(size_t)0x4000, (cyg_uint32)4 },
{(size_t)0x10000, (cyg_uint32)130 }
};

and then wrote the macro:

CYG_FLASH_DRIVER(
p8p_drv_handle,
&p8p_func_handle,
0, /* flags */
CYGMEM_REGION_flash, /* flash first address */
CYGMEM_REGION_flash + P8P_REGION_SIZE - 1, /* flash last address */
2, /* number of items in p8p_block_info*/
p8p_block_info,
&p8p_priv /* pointer to priv handle */
);


As a result, I got the message "Sorry, FLASH config exceeds available space
in FIS directory" from load_flash_config function because fisdir_size ==
0x1000. That is the value from p8p_block_info array. I suspect I use
CYG_FLASH_DRIVER macro with wrong parameters. Can you see the error(s) ?



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Parameters-of-SYG-FLASH-DRIVER-macro-tp255235.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

                 reply	other threads:[~2013-12-19 11:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1387452525022-255235.post@n7.nabble.com \
    --to=intel.regressions@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).