New answers tagged

0

(Acknowledging this is an old question.) The TI article "Troubleshooting I2C Bus Protocol", suggests several common reasons for no ACK: 1. Timing 2. Missing / Unexpected SCL pulses 3. Incomplete 8 bit block 4. Missing Bytes 5. False slave address 6. Unsuccessful address change


2

It looks to me like you are trying to find the right answer to the wrong question, typical of an XY problem. In the example you provide in your own answer, you call the function pointer right after having set its value. In this case, there is no use to the function pointer, as you could directly call either read_chars() or write_chars(). Obviously, this is ...


-1

I found the answer. I have to use this configuration of function pointer. #include<stdio.h> #include<stdlib.h> #include<string.h> #include<stdint.h> uint8_t (*fun_ptr)(); uint8_t read_chars(uint8_t address){ uint8_t i; uint8_t *array_address; i = address; printf("address of array is 0x%.2x\n",i); return ...


2

I assume, that the fun_ptr points to the different service functions to do some kind of animation other other long running tasks on your display, thus you want to repeatedly call them in a structured way. What you are currently doing will not really work. When you call a function, you need to provide its arguments. That's the same for a function pointer. You ...


7

There is an open source project that will do what you want. http://com0com.sourceforge.net/ The com0com will create virtual com ports for the programs to connect to. The hub4com will allow you to route data between the physical port and multiple virtual com ports. http://com0com.sourceforge.net/hub4com/ReadMe.txt


2

You can't. Putty has no way of disconnecting without closing the program (as far as I can tell). You could try "Tera Term" which apparently (though I don't use Windows so have no experience with it) has a disconnect option (which you would have to use before uploading). Alternatively, as @Juraj has mentioned, you could use a separate USB to TTL ...


Top 50 recent answers are included