Remora - ethernet NVEM / EC300 / EC500 cnc board

More
3 years 3 months ago #276538 by frayja2002
Hi there

I have done
sudo apt install python3-pip

But am still getting ...

(7:46:16am)> python3 upload_config.py ec500-rt1052.txt
Traceback (most recent call last):
File "upload_config.py", line 7, in <module>
import tftpy
ModuleNotFoundError: No module named 'tftpy'


I have tried using python2 but get the following ....

(7:40:12am)> python2 upload_config.py ec500-rt1052.txt
Valid JSON config file, uploading to board
('Config file length (words) =', 1715.0)
('Config file length (bytes) =', 6862)
('Remainder =', 2)
('Padding added = ', [0, 0])
('Config file length with padding (bytes) =', 6868)
('CRC-32 =', '0x3149e81e')
Traceback (most recent call last):
File "upload_config.py", line 58, in <module>
metadata[4] = length & 0xff
TypeError: unsupported operand type(s) for &: 'float' and 'int'

I also tried running it as sudo as I thought there might be a permissions problem.
Unfortunately I'm not having much luck.

Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #276540 by scotta
I'd say it's a python version issues. Maybe check out this for some tips

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #276541 by frayja2002
Thanks Scott. I worked it out.

Installing from the package manager does not work.
I was originally using pip install however it must be pip3 install for it to work.

I have seen in the previous page that there has been some discussion about documenting remora.

I would like to be able to add my experiences to any documentation effort if you are interested, although I have not done anything like this before.

Looking through the web docs I think the DigitalDream stuff is different enough to need its own docs.
I have just spent the last 2 days looking through the 100 odd pages of this thread & think it would be good to put the info in a more searchable form.

Let me know your thoughts.

Alex

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago - 3 years 3 months ago #276547 by frayja2002
Hi Scott.

I have managed to upload the config file to the newly flashed EC500 board & am starting to play with it.
Looking at the hal show all (most) of the inputs seem to be inverted. Assuming this may just be a quirk I have gone into th econfig file & tried to invert some of the pins & this seem to have no effect. 

     {
    "Thread": "Servo",
    "Type": "Digital Pin",
        "Comment":            "IN01",
        "Pin":                "P3_25",
        "Mode":                "Input",
        "Data Bit":            4,
        "Invert":            "true"
    },

I believe the upload is working as I get no errors....

(2:01:52pm)> python3 upload_config.py ec500-rt1052.txt 
Valid JSON config file, uploading to board
Config file length (words) = 1716
Config file length (bytes) = 6861
Remainder = 1
Padding added =  [0, 0, 0]
Config file length with padding (bytes) = 6864
CRC-32 = 0xbf67a0b8

And if I go through & toggle the inputs the red light on the board comes on & the yellow light in hal show turns red (deactivates)

Two questions
Should they be high by default.
Why does changing false to true in the config file have no effect.

Thanks

 
Last edit: 3 years 3 months ago by frayja2002.

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #276560 by raf1110
This action actually got me rs232 to running state on serial monitor I assume now I need to connect to machine.
There is one thing that is latency warning.

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #276571 by cncmiljc
I would like to know the following, using the firmware for the "nvem" everything works perfectly, but I changed the processor, f207 to f407, I also changed the numbers of the timers " baseThread = new pruThread(TIM9, TIM1_BRK_TIM9_IRQn, base_freq);
//NVIC_SetVector(TIM1_BRK_TIM9_IRQn, (uint32_t)TIM9_IRQHandler);
NVIC_SetPriority(TIM1_BRK_TIM9_IRQn, 2);

servoThread = new pruThread(TIM10, TIM1_UP_TIM10_IRQn, servo_freq);
//NVIC_SetVector(TIM1_UP_TIM10_IRQn, (uint32_t)TIM10_IRQHandler);
NVIC_SetPriority(TIM1_UP_TIM10_IRQn, 3);

I did all the reconfiguration in the "timer.cpp" folder and also the clock reconfiguration, however the following is happening, when I use the firmware of the "nvem" itself with the reconfiguration, everything works perfectly, however when trying to do everything from scratch, that is create a new configuration, nothing works, do you need some version of " "Stm Cube IDE" to do that? I want to make a new configuration, that is to start so as not to use the firmware of the "nvem" itself, at the moment I am using this version "STM32CubeIDE

Version: 1.12.0.

Please Log in or Create an account to join the conversation.

Time to create page: 0.226 seconds
Powered by Kunena Forum