Skip to content

ratel problem #17

@Martinix75

Description

@Martinix75

Good morning,
I wanted to try Ratle, to play a little with the "Arduino" that I have around the house / laboratory.
I created the config.nims file

 
import boardConf
board "unor3"

--avr.any.gcc.path: "/home/andrea/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin" #"/usr/bin"

Which should be the valid way up to the AVR compiler (I hope).
I try the example file that I call "rttTest.nim" within the "rttTest Directory.

import board
import board / [times, serial, progmem]

Serial.init(9600.Hz)
Serial.send p"Hello world\n"
Led.output()

while true:
  Led.high()
  Serial.send p"Led is on\n"
  delayMs(1000)
  Led.low()
  Serial.send p"Led is off\n"
  delayMs(1000) 

But after the "ratel ruild" command I get the following mistake:

andrea@tec-martin:~/Scrivania/rttTest> ratel build
Hint: used config file '/home/andrea/bin/nim/config/nim.cfg' [Conf]
Hint: used config file '/home/andrea/bin/nim/config/config.nims' [Conf]
Hint: used config file '/home/andrea/Scrivania/rttTest/config.nims' [Conf]
..........................................................................
/home/andrea/bin/nim/lib/pure/unicode.nim(849, 36) Error: type mismatch: got 'int32' for 'RuneImpl(toLower(ar)) - RuneImpl(toLower(br))' but expected 'int'
vmops.nim(7)             exec
Error: unhandled exception: nim c -d:danger --os:any rttTest.nim [OSError]
andrea@tec-martin:~/Scrivania/rttTest> ratel build

I'm wrong something sensational or do you come any problem in ratel?
Good evening from Martin A.
p.s i use NIM 2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions