[AVR-Chat] help required abt program memory
2008-04-01 by rakesh modi
Hello, My problem is different, I have written a code for searial communication. so in that code when i m calling a data table which is pre-loaded with program in program memory, then my code work proper and transmits data on com port, but when i m loading data in data memory during execution of program and then if i call that data then i am not getting proper data on com port. I m working in assembely language on kit stk500. microcontroller is atmega32. I am sending tweo files with this. In this test1.asm is working code while test3.asm is not working. plz reply me soon R.P.Modi
Show quoted textHide quoted text
----- Original Message ---- From: John Samperi <samperi@ampertronics.com.au> To: AVR-Chat@yahoogroups.com Sent: Monday, 31 March, 2008 1:27:38 PM Subject: RE: [AVR-Chat] help required abt program memory At 09:44 PM 31/03/2008, you wrote: >To change the flash memory from code, you use the spm instruction. Except that the SPM instruction does NOT work from normal memory but only from Bootloader memory. But is this what you want to know or is it just programming the chip with your code? May want to tell us which language you want to use too. Regards John Samperi ************ ********* ********* ********* ********* ******** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02) 9674-8745 Email: john@ampertronics. com.au Website http://www.ampertro nics.com. au *Electronic Design * Custom Products * Contract Assembly ************ ********* ********* ********* ********* ******** <!--