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, I have a small project which carries out memory testing when loaded into my target hardware (C165 Based). At the moment, I have to hard-code the address at which the memory test starts testing and the range of memory to be tested. This involves re-building each time I wish to execute the test on a different area of memory, or different device. A colleague is creating a custom 'monitor' which will 'locate' the test code in a designated area and run it, however we would like to know how we could pass the above parameters (start address, range) to the test code, thus avoiding rebuilding the code each time. I think what I'm asking is how I pass parameters to 'main' when the code is being loaded into the target. If this is a ludicrous suggestion, I apologise! Many thanks....James
Thanks for your help. We are overcoming our difficulty by using the 'monitor' to place the arguments we wished to pass in, into registers 8-11 just prior to executing the code. Thanks again....James