This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone!
As mentioned in subject, i am new to Hercules mcus and now in my project i am working with TMS570LC43x Hercules development kit(The big green one). I thought that best for getting familiar with this processor will be running through video tutorials about hercules from youtube (with Anthony Vaughan). Unfortunately it seems, that those videos are out of date and are not valid anymore?
For example vid: "Hercules Tutorial: 12bit ADC". In this tutorial Anthony includes library "stdlib.h" and afterwards he can use function itoa(); but for me even if i include stdlib.h this function is unknown for CCS. So i am not able to follow this tutorial video and get the same results. Why is that? Am I missing something?
And when i see tutorials availible from HalCoGen, there is similar example converting analog value and sending over uart (sci), but they use there is custom function (not from any lib) that is converting int to string ... I know there are easy ways how to convert int to char on my own, but i am just wondering, if it is really necessary when todays mcus offer enough performance to use standard libraries?
And last thing i want to mention here is that i have found strange (probably bug) in your example code from HalCoGen. In TMS570Lc43x examples there is file example_sci_uart_9600.c. In this example there is function "void wait(uint32 time)" that i think isnt working properly. As it should work as standard delay function, i guess there should be something like (while(time--);) or something.
I have to say, that i am kinda disappointed as a newbie to this field i expected flawless and cleat examples so i could nicely get familiar with new platform.
Finally i want to ask you, about official libraries as api for hecules. Are those libs that HalCoGen "put" into project folder after generationg code proper and ok to use? Or are there any other libraries for TMS570Lc43x mcus?
Thank you very much for your time
regards
Jan Slavotínek
4375.Adc9_sci.7zSorry i dont understand the liks you have provided. It doesnt lead anywhere (if i direct click on it, it leads to e2e.ti.com and i only see <Unfortunately, the page you've requested no longer exists. Please use the search form above to locate the information you're interested in.>).
Thanks for your offer about correcting code, the thing is that its not really necesarry. Its only example project, nothing important. Only issue there is this itoa() function which is causing error. It is not recognized by CCS even i have includet stdio.h. Ok i will upload my project.
Hello, again!
I tried to fix your code, I do not even count on its Launchpad version so that I could try it, if you have other difficulties do not hesitate to ask!
Thankls for your effort! I se you have used sprintf instead of itoa. Is there any reason, why itoa wasnt recognized my ccs?
And could you please again give link to guides and tutorials for hercules? Those you have entered yesterday doesnt lead anywhere? They doesnt work for me.
Thanks a lot!