We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I have the following: u8_t far * ptr; u8_t buf[10]; and on positions 1,2,3 (buf) I have the FAR address (3 bytes) that I want to use: *ptr = 1; // for instance; How can I give ptr the value of the 3 bytes on the array? Something like : ptr = MAKE_FAR_PTR(&buf[1]); This is for Dallas contiguous mode. thanks, joao
I have changed the memory map on dscope although I do not know why it does not starts with the correct configuration! The debugger gets the memory map from the data and code segments stored in the absolute object module (that it loads). IF you access anything outside that space, the debugger assumes it to be an error. The FVAR macro accesses a memory address that is not occupied by data or code in your program. If this is how you want to access memory, all you need to do is to tell the debugger since that information is not included in the OMF file. Jon