Jump to content
43oh

maximlee

Members
  • Content Count

    3
  • Joined

  • Last visited

About maximlee

  • Rank
    Noob Class

Recent Profile Visitors

515 profile views
  1. I am trying (for quite long time) to write to EEPROM 64 bytes of data in 4 chunks (as EEPROM's page size is 16 bytes). Unfortunately, the MCU sends few extra bytes every time it transmits. For example, if I send 16 bytes, it transmits 22, with 6 last bytes being of unknown origin to me. For example, I send 15 text bytes within for(...) cycle xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx but see on the scope xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx BF F6 FD D7 3A C0 I tried another approach: send 15 bytes + 00. My program stops at 00, then I try to replace 00 with wh
  2. Thank you. I am sorry for my late answer - I tried to change the code and compile it, but due to other errors couldn't do that. Anyway, I think that my problem was also related to code writing rather then enum mistakes: I was able today to compile the code. My lcd_send_string(* char) function was declared in a functions.h file as following: char *enum2str(enum IOchannel); #ifdef LCD void lcd_init(void); void lcd_send_string(char *s); #endif while LCD was defined in another definitions.h file: #define LCD LCD4 I had to comment #ifdef and #endif, and
  3. Hi. Got stuck. I have a project with a line in variables.h: enum IOchannel {V1 = 11, I1 = 101, V2 = 12, I2 = 102}; Then I have an input.c, where I initialize all variables declared in variables.h(as extern), however, I don't use it for my enum, because I would get an error that my variables are already defined (due to include). Finally, I have another file which sends on LCD my enum variables, i.e. if it was V1 received, then you'll see "V1 = xxx" on the LCD. lcd_send_string(enum2str(haltIn)); where the function is void lcd_send_string(char *s); and so there's a fu
×
×
  • Create New...