Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Projets de programmation


Index du Forum » Projets de programmation » gint : un noyau pour développer des add-ins
Lephenixnoir Hors ligne Administrateur Points: 24146 Défis: 170 Message

gint : un noyau pour développer des add-ins

Posté le 20/02/2015 17:30

Ce topic fait partie de la série de topics du fxSDK.

En plus des options de programmation intégrée comme le Basic Casio ou Python, la plupart des calculatrices Casio supportent des add-ins, des programmes natifs très polyvalents avec d'excellentes performances. Les add-ins sont généralement programmés en C/C++ avec l'aide d'un ensemble d'outils appelé SDK.

Plusieurs SDK ont été utilisés par la communauté avec le temps. D'abord le fx-9860G SDK de Casio avec fxlib pour Graph monochromes (plus maintenu depuis longtemps). Puis le PrizmSDK avec libfxcg pour Prizm et Graph 90+E (encore un peu actif sur Cemetech). Et plus récemment celui que je maintiens, le fxSDK, dont gint est le composant principal.

gint est un unikernel, ce qui veut dire qu'il embarque essentiellement un OS indépendant dans les add-ins au lieu d'utiliser les fonctions de l'OS de Casio. Ça lui permet beaucoup de finesse sur le contrôle du matériel, notamment la mémoire, le clavier, l'écran et les horloges ; mais aussi de meilleures performances sur le dessin, les drivers et la gestion des interruptions, plus des choses entièrement nouvelles comme le moteur de gris sur Graph monochromes.

Les sources de gint sont sur la forge de Planète Casio : dépôt Gitea Lephenixnoir/gint

Aperçu des fonctionnalités

Les fonctionnalités phares de gint (avec le fxSDK) incluent :

  • Toutes vos images et polices converties automatiquement depuis le PNG, sans code à copier (via fxconv)
  • Un contrôle détaillé du clavier, avec un GetKey() personnalisable et un système d'événements à la SDL
  • Une bibliothèque standard C plus fournie que celle de Casio (voir fxlibc), et la majorité de la bibliothèque C++
  • Plein de raccourcis pratiques, comme pour afficher la valeur d'une variable : dprint(1,1,"x=%d",x)
  • Des fonctions de dessin, d'images et de texte optimisées à la main et super rapides, surtout sur Graph 90+E
  • Des timers très précis (60 ns / 30 µs selon les cas, au lieu des 25 ms de l'OS), indispensables pour les jeux
  • Captures d'écran et capture vidéo des add-ins par USB, en temps réel (via fxlink)

Avec quelques mentions spéciales sur les Graph monochromes :
Un moteur de gris pour faire des jeux en 4 couleurs !
La compatibilité SH3, SH4 et Graph 35+E II, avec un seul fichier g1a
Une API Unix/POSIX et standard C pour accéder au système de fichiers (Graph 35+E II seulement)

Et quelques mentions spéciales sur les Graph 90+E :
Une nouvelle police de texte, plus lisible et économe en espace
Le dessin en plein écran, sans les bordures blanches et la barre de statut !
Un driver écran capable de triple-buffering
Une API Unix/POSIX et standard C pour accéder au système de fichiers

Galerie d'add-ins et de photos

Voici quelques photos et add-ins réalisés avec gint au cours des années !



Arena (2016)Plague (2021)



Rogue Life (2021)



Momento (2021)



Communication avec le PC (cliquez pour agrandir)


Utiliser gint pour développer des add-ins

Les instructions pour installer et utiliser gint sont données dans les divers tutoriels recensés dans le topic du fxSDK. Il y a différentes méthodes de la plus automatique (GiteaPC) à la plus manuelle (compilation/installation de chaque dépôt). Le fxSDK est compatible avec Linux, Mac OS, et marche aussi sous Windows avec l'aide de WSL, donc normalement tout le monde est couvert

Notez en particulier qu'il y a des tutoriels de développement qui couvrent les bases ; tout le reste est expliqué dans les en-têtes (fichiers .h) de la bibliothèque que vous pouvez consulter en ligne, ou dans les ajouts aux changelogs ci-dessous.

Changelog et informations techniques

Pour tester les fonctionnalités et la compatibilité de gint, j'utilise un add-in de test appelé gintctl (dépôt Gitea Lephenixnoir/gintctl). Il contient aussi une poignée d'utilitaires d'ordre général.

Ci-dessous se trouve la liste des posts indiquant les nouvelles versions de gint, et des liens vers des instructions/tutoriels supplémentaires qui accompagnent ces versions.

VersionDateInfos supplémentaires
gint 2.10.02 Avril 2023
gint 2.9.021 Août 2022
gint 2.8.017 Mai 2022Effets dynamiques sur les imagesAPI de manipulations d'images
Overclock intégré
gint 2.7.119 Mars 2022Tutoriel capture des flux standards
gint 2.7.031 Décembre 2021
gint 2.6.029 Août 2021Tutoriel de capture vidéo par USB
gint 2.5.28 Juin 2021
gint 2.5.12 Juin 2021
gint 2.5.026 Mai 2021Intégration de fxlibc (dépôt) — Tutoriel de communication par USB
gint 2.4.027 Avril 2021Api GINT_CALL() pour les callbacks
gint 2.3.12 Février 2021
gint 2.3.029 Janvier 2021
gint 2.2.112 Janvier 2021
gint 2.2.011 Janvier 2021
gint 2.1.116 Septembre 2020
gint 2.1.021 Août 2020Polices UnicodeNouvelle API du moteur de gris
gint 2.0.3-beta10 Juillet 2020Modifications de l'API timer
gint 2.0.2-beta17 Juin 2020
gint 2.0.1-beta1er Juin 2020

Anecdotes et bugs pétés

Ô amateurs de bas niveau, j'espère que vous ne tomberez pas dans les mêmes pièges que moi.


TODO list pour les prochaines versions (2023-04-03)

gint 2.11
  1. Changements de contextes CPU. À reprendre du prototype de threading de Yatis pour permettre l'implémentation d'un véritable ordonnanceur. Demandé par si pour faire du threading Java.
  2. Applications USB. Ajouter le support de descripteurs de fichiers USB. Potentiellement pousser jusqu'à avoir GDB pour debugger.
  3. Support de scanf() dans la fxlibc. Codé par SlyVTT, plus qu'à nettoyer et fusionner.

Non classé

  • Regarder du côté serial (plus facile que l'USB) pour la communication inter-calculatrices (multijoueur) et ultimement l'audio (libsnd de TSWilliamson).
  • Un système pour recompiler des add-ins mono sur la Graph 90+E avec une adaptation automatique.
  • Support des fichiers en RAM pour pouvoir utiliser l'API haut-niveau sur tous les modèles et éviter la lenteur de BFile à l'écriture quand on a assez de RAM.



Précédente 1, 2, 3 ··· 10 ··· 20 ··· 30 ··· 40 ··· 50 ··· 55, 56, 57, 58, 59, 60, 61 ··· 70, 71, 72, 73 Suivante
Lephenixnoir Hors ligne Administrateur Points: 24146 Défis: 170 Message

Citer : Posté le 30/05/2021 14:59 | #


J'ai refait quelques tentatives sur la compilation de la lib standard C++, mais ça reste très compliqué parce qu'il fait tout comme si c'était du hosted et c'est vraiment pas facile à gérer.

Ninestars, si tu as l'occasion de venir discuter pour Windmill je veux bien.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 30/05/2021 16:11 | #


Quand je build mon projet d'USB j'ai :
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(ff-bulk.c.obj): in function `_usb_fxlink_fill_header':
ff-bulk.c:(.text+0x84): undefined reference to `_strlen'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: ff-bulk.c:(.text+0x88): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: ff-bulk.c:(.text+0x90): undefined reference to `_strncpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(ff-bulk.c.obj): in function `_usb_fxlink_text':
ff-bulk.c:(.text+0x1dc): undefined reference to `_strlen'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(setup.c.obj): in function `_usb_req_setup':
setup.c:(.text+0x1e4): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: setup.c:(.text+0x1e8): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: CMakeFiles/myaddin.dir/src/main.c.obj: in function `_main':
main.c:(.text.startup+0x7c): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: main.c:(.text.startup+0x80): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(keydev.c.obj): in function `_keydev_init':
keydev.c:(.text+0x78): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(keydev.c.obj): in function `_keydev_transform':
keydev.c:(.text+0x470): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(keydev.c.obj): in function `_keydev_set_transform':
keydev.c:(.text+0x4c4): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(keysc.c.obj): in function `_configure':
keysc.c:(.text+0x6c): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: keysc.c:(.text+0x74): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(tmu.c.obj): in function `_configure':
tmu.c:(.text+0x248): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(tmu.c.obj): in function `_timer_configure':
tmu.c:(.text+0x52c): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: tmu.c:(.text+0x550): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(tmu.c.obj): in function `_timer_setup':
tmu.c:(.text+0x710): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: tmu.c:(.text+0x714): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_finish_transfer':
pipes.c:(.text+0x15c): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0x164): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_finish_round':
pipes.c:(.text+0x21c): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_fifo_bind.constprop.0':
pipes.c:(.text+0x388): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0x390): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0x44c): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0x450): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_write_round':
pipes.c:(.text+0x664): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0x674): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_usb_pipe_clear':
pipes.c:(.text+0x8ac): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0x8b0): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_usb_pipe_init_transfers':
pipes.c:(.text+0x8e8): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_usb_write_async':
pipes.c:(.text+0x9e4): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_usb_write_sync':
pipes.c:(.text+0xa84): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0xa8c): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_usb_commit_async':
pipes.c:(.text+0xb78): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(pipes.c.obj): in function `_usb_commit_sync':
pipes.c:(.text+0xbec): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: pipes.c:(.text+0xbf4): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(string.c.obj): in function `_usb_dc_string':
string.c:(.text+0xe4): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(usb.c.obj): in function `_usb_interrupt_handler':
usb.c:(.text+0x3b0): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(usb.c.obj): in function `_usb_open':
usb.c:(.text+0x50c): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: usb.c:(.text+0x534): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(usb.c.obj): in function `_usb_close':
usb.c:(.text+0x5b8): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(dma.c.obj): in function `_dma_channel':
dma.c:(.text+0x28): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(dma.c.obj): in function `_configure':
dma.c:(.text+0x330): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: dma.c:(.text+0x338): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(dma.c.obj): in function `_dma_interrupt_transfer_ended':
dma.c:(.text+0x3d4): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(dma.c.obj): in function `_dma_transfer_async':
dma.c:(.text+0x43c): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(dma.c.obj): in function `_dma_transfer_sync':
dma.c:(.text+0x534): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: dma.c:(.text+0x538): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(dma.c.obj): in function `_dma_transfer':
dma.c:(.text+0x604): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: dma.c:(.text+0x608): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(intc.c.obj): in function `_intc_handler':
intc.c:(.text+0x148): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(intc.c.obj): in function `_intc_handler_function':
intc.c:(.text+0x190): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(hardware.c.obj): in function `_hw_detect':
hardware.c:(.text+0x54): undefined reference to `_memcmp'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kernel.c.obj): in function `_kinit':
kernel.c:(.text+0x10c): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(osmenu.c.obj): in function `_gint_osmenu':
osmenu.c:(.text+0x108): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(world.c.obj): in function `_gint_switch':
world.c:(.text+0x304): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(arena_gint.c.obj): in function `_gint_realloc':
arena_gint.c:(.text+0x5ec): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(arena_gint.c.obj): in function `_kmalloc_init_arena':
arena_gint.c:(.text+0x6c0): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kmalloc.c.obj): in function `_kmalloc_get_arena':
kmalloc.c:(.text+0x8c): undefined reference to `_strcmp'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kmalloc.c.obj): in function `_kmalloc':
kmalloc.c:(.text+0x124): undefined reference to `_strcmp'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(malloc.c.obj): in function `_calloc':
malloc.c:(.text+0x50): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(sleep.c.obj): in function `_do_sleep':
sleep.c:(.text+0x78): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: sleep.c:(.text+0x80): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(r61524.c.obj): in function `_r61524_display':
r61524.c:(.text+0x280): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: r61524.c:(.text+0x284): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kformat_ptr':
kprint.c:(.text+0x18c): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kprint_opt':
kprint.c:(.text+0x3f8): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kprint':
kprint.c:(.text+0x4d0): undefined reference to `_memcpy'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kformat_str':
kprint.c:(.text+0x6c8): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kformat_uint':
kprint.c:(.text+0x948): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kformat_fixed':
kprint.c:(.text+0xaf0): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kformat_int':
kprint.c:(.text+0xcac): undefined reference to `_memset'
/home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/../../../../sh3eb-elf/bin/ld: /home/orian/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/10.2.0/libgint-cg.a(kprint.c.obj): in function `_kformat_char':
kprint.c:(.text+0xd70): undefined reference to `_memset'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/myaddin.dir/build.make:114: myaddin] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/myaddin.dir/all] Error 2
make: *** [Makefile:103: all] Error 2


(erreur extrèmement longue)

Une idée ?
Globalement, coder. Mal, mais coder.
Loieducode Hors ligne Membre Points: 170 Défis: 6 Message

Citer : Posté le 30/05/2021 16:12 | #


Ah j'ai eu le meme, att je regarde la solution
EDIT: J'ai ajouté ca *quelquepart* dans le project.cfg(enfin avec quelques changements

-I $(GCC_BASE_FX<ou CG>)/include/openlibm
-lgint-fx<ou cg> -lc -lopenlibm

Trickswriting(sort le 1er avril):
   90%
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 30/05/2021 16:18 | #


Donc juste à ajouter ca n'importe ou et ca marche ?
Et il ya pas de Projet.cfg dans la nouvelle version de Gint.
Globalement, coder. Mal, mais coder.
Loieducode Hors ligne Membre Points: 170 Défis: 6 Message

Citer : Posté le 30/05/2021 16:20 | #


Moi dans la partie LIBS_CG du projet.cfg j'ai mis ca

LIBS_CG := -lgint-cg -lc -lopenlibm

et pour le LDFLAGS_CG

LDFLAGS_CG := -T fxcg50.ld  -lgint-cg $(LIBS_CG) -lgint-cg -lgcc -I $(GCC_BASE_CG)include/openlibm

Trickswriting(sort le 1er avril):
   90%
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 30/05/2021 16:21 | #


Mais... ya plus de projet.cfg dans la nouvelle version de gint ...
Globalement, coder. Mal, mais coder.
Loieducode Hors ligne Membre Points: 170 Défis: 6 Message

Citer : Posté le 30/05/2021 16:22 | #


Avec Makefile, si
Trickswriting(sort le 1er avril):
   90%
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 30/05/2021 16:23 | #


Moi j'ai que CMakeLists.txt
Globalement, coder. Mal, mais coder.
Loieducode Hors ligne Membre Points: 170 Défis: 6 Message

Citer : Posté le 30/05/2021 16:24 | #


Le truc c'est que quand tu fais un

fxsdk new jsp

ca le fait avec cmake par defaut, mais un projet avec makefile ca se fait avec

fxsdk new jsp --makefile

Trickswriting(sort le 1er avril):
   90%
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 30/05/2021 16:25 | #


EDIT : en fait je vais utiliser make

Ajouté le 30/05/2021 à 16:43 :
Alors avec ta solution j'ai :

sh-elf-gcc: error: lgint-cg: No such file or directory
sh-elf-gcc: error: lgint-cg: No such file or directory

Globalement, coder. Mal, mais coder.
Lephenixnoir Hors ligne Administrateur Points: 24146 Défis: 170 Message

Citer : Posté le 30/05/2021 17:16 | #


Wait c'est gentil d'aider à debugger mais va pas lui faire convertir les projets Makefile là.

Potter récupère ton projet et met à jour le fxSDK c'est certainement là ton problème. Tous les flags dont tu as besoin sont ajoutés par le fait de linker avec Gint::Gint.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 30/05/2021 19:31 | #


Ok je vais faire ça demain.
Globalement, coder. Mal, mais coder.
Lephenixnoir Hors ligne Administrateur Points: 24146 Défis: 170 Message

Citer : Posté le 30/05/2021 20:02 | #


Dans ton CMakeLists.txt tu dois avoir un target_link_libraries(... Gint::Gint) et depuis gint 2.5.0 cette cible fournit les options -I et -l pour OpenLibm et la libc. Comme tu as plein de référence indéfinies vers des fonctions de la libc ça suggère que ton gint est pas à jour.

Je suis sûr que tu as déjà dû me dire comment tu l'installes et le mets à jour, mais j'oublie tout le temps quand j'aide d'autres personnes (désolé), donc n'hésite pas à repréciser (GiteaPC, le dépôt de Darks, à la main, etc).
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 30/05/2021 20:16 | #


J’utilise GiteaPC.
Globalement, coder. Mal, mais coder.
Lephenixnoir Hors ligne Administrateur Points: 24146 Défis: 170 Message

Citer : Posté le 30/05/2021 20:18 | #


Est-ce que tu as bien mis à jour gint ?

% giteapc install -u Lephenixnoir/gint

Note aussi que dans ton CMakeLists.txt il y a une ligne find_package(Gint ... REQUIRED) où la version de gint est indiquée. Mets bien 2.5 comme ça CMake vérifie pour toi que la version correspond bien, ça te donnera une jolie erreur bien claire si jamais tu n'as pas la bonne version, au lieu de planter au link.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 31/05/2021 14:53 | #


Après mise à jour, l'add-in se compile. Je vais voir si ca marche maintenant. Merci de votre aide, Lephe' et Loieducode !

Ajouté le 31/05/2021 à 15:04 :
J'ai une error: error initializing libusb: Other error lors de fxlink -iw. Mais je sais que WSL a une gestion foireuse de l'USB. Adieu fxlink pour WSL ou c'est une autre erreur ? Pas moyen de l'installer sur windows ?
Globalement, coder. Mal, mais coder.
Dark storm En ligne Labélisateur Points: 11631 Défis: 176 Message

Citer : Posté le 31/05/2021 15:13 | #


T'as essayé avec les dernières version de WSL (2) ? Ils ont ajouté le support d'un paquet de trucs entre temps…
Finir est souvent bien plus difficile que commencer. — Jack Beauregard
Potter360 Hors ligne Rédacteur Points: 1219 Défis: 2 Message

Citer : Posté le 31/05/2021 15:14 | #


Ah, j'ai pas vu. Bon je vais réesayer demain, je sens que pour mettre à jour ca va être le bordel.
Globalement, coder. Mal, mais coder.
Lephenixnoir Hors ligne Administrateur Points: 24146 Défis: 170 Message

Citer : Posté le 31/05/2021 20:22 | #


Oui faut voir avec WSL 2 déjà. Maintenant oui c'est possible que libusb/fxlink ne marche pas bien. À étudier.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Shadow15510 Hors ligne Administrateur Points: 5498 Défis: 18 Message

Citer : Posté le 01/06/2021 15:44 | #


J'ai une question sur la fonction dprint, on peut afficher des float et des double avec ? (avec %f et %lf)
"Ce n'est pas parce que les chose sont dures que nous ne les faisons pas, c'est parce que nous ne les faisons pas qu'elles sont dures." Sénèque

Lephenixnoir Hors ligne Administrateur Points: 24146 Défis: 170 Message

Citer : Posté le 01/06/2021 15:53 | #


Oui, mais il faut appeler une fonction au début du programme pour les activer ; la raison est que le code qui génère les chiffres des nombres flottants est assez lourd et donc je ne veux pas forcer tout le monde à l'inclure dans l'add-in s'il n'est pas nécessaire.

#include <gint/kprint.h>

/* Au début du programe */
kprint_enable_fp();

Quand j'aurai déplacé printf dans la libc, cette séquence sera différente (mais il y aura des redirections/etc donc l'ancienne version marchera toujours) :

#include <stdio.h>
__printf_enable_fp();

Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Précédente 1, 2, 3 ··· 10 ··· 20 ··· 30 ··· 40 ··· 50 ··· 55, 56, 57, 58, 59, 60, 61 ··· 70, 71, 72, 73 Suivante

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2024 | Il y a 99 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd