Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 56 matches
www.mcselec.com Forum Index
Author Message
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Sun May 27, 2018 2:13 pm   Subject: Program does not start when uploaded via bootloader
Some addition.
I put in the bootloader code

Ucsr0b = 0
Goto _reset
on every location where I have _reset
No effect on the UARtr capabilities of the application.

BR
Chris
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Sun May 27, 2018 1:28 pm   Subject: Program does not start when uploaded via bootloader
Dear All,
after the recent investigations it seems to me that the bootloader itself is working properly.
The application is running too.
Fusebits Extended is on F8.
After a reset first the bootloa ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Sat May 26, 2018 1:31 pm   Subject: Program does not start when uploaded via bootloader
Dear All,
here the sourcecode of the bootloader and the dumps collected via the ISP device.
Please change the extension from txt to hex to use it.
Bootloader@application means that the application ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Fri May 25, 2018 5:45 pm   Subject: Program does not start when uploaded via bootloader
Dear All,
in the meantime I updated to Bascom 2.0.8.1 and used the "old" MCs bootloader. Results are the same.
Then I took the bootloader for ATmega 328p _JeeNode( was in the samples of versin 2.0.7 ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Wed May 23, 2018 11:44 pm   Subject: Program does not start when uploaded via bootloader
Hi Ian,
my compiler version is 2.0.7.9
The bootloader is the MCS bootloader that came with the Bascom examples.
I adapted the source file to the ATMEGA 168 and the frequency of the quartz.
Some se ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Wed May 23, 2018 7:40 pm   Subject: Program does not start when uploaded via bootloader
Dear All,
The 1A/FF difference occurs after the application program. The application programm and with 2 bytes containing the value 00. The application program ends at H1215. Then the memory is fille ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Wed May 23, 2018 5:43 pm   Subject: Program does not start when uploaded via bootloader
Here some update.
I checked the bin files via a hexEditor.
No differences in the bootloader code.
I examined the pure bootloader vs. application program loaded via ISP vs. application program loade ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Wed May 23, 2018 2:45 pm   Subject: Program does not start when uploaded via bootloader
I looked for the diffrences in the Flash memory when loading via ISP and MSC Bootloader. At the end of the application program I found memory cell containing the value 1A instead of FF. 1A was by uplo ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Tue May 22, 2018 6:03 pm   Subject: Program does not start when uploaded via bootloader
Thx for advice.
I removed all commands in relation to the LEDs in the bootloader, recompiled and loaded into flash memory via ISP.
Message from uploading of the bootloader see MCSBootL_Message.jpg ...
  Topic: Program does not start when uploaded via bootloader
autoguider

Replies: 31
Views: 1625

PostForum: BASCOM-AVR Unsupported versions   Posted: Tue May 22, 2018 2:22 pm   Subject: Program does not start when uploaded via bootloader
Dear All,
I loaded my application program via the MCS bootloader into ATMEGA168. Successfully
But:
My application program did not start.
After loading the application program via the ISP programm ...
  Topic: MCS bootloader fuses
autoguider

Replies: 4
Views: 417

PostForum: BASCOM-AVR   Posted: Tue May 22, 2018 12:30 pm   Subject: MCS bootloader fuses
Many thanks for the good advice.
Programming using the bootloader went well.
BR
Chris
  Topic: MCS bootloader fuses
autoguider

Replies: 4
Views: 417

PostForum: BASCOM-AVR   Posted: Sun Mar 25, 2018 12:10 am   Subject: MCS bootloader fuses
I did it the recommended way
$prog &HFF , &HE7 , &HDF , &HF8 in the program to be flashed and started.
In the log window I can read:
Open COM11
Sending Init byte


Nothing else ...
  Topic: MCS bootloader fuses
autoguider

Replies: 4
Views: 417

PostForum: BASCOM-AVR   Posted: Sat Mar 24, 2018 8:23 pm   Subject: MCS bootloader fuses
Dear All,
I adapted the bascom bootloader example to my processor AVR (ATMEGA168 -20PU), crystal and baud rate.

$crystal = 6144000
$baud = 57600
$regfile = "m168def.dat"
Const Load ...
  Topic: Simulating UART Coommands and CRLF
autoguider

Replies: 5
Views: 567

PostForum: BASCOM-AVR   Posted: Tue Sep 12, 2017 12:26 pm   Subject: Simulating UART Coommands and CRLF
Dear All,
thanks to your advice my code seems to work.
As there may be also programmers that have the same problems I want to share the solution.

I introduced the variable Endflag that is set to ...
  Topic: Simulating UART Coommands and CRLF
autoguider

Replies: 5
Views: 567

PostForum: BASCOM-AVR   Posted: Mon Sep 11, 2017 11:21 pm   Subject: Simulating UART Coommands and CRLF
Dear JP, Dear Evert,
many thanks for your advice. With the simulation I was successful. With my code I was not.(yet)
I will implements JPs method.
Please have a short look on my little piece of cod ...
 
Page 2 of 4 Goto page Previous  1, 2, 3, 4  Next
All times are GMT + 1 Hour
Jump to: