Jump to content

Search the Community

Showing results for tags 'function'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • PIC Embedded Programming
    • BoostC and Chameleon compilers programming
    • BoostC porting source code
    • BoostC++ compiler programming
    • BoostBasic compiler programming
    • Assembler programming PIC
    • Novo RTOS Programming
    • Hardware PIC
    • Enhancement Requests
    • Bug Reports

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. i try to include a 2 dimensional arrays in function calls to have functions doing some modifications to arrays. a very simple example to initialize the array is: unsigned char MATRIX[15][16]; void Init (unsigned char *myMATRIX) { unsigned char x,y; for (x=0;x<15;x++) { for (y=0;y<16;y++) { myMATRIX[x][y] = x+y; } } } void main (void) { Init(MATRIX); } i would expect that a memory area of 240 bytes would be reserved for the array variable MATRIX, and when calling the Init function, the start address of this memory range would be given to the Init function. then, the whole MATRIX would be initialized. fact is (same behaviour in simulator and on targed) that bytes from address 0x100 are written up to address 0x10f. then, instead of proceeding with address 0x110, it again writes to addresses 0x100 to 0x10f. addresses above 0x10f are never written. what am i doing wrong? i think my syntax isn't too bad ;-( thanx for your help!
  2. Hello to all. My problem happens when compiling and linking several files in a project. All source files compile perfectly - three of them are .lib files, compiled separately. When linking, a REDEFINITION error occurs, in file i2c_bitbang.c "C:\Program Files\SourceBoost\boostlink_pic.exe" -idx 1 /ld "C:\Program Files\SourceBoost\lib" libc.pic18.lib Debug\vars.obj Debug\main.obj Debug\io_lib.obj Debug\task_CommDisplay.obj Debug\task_CommPc.obj Debug\task_CommVoltmeters.obj Debug\task_Watchdog.obj Debug\misc.obj Debug\utils.obj Debug\spi_pic18_lib.obj Debug\adc_lib.obj Debug\sd_card_spi_lib.obj eeprom.pic18.lib ..\libs\i2c_bitbang.lib ..\libs\rtc_7941x.lib ..\libs\serial_uart2.lib /t PIC18F67K22 /d "Debug" /p BMS1_CpuBoard1 Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c function redefinition: i2c_delay(void) in Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c function redefinition: i2c_init(void) in Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c function redefinition: i2c_start(void) in Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c function redefinition: i2c_stop(void) in Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c function redefinition: i2c_tx(unsigned char) in Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c function redefinition: i2c_rx(bit) in Z:\PROJ_LOCAL\Software\libs\I2C_BitBang\i2c_bitbang.c BoostLink Optimizing Linker Version 7.05 http://www.sourceboost.com Copyright© 2004-2011 Pavel Baranov Copyright© 2004-2011 David Hobday failure error: failed Done Why does this happen??? For your information: some i2c functions are called from main.c and from rtc7941.c - the later was previously compiled into a library. Please refer to the inclosed files, i2c_redef_error.txt and the i2c files, i2c_bitbang.c and i2c_bitbang.h. Thanks in advance for your future help. P. Robalo i2c_redef_error.txt i2c_bitbang.h i2c_bitbang.c
×
×
  • Create New...