Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
gcc plug-in: Error: Object file not found on expected location C:\Documents and Settings\Eric\AVRStudio\Test01\Test01.elfMake sure your makefile specifies the output .elf file as Test01.elf
while(1) { //control();//use this for your code while(!button_pressed()); delay_ms(100); if(light==1) { light = 0; LED_off(); delay_ms(100); uartSendByte(2,255); delay_ms(100); uartSendByte(2,0); delay_ms(100); uartSendByte(2,80); } else { light = 1; LED_on(); delay_ms(100); uartSendByte(2,255); delay_ms(100); uartSendByte(2,0); delay_ms(100); uartSendByte(2,40); } delay_cycles(100);//an optional small delay to prevent crazy oscillations }
uartSetBaudRate(2, 9600); // set UARTH speed
I set the baud rate for UART2 by modifying the line early in the Axon.c source:Code: [Select]uartSetBaudRate(2, 9600); // set UARTH speedIs that all that needs to be changed for baud? (9600 is what my MiniSSC is set to, of course)
Doing some testing with rprintf... If I initialize uart1 and then uart2, only the later one works (i.e. the feedback being sent to hyperterminal doesn't go to uart1) Is there a way around this other than re-initializing rprintf each time i change which output I'll send?
rprintfInit(uart0SendByte);//use UART0rprintf("SoR Rulez");
i had to manually set the "Connect using" to the correct port. It was using the bluetooth serial port on my computer. (I think this must have defaulted correctly for you, as the "CP210x USB etc" was the only COM port in your Device Manager)
Underneath that, clicked Configure, and I had to set the Baud rate there, too. (Despite the settings being correct in Device Manager since yesterday)
By the way: I had to take the whole power switch assembly apart and play with a multimeter for 20mins before feeling stupid and realizing how the circuitry is laid out in it... I bet I won't be the last. Although my thoughts were prejudiced by the way I wanted to connect the whole thing: using both of the female wires.
In step five of part 1 ( http://www.societyofrobots.com/axon/axon_getting_started_software.shtml ), I am instructed to copy paste the contents of Axon.c into AVR Studio....There isn't anywhere to paste such, and my screen matches the screenshot in the previous step to which Admin refers. Mistake in the tutorial?
So the 38400 baud you told me was because it is what you have used in the Axon/Blackfin code you wrote. So it could have been any baud rate really for the Blackfin.