Results 1 to 1 of 1

Thread: Parameters of SYG_FLASH_DRIVER macro

  1. #1
    Join Date
    Dec 2013
    Posts
    12
    Rep Power
    1

    Default Parameters of SYG_FLASH_DRIVER macro

    Could you 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, eCos dies. Can you see the error(s) ?
    Last edited by Mikhail Kononov; December 19th, 2013 at 03:46 AM.

Similar Threads

  1. error with using a macro
    By martinwoc in forum VHDL
    Replies: 5
    Last Post: February 21st, 2013, 04:41 AM
  2. Delay chain as Macro
    By av.rakeshkumar in forum General Altera Discussion
    Replies: 0
    Last Post: April 17th, 2012, 02:42 AM
  3. how to export macro to system.h?
    By strongleg in forum General Discussion Forum
    Replies: 11
    Last Post: February 15th, 2012, 01:16 PM
  4. Modelsim and macro
    By nawer81 in forum Quartus II and EDA Tools Discussion
    Replies: 1
    Last Post: April 27th, 2011, 06:13 AM
  5. Using MACRO
    By walter in forum General Software Forum
    Replies: 2
    Last Post: March 31st, 2005, 09:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •