Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ERROR on ERAM Write

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
quick09

Bascom Member



Joined: 03 Jun 2008
Posts: 4

south_korea.gif
PostPosted: Thu Apr 28, 2022 3:52 pm    Post subject: ERROR on ERAM Write Reply with quote

Hi,

Due to my old program doesn't work anymore and I tested ERAM writing function with simple codes as under.
Please let me know if I need to do some more to make it work.

Code:

$regfile = "m128def.dat"                                    ' specify the used micro
$crystal = 16000000                                         ' used crystal frequency
$baud = 115200
$hwstack = 128
$swstack = 128
$framesize = 64

Dim a as ERAM byte
Dim b as ERAM word
Dim str1 as ERAM string*20
DIM Temp_String as string *20

'Testing Writing Vars

A=1
B=2
Temp_String ="Hello"
str1 =Temp_String
str1="Hello"
str1="H"

End

 


I tested it on Simulator and the variables A and B did update properly but, String STR1 didn't be updated on ERAM.
Please help..

Thanks



(BASCOM-AVR version : 2.0.8.5 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Fri Apr 29, 2022 8:19 am    Post subject: Reply with quote

You can download an update for the setup from register.
After the initial release there was an update to fix some bugs.

Or contact support.

_________________
Mark
Back to top
View user's profile Visit poster's website
quick09

Bascom Member



Joined: 03 Jun 2008
Posts: 4

south_korea.gif
PostPosted: Mon May 02, 2022 2:36 am    Post subject: Reply with quote

albertsm wrote:
You can download an update for the setup from register.
After the initial release there was an update to fix some bugs.

Or contact support.


I don't know if there is any update for 2.0.8.5 version.
And as for the example code, I can't have proper data of STR1.
I guess that there is a bug to write string data into ERAM.

Thanks
Ian
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Sun May 22, 2022 1:29 pm    Post subject: Reply with quote

you can write to support. one user contacted me but the mail bounced.
i prefer to keep compiler/add on updates in sync. otherwise i would publish this change.

_________________
Mark
Back to top
View user's profile Visit poster's website
jboavida

Bascom Member



Joined: 12 Feb 2005
Posts: 94
Location: Portugal

portugal.gif
PostPosted: Wed Sep 14, 2022 7:25 pm    Post subject: Reply with quote

Hello,

I have the same problem.
One of my applications that was working for more than 10 years stopped after recompile with 2.0.8.5.00. No change after update to 2.0.8.5.004
When I try to update there is no new version available.

I'm using Atmega328PB


Update: Compiled with 2.0.8.4 worked as expected, so problem solved for now.

Thanks in advance


Joaquim
Back to top
View user's profile Visit poster's website MSN Messenger
BorisS

Bascom Member



Joined: 29 May 2014
Posts: 13
Location: Ljubljana

slovenia.gif
PostPosted: Fri Jan 20, 2023 8:24 pm    Post subject: Reply with quote

Hello

He has one big problem. I was working with version 2.0.8.2, after which the first time I used the LCD 20x4 I2C version did not work (probably some bug). It reports an error when translating.

I upgraded the version to 2.0.8.5 and now the LCD works and writing characters to ERAM does not work. Nothing happens after entering ERAM.

Im asking for help.

Boris
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Mon Jan 23, 2023 10:19 am    Post subject: Reply with quote

the register contains a patch/update for this. it is an updated version of the compiler for 2085 that addresses this problem. it should be installed after the normal installation.
_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum