Jump to content



Photo
- - - - -

I need help with programming addins


  • Please log in to reply
13 replies to this topic

#1 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 07 February 2020 - 04:06 PM

Can anyone point me in the right direction to learning how to program addins for my calculator(fx-9860GII), I'm not able to find anything.

 

Many thanks, Aleksandr



#2 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 07 February 2020 - 05:28 PM

Hi hejsotnoss

Did you read the SDK User's Guide? It may give you some starter knowledge.

(I don't have any C and add-in knowledge though... Maybe you can go to Planete-Casio? Your question will be answered much faster.)

(Also, you said you have fx-9860GII, but your "Calculators" list has fx-9750GII only. Is your fx-9750GII hacked into fx-9860GII? If no, you can't install add-ins. ;))

Cheers
CalcLoverHK

Edited by CalcLoverHK, 07 February 2020 - 05:34 PM.

  • hejsotnoss likes this

#3 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 07 February 2020 - 06:48 PM

Hi hejsotnoss

Did you read the SDK User's Guide? It may give you some starter knowledge.

(I don't have any C and add-in knowledge though... Maybe you can go to Planete-Casio? Your question will be answered much faster.)

(Also, you said you have fx-9860GII, but your "Calculators" list has fx-9750GII only. Is your fx-9750GII hacked into fx-9860GII? If no, you can't install add-ins. ;))

Cheers
CalcLoverHK

Oh, I have both models; I will add it to my list. And thank you, I will take a look at the SDK User's Guide. I am intimidated by Planete-Casio as I do not speak franska.

 

Regards, Aleksandr



#4 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 07 February 2020 - 11:04 PM

Hi hejsotnoss

You can speak English in Planete-Casio ;) I am the one so I can tell you this.

And what is your fx-9860GII varient? Is it USB Power Graphic 1/2?

Cheers
CalcLoverHK

Edited by CalcLoverHK, 07 February 2020 - 11:05 PM.

  • hejsotnoss likes this

#5 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 08 February 2020 - 01:02 AM

Hi hejsotnoss

You can speak English in Planete-Casio ;) I am the one so I can tell you this.

And what is your fx-9860GII varient? Is it USB Power Graphic 1/2?

Cheers
CalcLoverHK

It is a USB Power Graphic 2 does that affect anything?
 

Regards, Aleksandr


Edited by hejsotnoss, 08 February 2020 - 01:03 AM.


#6 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 08 February 2020 - 01:47 AM

I'll try asking questions in Planete-Casio also ^_^



#7 khashayar.rg

khashayar.rg

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    fx-9860GII SD

Posted 08 February 2020 - 07:03 PM

hi to ever one and thanks for answering  :wub: . 

i want writing some program but i cant find the basic  tutorial.

like   sample of this kind of program .

user input two number   like 2.1 and 3.4 (float)

and program calculate   2.1^3.4  and show the result until user press any key.  



#8 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 09 February 2020 - 06:12 AM

@hejsotnoss
This is the starter tutorial here by the moderators (they are inactive now so don't ask them):
https://community.ca...-2016-avaiable/

Because there are two variants of fx-9860GII. Prior to 2014, Casio produces fx-9860GII with SH3 CPU, but then it was replaced by fx-9860GII with SH4A CPU.

If your calculator shows "USB Power Graphic" but without "2", it is SH3 variant. Other than that, it is SH4A. You need to choose the correct instructions for your calculator, otherwise you will get System ERROR.

The difference between SH3 and SH4A is about the Getkey function. Here is the extracted version of SDK announcement PDF:

The "IsKeyDown" function in "fx-9860G SDK Libraries" has been deprecated and is now
unsupported in "USB POWER GRAPHIC 2" version of "fx-9860GII(SD)",
"GRAPH75(95)" and "fx-9860G AU PLUS".
Instead of "IsKeyDown", please use "GetKey" or "Bkey_GetKeyWait"(new function)
according to the use cases illustrated below.


Hope this helps.

@khashayar.rg
What language do you want to write in? BASIC or C? I know Basic but not C.
  • hejsotnoss likes this

#9 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 09 February 2020 - 07:27 PM

@hejsotnoss
This is the starter tutorial here by the moderators (they are inactive now so don't ask them):
https://community.ca...-2016-avaiable/

Because there are two variants of fx-9860GII. Prior to 2014, Casio produces fx-9860GII with SH3 CPU, but then it was replaced by fx-9860GII with SH4A CPU.

If your calculator shows "USB Power Graphic" but without "2", it is SH3 variant. Other than that, it is SH4A. You need to choose the correct instructions for your calculator, otherwise you will get System ERROR.

The difference between SH3 and SH4A is about the Getkey function. Here is the extracted version of SDK announcement PDF:

The "IsKeyDown" function in "fx-9860G SDK Libraries" has been deprecated and is now
unsupported in "USB POWER GRAPHIC 2" version of "fx-9860GII(SD)",
"GRAPH75(95)" and "fx-9860G AU PLUS".
Instead of "IsKeyDown", please use "GetKey" or "Bkey_GetKeyWait"(new function)
according to the use cases illustrated below.


Hope this helps.

@khashayar.rg
What language do you want to write in? BASIC or C? I know Basic but not C.

@CalcLoverHK

Thank you for the tutorial link ^_^, and thank you for pointing out the deprecation.

 

Do you know where I can find the assembly specifications for the SHA4 CPU?



#10 TBit

TBit

    Newbie

  • Members
  • Pip
  • 26 posts
  • Gender:Male
  • Location:Germany
  • Interests:C/C++, Assembly, Demoscene

  • Calculators:
    FX-9860 GII
    FX-9750 GII
    ClassPad 330 PLUS

Posted 09 February 2020 - 08:52 PM

@hejsotnoss

The most concise assembly reference is http://www.shared-pt...m/sh_insns.html imho.

I also found this sheet useful, as it contains a lot of information on the microcontroller (although it's not the exact same model).

Also check out gint, it's a really great library from what I've seen so far.


  • hejsotnoss likes this

#11 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 10 February 2020 - 12:23 AM

@hejsotnoss

The most concise assembly reference is http://www.shared-pt...m/sh_insns.html imho.

I also found this sheet useful, as it contains a lot of information on the microcontroller (although it's not the exact same model).

Also check out gint, it's a really great library from what I've seen so far.

 

@TBit

Thank you ^_^ those are some really useful links.

 

Do you know any type of software similar like FA-124 on linux(I am using Manjaro)?



#12 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 10 February 2020 - 12:49 AM

@TBit

Thank you ^_^ those are some really useful links.

 

Do you know any type of software similar like FA-124 on linux(I am using Manjaro)?

I have tried xfer9860 but I always get these errors

ERR: fx_initDevice(), 2'nd control: -4 

[E] Error initializing device.
Connected!
[>] Verifying device.. ERR: WriteUSB: Could not write: -4
ERR: ReadUSB(): Could not read: -4
Done!
[I] Main memory:ERR: WriteUSB: Could not write: -4
ERR: ReadUSB(): Could not read: -4
ERR: fx_getMCShCapacity: no proper response
[E] Error requesting MCS capacity information.

 



#13 TBit

TBit

    Newbie

  • Members
  • Pip
  • 26 posts
  • Gender:Male
  • Location:Germany
  • Interests:C/C++, Assembly, Demoscene

  • Calculators:
    FX-9860 GII
    FX-9750 GII
    ClassPad 330 PLUS

Posted 10 February 2020 - 05:54 AM

It never worked for me as well, try p7: https://aur.archlinux.org/packages/p7/
  • hejsotnoss likes this

#14 hejsotnoss

hejsotnoss

    Casio Fan

  • Members
  • PipPip
  • 31 posts
  • Gender:Male
  • Interests:programming
    mathematics
    piano
    reading

  • Calculators:
    fx-9750GII
    fx-9860GII

Posted 11 February 2020 - 05:07 PM

It never worked for me as well, try p7: https://aur.archlinux.org/packages/p7/

I will try it, many thanks ^_^.

 

Regards, Aleksandr


Edited by hejsotnoss, 11 February 2020 - 05:13 PM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users