Forum Discussion
Altera_Forum
Honored Contributor
13 years agoundefined reference to 'main'
Hi Guys, I have only just started with the NIOS II and associated tools so I accept I could have done a million things wrong, but: I have tried creating a simple application that contains a U...
Altera_Forum
Honored Contributor
13 years agoHello folks,
OK, i did that and yes, you were correct it hadn't compiled. So, i started playing around and I found out why (and Yes it was through my own stupidity!). I created a BSP, (and told it to ignore c++, reduce driver sizes etc) and then regenerated/cleaned/rebuilt. Then I added the new application, and added my main.c file. Then i added my code to this and clicked 'SAVE ALL'. it then compiled and built and downloaded into the FPGA and worked! DOH! Just missed the save. The reason that I missed this is because I also use a version of Eclipse that is streamlined for NXP processors the LPCxpresso edition supplied by CodeRed and I have never needed to hit save after putting in new files, i only ever needed to re-build. So thank you for your help! It really is people taking an interest that pushes us newbies along! DSL, i will look at the cache-ing you mentioned in relation to the UART as I wouldn't want to get caught out again. D