sprintf() needs some settings to work:
In "Project -> Build settings -> Linker" you'll have to set "Use newlib nano" and "Use newlib nano float formatting"
In .cydwr-view (where you assign the pins) under "System" tab set the heap size to 0x100, better 0x200.
Hi Bob,thanks for the input.
Made the linker chnages.
cant seem to edit heap size....its fixed/non editable.
meanwhile, no outputs - not even dashes as i ws getting earlier
1 of 1 people found this helpful
You can't edit the heap size while debugging.
hi mr vedant.prusty.could u runing adxl345 with spi?because i cant volved this problem!!!
can u give me your project for learning how i can to do?
It would be very nice to stop flooding the forum with your requests which are all the same.
Obviously no one here is able (willing) to provide you with a complete project, so you need to learn from the examples or videos that you can access from creator. When you have got a complete project that builds without errors/warnings you may post a workspace bundle together with some description what runs and what does not run. Based on that there will be someone to help you.