To reset another device on my hardware, the xmos generates a logic low pulse on a GPIO pin. I wanted to alter the length of the generated pulse (am using delay_ticks()), but with help of an oscilloscope I could see that the pulse length did not change (even if I altered the delay by factors of hundreds or thousands). When the functions were copied to a new project everything worked as expected.
Thought the tools might have some outdated files remaining from previous builds, so I did a clean build, restartet xTIMEcomposer, even rebootet the pc.
I altered some print messages within the software and put a while loop around one section of my software, but none of the changes had any effect after doing a clean build/loading the program onto the xcore.
Incremental builds of the project always say xmake[1]: `bin//[name]' is up to date., even if I change the code.
Any suggestions on what I may try to fix this?
Thank you.
Tools loading old software version for debug?
-
- XCore Addict
- Posts: 191
- Joined: Tue Jul 05, 2016 2:19 pm
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
Just a delay for reset pulse ? The following should work:
Code: Select all
int delay=50; // 50 ms
delay_milliseconds(delay); // Wait [delay] ms
-
- XCore Addict
- Posts: 191
- Joined: Tue Jul 05, 2016 2:19 pm
Well the problem was that the tools loaded an old version of the software every time (so my chagnes never got through) even if i did a clean build (thats super weird).
Creating a new project in a new workspace, adjusting make/xn/etc files, copying all sources and redownloading/copying all modules fixed it.
Creating a new project in a new workspace, adjusting make/xn/etc files, copying all sources and redownloading/copying all modules fixed it.