Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 5026 matches
www.mcselec.com Forum Index
Author Message
  Topic: program is erased from flash
albertsm

Replies: 16
Views: 310

PostForum: BASCOM-AVR   Posted: Fri Oct 30, 2020 10:11 am   Subject: program is erased from flash
cannot be used to jump to the program; it jumps to the bootloader
it will reset the micro. it depends on your fuse if it will execute the boot loader or the normal application memory.

ok, the proc ...
  Topic: program is erased from flash
albertsm

Replies: 16
Views: 310

PostForum: BASCOM-AVR   Posted: Thu Oct 29, 2020 8:24 pm   Subject: program is erased from flash
yes replace by :

Cpu_ccp = &HD8
Rst_ctrl = 1

clearing rampz was just to make sure it contained the right value.

you say you dont have a problem with NVRAM but you wrote : Update_state_ee ...
  Topic: Small add in IDE
albertsm

Replies: 3
Views: 358

PostForum: BASCOM-AVR   Posted: Thu Oct 29, 2020 10:19 am   Subject: Small add in IDE
I added it, but it is not published yet. you find it in the next release.
  Topic: program is erased from flash
albertsm

Replies: 16
Views: 310

PostForum: BASCOM-AVR   Posted: Thu Oct 29, 2020 10:09 am   Subject: program is erased from flash
one other thing. i see you use the goto _RESET. This is not a real reset.
the xmega/xtiny have a soft reset option. in bascom you can use : RESET MICRO to do this (i did not check it that is in the ...
  Topic: program is erased from flash
albertsm

Replies: 16
Views: 310

PostForum: BASCOM-AVR   Posted: Wed Oct 28, 2020 8:34 pm   Subject: program is erased from flash
when you share eeprom between the boot loader and the main application, you best use an INC file where you keep the eeprom variables. then include it in both programs.
This way you can ensure that wh ...
  Topic: program is erased from flash
albertsm

Replies: 16
Views: 310

PostForum: BASCOM-AVR   Posted: Wed Oct 28, 2020 4:30 pm   Subject: program is erased from flash
i just try to think of a scenario where you can end up with erased flash.
when by some error there would be a jump to a part of the boot loader there could be a problem. but that would result in an e ...
  Topic: program is erased from flash
albertsm

Replies: 16
Views: 310

PostForum: BASCOM-AVR   Posted: Wed Oct 28, 2020 1:21 pm   Subject: program is erased from flash
-which lock bits have you set?
-do you use brown out option?
- how exactly can this NVRAM be written? is it i2c/spi ? would a jump be able to write a zero?

to prevent that a jump can erase you c ...
  Topic: MCP79520 RTC over SPI with Bascom
albertsm

Replies: 4
Views: 200

PostForum: Share your working BASCOM-AVR code here   Posted: Fri Oct 23, 2020 12:08 pm   Subject: MCP79520 RTC over SPI with Bascom
Excellent work EDC.
Thanks for sharing your work.
I see the attachment is complete with PDF and code.

If you dont mind i add it to the bascom samples.
  Topic: New Avr question
albertsm

Replies: 2
Views: 164

PostForum: BASCOM-AVR   Posted: Wed Oct 21, 2020 2:45 pm   Subject: New Avr question
the attiny85 is not a new chip. it can be programmed the usual way.
you mean the chips like attiny814 816 817 804 806 402 204 etc. right?
these chips have the UPDI interface which is one pin.
b ...
  Topic: Printbin #4 limitation
albertsm

Replies: 12
Views: 487

PostForum: BASCOM-AVR   Posted: Fri Oct 16, 2020 8:16 pm   Subject: Printbin #4 limitation
Indeed MWS is right.
You mean arguments. When is it sufficient for you ? At 100 or 1000 or 1000000 ?
There are way better ways to do what you do.
Use an array as JP suggest. Or better when you used ...
  Topic: XTINY test board ATTINY3216 (1616,1626,3226...)
albertsm

Replies: 2
Views: 183

PostForum: AVR   Posted: Tue Oct 13, 2020 2:32 pm   Subject: XTINY test board ATTINY3216 (1616,1626,3226...)
thanks for sharing the board.
it reminds me :
the xtiny does not support AVR-DOS. but i will add that to the next update.
  Topic: 1wire on extended ports of atmega2560
albertsm

Replies: 4
Views: 278

PostForum: Various   Posted: Tue Oct 13, 2020 2:29 pm   Subject: 1wire on extended ports of atmega2560
no otherwise it would be included/mentioned.
  Topic: Small add in IDE
albertsm

Replies: 3
Views: 358

PostForum: BASCOM-AVR   Posted: Thu Oct 08, 2020 8:22 pm   Subject: Small add in IDE
i added to the tool tip help (SHIFT key) the info to show the length of a string constant.
  Topic: Get number char in LCD Config
albertsm

Replies: 2
Views: 232

PostForum: BASCOM-AVR   Posted: Thu Oct 08, 2020 8:21 pm   Subject: Get number char in LCD Config
no, it is only needed at compile time. but for the next version i added : const _TEXTLCDKIND contains the text LCD kind like : 162 for 16x2
  Topic: 1wire on extended ports of atmega2560
albertsm

Replies: 4
Views: 278

PostForum: Various   Posted: Thu Oct 08, 2020 8:17 pm   Subject: 1wire on extended ports of atmega2560
it should work when they have pin,ddr and port registers and it seems m2560 has that.
 
Page 1 of 336 Goto page 1, 2, 3 ... 334, 335, 336  Next
All times are GMT + 1 Hour
Jump to: