Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNow Baremetal applications may only be debugged in DS-5, and not started independent on power + from flash with regular Altera-s Preloader without semihosting support.
If for task solution is enough only original Altera-s SoC and run your program in debugger, may use current state, else need demand to Altera for revision and upgrade Preloader, about that I scream long time ! :) For small transparent private application (no Internet, USB, CAN) without threads, semaphores and other "piles" best way is -- in one thread with one stack cycling with polling of all inputs, processing new data with not great portions and deliver results to outputs, then again read inputs and call most-priority handler... If need be urgent reactions to fast events in 10-20 tacts, may be used interrupts -- as exception, usually this urgency is not need. Try start with one powerful processor core -- it may be sufficient for your tasks, and 2nd may only cause troubles in interaction and divide all works between all cores. Although if your tasks good divides on independent parts -- may run its on independent processors. RTOSes have big initial costs for application developers, demand many unnecessary code (> 1/2) for supplying interaction and unnatural parallelizm, big times of task switching, volume of memory and unpredictable time of reaction. And many-many all-ready obscure sources and followers ! :) With weak possibility of debugging -- by order greather even with powerful debugger.