Re: [avr-gcc-list] Using Code::blocks with AVR-gcc in Ubuntu

2014-08-02 Thread Pink Boy
Royce, >Could anyone help in setting up the IDE ? Your best bet is to try posting on the Code::Blocks support forum. Another alternative would be to use codelite. Matt___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailm

Re: [avr-gcc-list] atmega1284 and atmega1284p

2014-03-20 Thread Pink Boy
Ormund, Yah... its the atmega1284 that's not supported, the 1284p works fine. I think the and p versions of Atmel processors are functionally identical from a programming standpoint. Matt___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org h

Re: [avr-gcc-list] atmega1284 and atmega1284p

2014-03-20 Thread Pink Boy
Ormund Williams sez, >I'm using 4.7.2 and it doesn’t recognize the atmega1284, is there a >later version that handles 1284? or is there any software difference >between the 1284 and 1284p? That's odd, I'm using (still) avr-gcc 4.3.3 (WinAVR-20100110) and it supports the atmega1284p Matt

Re: [avr-gcc-list] Simple but wrong code

2014-01-14 Thread Pink Boy
dfx see notes below. // #define KEY_FUNC_SEL PIND4 // --> first key (Port D pin 4) // in WinAvr PIND4 is a bit position and is equal to 4 #define KEY_FUNC_SEL (1< 0) { // Test a key     LED_PORT |= (1 << PORTB0);     _delay_ms(100);     LED_PORT &= ~(1 << PORTB0);     _delay_ms(300);   }

Re: [avr-gcc-list] Some people use Netbeans to develop AVR-GCC?

2013-12-12 Thread Pink Boy
Domenico, >I would like to use Netbeans to develop AVR-GCC but I had just started a small >problem. >I created a new Netbeans project using source code for atmega324pa already >successfully developed previously. >The editor of Netbeans correctly recognize all symbols except two: MCUCR and >JT

Re: [avr-gcc-list] clarification on gcc

2013-06-24 Thread Pink Boy
Parthasaradhi Nayani sez, >What are the differences between GCC and AVR-GCC save for the libraries? GCC >is supposed to cross compile for various processors so if I have a source >file, can I not compile this source file using regular GGC say on Linux by >using appropriate switches like selecti

Re: [avr-gcc-list] Question about GDB and debugging

2013-01-22 Thread Pink Boy
Joerg sez, >AVR-GDB is usable.  You need a so-called proxy process that links the ICE to >GDB, this one is calle AVaRICE. Okay I'll try and see if I can get it to work on Codelite. >The latest release of AVaRICE doesn't support the JTAGICE3 yet, but I've been >working hard lately to add supp

[avr-gcc-list] Question about GDB and debugging

2013-01-16 Thread Pink Boy
I have a question about the status of avr-gdb For the last couple of years I've been using codelite (http://codelite.org/) for developing my AVR code.  And then debugging with AVR Studio 4.  This works well enough. Recently though we bought a JtagIce3 from Atmel.  And I've been exploring AVR S

Re: [avr-gcc-list] Re: issues with struct and volatile

2009-07-24 Thread Pink Boy
klass sez, > struct > { > uint8_t *tx_head; > uint8_t * volatile tx_tail; > uint8_t tx_buffer[DBG_BUF_SZ]; > /* blah blah */ > uint8_t dbg_timer; > } dbg_serial_port; > Declare the pointer volatile, not the value it is pointing to Thanks mucho grande. Mr Foo ___

[avr-gcc-list] issues with struct and volatile

2009-07-23 Thread Pink Boy
Hi, I recently run into an issue with a struct with some volatile members and was wondering is this is a problem with me or gcc, ar avr-gcc. I have a structure used to define a buffer for a serial port somewhat like this. struct { uint8_t *tx_head; volatile uint8_t *tx_tail; uint8_t tx

Re: [avr-gcc-list] 16 bit Timer Issue.

2009-01-05 Thread Pink Boy
prabu sez, > Tool:ICCAVR Aiiig! Back foul spawn of Satan! (heh) > I am using timer1 for the delay of 1 second. > > So the value for the timer TCNT1 (0x1E84).( Clk/1024 > prescale). > > My intention is I have to generate 1 sec periodic delay. > > AT every one sec the portc PC6 will

Re: [avr-gcc-list] avr-gcc printf optimisation ?

2008-12-17 Thread Pink Boy
Joerg Wunsch sez, > In hosted mode (which is the default), you are not allowed > to replace library functions by your own implementation. > Either use -ffreestanding, or use a non-conflicting name > instead. I have a question, unrelated. I use my own non conflicting printf that looks like, i

Re: [avr-gcc-list] Strange issues with 16-bit values

2008-11-11 Thread Pink Boy
Brian Neltner sez, > I've tried now compiling the exact same source code on > my windows computer running AVR Studio, and the hex file > produced by that compilation works exactly as expected. > rand() produces a sequence which doesn't repeat after > only seven calls, and it is not halting or

Re: [avr-gcc-list] How to handle interrupt vectors ?

2008-10-28 Thread Pink Boy
Charalampos Alexopoulos sez, > Thank you for your answer, but i am not looking for the > easiest way. I want to have some solution similar to previus > example. I can use ISR's even with c++ with no problem, what > i need, as i said before, is to assign a vector as a static > class member i

RE: [avr-gcc-list] cbr and negative numbers

2008-09-12 Thread Pink Boy
Stu Bell sez, > > There's an OS for the AVR? Whoa. I had no idea. >> Guess I know what website I'll be perusing this morning. > > > > Is it stable yet? > > Check the Tutorials forum on avrfreaks.net -- there's a > thread with a pile of Oses for AVRs of all flavors. I've used AVRX and it's certa

Re: [avr-gcc-list] winavr 20080411 and atmega324p

2008-04-19 Thread Pink Boy
Alexander, > Does the latest winavr work with the mega324p right out of > the box? I saw there are patches in the source folder - do > they have to be installed? If so, which patches in order to > make the 324p work? Not sure if you're trying to do work on the WinArv itself or justing trying to

Re: AW: [avr-gcc-list] reentrant interrupt service routine

2008-04-01 Thread Pink Boy
Sven Schlender sez, > So far I know. There is another (or maybe the same) problem I > think about. Lets say there is function which is callable > from main() AND from any interrupt routine. Aggghh! Such a thing is safe as long as the function is truly reentrant. That is only operat

Re: [avr-gcc-list] reentrant interrupt service routine

2008-04-01 Thread Pink Boy
Sven Schlender sez, > I just wondering if there are some experiences with > reentrant interrupt service routines with avr-gcc. I have a timer routine that is reentrant. > Is this a known issue? How the avr-gcc handle > it? Is there a possibility to find such reentrant calls > with a compiler or

Re: [avr-gcc-list] Bootloader for m324p

2008-03-10 Thread Pink Boy
Sebastian Brückner sez, > I have been trying to port one of the existing avr910 > bootloaders (namely [1] and [2]) to an ATmega324p without > much success. I spent some time trying to port a boot loader to the the Atmega324p and found it not really worthwhile. If you are using WinAvr all the ro

Re: [avr-gcc-list] bootloader for hex file on SD/MMC card

2007-03-21 Thread Pink Boy
TTTechsDomino sez, > It's a good idea and normaly quite easy. The main problem will be > to crush a FAT files system into the 4kByte Bootloader Section of > the AVR ATMEGA. And actually only the code that writes to flash needs to be in the boot section. The code that reads fat can exist in it's

Re: [avr-gcc-list] End of program symbol

2006-06-08 Thread Pink Boy
Adam sez, > How about using a ROM/PROGMEM array in which dynamic code is loaded > instead of putting it after _etext? This is what we are doing in > the Contiki OS. One nice thing with this is that you can decide > beforehand how much space you'd like to reserve for the dynamic > code (and you'll