-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EC500 #3
Comments
Hopefully it arrives this week. I'm hoping to extend the Remora-RT1052 code for the additional IO and super hopeful that it's just that that needs to be modified. |
should I wait? If I can try to flash it what tools do you use to flash it, are you using the mcuxpresso IDE and a FTDI? |
You could try to flash it with the current code. I use MCUExpresso with a CMSIS-DAP debug probe. |
I may try to make a blackmagic out of an old blue pill and see if that works. FYI my board designation is "IMXR_EC500 2022-09-07" |
Ok, i now have 5 programmer/probes.... none work! Tried black magic ( a few builds) and CMSIS-DAP on STM32F103 and STM32F411 (even tried black magic on esp32 S3 which actually works over wifi!!!) Wondering if you can link the exact version of CMSIS-DAP you are running. I've tried 3. Only one worked with mcuxpresso and i messed it up by changing the driver to winusb so now I can't get any of them to be seen in linkserver. Also wondering if you have any idea what the boot_m0 pin and pro_b are. I've tried to pull them up but no luck. Next i'm wondering if I have to jump through all those hoops you layout in post https://forum.linuxcnc.org/18-computer/44828-remora-ethernet-nvem-cnc-board?start=530#254824 or if you've added all that to this repo already. The screen shots are hard to read. Finally, wondering if this EC500 has the same flash chip as the EC300? I can add a zoomed in pic if you haven't checked. |
Hi Jesse,
I should have an EC500 on Friday to can check out the connections and
flash, as the EC300 and NVEM don't have the boot_m0 pin. The pro_b bin is
present on the EC300 and it connects to the Power On Reset pin on the
RT1052 so can be used to reset the board without power cycling. I've not
used it in debug mode you can force a reset.
The CMSIS-DAP firmware I used (before the DAPLink code) is
https://github.com/x893/CMSIS-DAP/tree/master/Firmware/STM32/hex
…On Wed, Jan 25, 2023 at 5:01 PM Jesse Schoch ***@***.***> wrote:
Ok, i now have 5 programmer/probes.... none work! Tried black magic ( a
few builds) and CMSIS-DAP on STM32F103 and STM32F411 (even tried black
magic on esp32 S3 which actually works over wifi!!!)
Wondering if you can link the exact version of CMSIS-DAP you are running.
I've tried 3. Only one worked with mcuxpresso and i messed it up by
changing the driver to winusb so now I can't get any of them to be seen in
linkserver.
Also wondering if you have any idea what the boot_m0 pin and pro_b are.
I've tried to pull them up but no luck.
Next i'm wondering if I have to jump through all those hoops you layout in
post
https://forum.linuxcnc.org/18-computer/44828-remora-ethernet-nvem-cnc-board?start=530#254824
or if you've added all that to this repo already. The screen shots are hard
to read.
Finally, wondering if this EC500 has the same flash chip as the EC300? I
can add a zoomed in pic if you haven't checked.
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGBMVIN7R5PZJQSTEHYWPE3WUC6U3ANCNFSM6AAAAAAUCXERGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Some updates:
Here is my openocd configs scripts\target\rt1052.cfg
here is my cmsis-dap.cfg
Connection looks like this
and trying to flash hello world looks like this.
I'm still unable to get mcuxpresso to see the cmsis-dap, i think I overwrote a usb driver definition with zadiag and it doesn't identify the device anymore. There is a probetable.csv file that has the PID/VID and configs but updating that has not helped me get it recognized. I've even uninstalled mcuxpresso. I may try to put it on my laptop to see if I can get it to work. Question: Is the memory config here correct or do I need to change it per your initial instructions for the ec300? |
Hi, EC500 arrived last Friday and yes I found the same issue with the 3.3v pin. The EC500 has the same components as the EC300 and NVEM and I flashed the board successfully with the current RT1052 Remora firmware. Memory config is the same as the EC300 / NVEM. How are you defining your flash algorithm for openOCD? |
I didn't try anything specific with openOCD, is that another config to add? What is your config for the flash? |
I think pyOCD might be a path as it can be setup to use flash algorithms (I think), which we now have for these boards. My quick googling for custom flash algorithms for openOCD didn't give much. |
it flashed!!!! i think
pyocd seems way better so far. |
ok, so in pyocd setting the target to mimxrt1050_quadspi works, the mimxrt1052cvl5b wasn't working.
it is stepping through the code! now to get the linuxcnc side working!!! |
Well done! I need to get this working to. Any special configs needed? |
Wow, this was to easy. Two commands and the board is flashed with pyOCD!! Thanks Jesse!!! python -m pip install -U pyocd 0001147 I Loading D:\Local Repositories NXP\Remora-RT1052\remora-rt1052\Debug\remora-rt1052.axf [load_cmd] |
what dhcpd server are you using, i see no /etc/dhcpd.conf wow, why did they make setting up a static ip a nightmare.... |
I'm running a raspberry pi so I set a static IP on the Ethernet and use wifi for normal internet. |
ya, my rpi install doesn't have that file, but i did the static ip config and after running some obscure flush command it took and i can take linuxcnc out of estop!!!!!! Wow this was hard. i think i flashed about 20 things... ended up using free dap on a pi pico but the real trick was using pyocd. more to come. |
What's in your pyocd_config.yaml file? So you were able to debug in MCUXpresso using pyOCD? |
yes, i could debug in MCUXpresso! the config is just this
I am seeing joint 0 follow errors randomly but the x is putting out pulses. |
How do you get serial ouput/uart off of this? Have you setup any pins? Is there a way to get it from swd? |
Serial comms is setup on the DB connector. 115200 baud 8N1. Haven't tried serial over swd. |
my board seems dead... i noticed it was running current limited at .3A and voltage sagged to ~9v. i upped the current and now i can't connect and the 3.3v line is reading like 0.8v. also tried to power direct to 3.3v line but it is pulling too much current, it was running ~0.06A prior to flashing. I didn't think undervolting could hurt it that much but i'm not sure what to do and i'm getting pretty sick of this board at this point. |
Doesn't sound good. Sorry to hear. |
if you could trace the source of the 3.3v that would be helpful. it appears there are 3 DC-DC IC's a MP4462 right off the 24v connection, a 1F8NY chip with 6 pins and a DE=G12 with 5 pins. Since ground is shorted to 3.3 somewhere it would help to know which IC to try to pull to get rid of the short and so I can order a new one. I guess it could also be other things but I"m guessing the low voltage stressed the DC-DC bus somewhere |
The 3.3v is connected to the 1F8NY chip. Pin at the base (bottom) of the letter Y. |
I think I found the data sheet. MP2359 The datasheet has a great big "not recommended for new designs refer to MP2331H" |
no luck, even pulled the voltage supervisor off the pro_b pin and the mysterious "IC" chip as well as Q2. tried to pump some current into it to see what heated up but nothing got above 104F from what my crappy IR temp thing says. |
I'm mapping out the power pins. 24V to the rt1052 L2 ball is mapped through an inductor to 3.3v, i need to read how this works i've been wondering what that inductor is for, some notion of a dc-dc converter from the data sheet but I just scanned it. U4 is the winbond flash is on the U5 3.3v bus big question remains: where is the short, it is 0.8 ohms... and what does U7 power? Going to dig into the datasheet's power section to try to understand this fancy chip's bootup |
Hey, you guys where able to flash the EC500 with the raspberry pi? |
Hi Scott, when I type pyocd flash .\remora-rt1052.axf --target mimxrt1050_quadspi it asks me for a debug probe to be connected, what did you use for that? |
You will need a CMSIS-DAP probe. You can convert an ST-Link V2 by flashing the CMSIS-DAP firmware available in the repo. |
I see, also I would like to know how did you setup your Pi, I'm using a Pi 4 model B with debian 10 and LinuxCNC 2.8 but when I installed PyOCD, LinuxCNC stopped working, do you think I should flash the EC500 first and then set the Pi again for LinuxCNC? |
Hi, not sure why LinuxCNC stopped working. I flash my NVEM / EC300 / EC500's using a Windows machine. You will need to install the dev version of LinuxCNC to enable the installation of the Remora component. |
Hi I got the NodeMCU ESP8266 and usb/ip working. But how do I actually program the card via openocd? I am going to load usb/ip on the windows computer and give that a run. Also do I need to power the 24v on the board to program the chip or is there a way around it by providing 3v to the pin? I really would rather just provide 3v then having to run 24v and no 3v because otherwise I have to bring a 24v power supply with me wherever I decide to try to get this working haha |
Further up in this thread is the commands used to install pyOCD and to flash the board. You could try to power the board using the CMSIS-DAP probe, but I've found that it's not reliable and always have had the 24v supply to the board. |
Is it possible to use the esp8266 with pyocd? |
So we eventually got it working sorry about the spam, what ports are missing or if the list is shorter what ports are implemented? |
Hi I was wondering if any of you by chance had the NVCM V2 backup firmware file by chance I know it’s off topic but no one else has it and the Chinese don’t respond. |
Hi, I'm getting closer with the EC500. But the current published firmware has the IO available shown in this post. https://www.forum.linuxcnc.org/18-computer/44828-remora-ethernet-nvem-cnc-board?start=670#264193 |
Any idea on how to get this controller to work again haha, what i mean is that it was working with linuxcnc and i had ethernet in and moving the axis i connected via debug got the firmware updated again, disconnected from debug it was working and then i restarted it and started trying to get the dap link to work again with it to do another update and i got the two RED LED lights lit up but i got no ethernet and no ack on the dap link. can't get pyocd to even reset the device or ethernet lights to come up, any idea? |
wondering if you have received your EC500 yet. I just got one with the RT1052 and wanted to try it out but I know little about this chip. Can you let me know which branch would work and how to flash it? I see SWD 3.3v etc broken out on the right side of the board, assuming I can flash with a uart or stlink or something.
The text was updated successfully, but these errors were encountered: