Remora - ethernet NVEM / EC300 / EC500 cnc board

More
4 years 1 week ago #254678 by MX_Master
Can you provide to people a detailed list how to flash a new firmware with DAP-Link (CMSIS-DAP)?

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

More
4 years 1 week ago #254738 by scotta

Can you provide to people a detailed list how to flash a new firmware with DAP-Link (CMSIS-DAP)?
I'll put a working debug program skeleton up on github. A true DAP-link firmware would be the ultimate but at least CMSIS-DAP + MCUExpressoIDE has got us to a working point.
The following user(s) said Thank You: skench, tommylight, MX_Master, RogEnk

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

More
4 years 1 week ago #254822 by scotta
There has been a lot or research, trial and error to get to the point where we can program and debug the iMX RT1052 chip on these new Novusun CNC controllers. I've created a repo with a program template that is working with the EC300 controller board, but I see no reason why it wont work with the new NVEM, EC500 etc as the components on these boards appears to be the same.

github.com/scottalford75/iMX_RT1052_QSPI_Flash

This is also an opportunity over the coming posts to document how I got this working as some of the documentation on line does not work!

We'll be using MCUXpressoIDE for development and NXP has some tools to create Software Development Kits (SDKs). We'll need two SDK's. One for the RT1052 and another for the RT1021. The EVKMIMXRT1021 development board comes with QSPI flash so we'll take advantage of those drivers.



The following user(s) said Thank You: tommylight, MX_Master, mrbubble, Murphy, RogEnk

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

More
4 years 1 week ago - 4 years 1 week ago #254823 by scotta
Now to the main game, creating the RT1052 project. Start a New Project and only select the Device, we don't want the overhead of the development board configuration, even though we do get some defaults come through. But we'll fix that. 



Select the CVL5B package and add both the xip_device and xip_board. This will setup the linker configuration etc for us. 



Click next and then configure the Flash. Click on Add Flash and then enter the details for the Winbond W25Q32JV flash. Also select the LinkServer flash driver. Use the MIMXRT1050_SFDP_QSPI driver. This was the key to getting up and going. This driver interrogates the Flash chip and self configures.



Next we will change the flash driver, the one that will be used by the BootROM to load our program, to the one from the RT1021. Delete the files from the xip directory and copy in the ones from the RT1021 and rename them.

 

The last step is to correct the flash size. Some documentation says to update some of the LUT settings, but the defaults work and the suggested changes fail, stopping the boot-up.

Last edit: 4 years 1 week ago by scotta.
The following user(s) said Thank You: MX_Master, mrbubble, RogEnk

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

More
4 years 1 week ago #254824 by scotta
We can now test out debugging. A CMSIS-DAP probe is required and connect only 3 of the SWD pins. On the new NVEM and EC300 there is no 3.3v pin available, so the board needs to be powered.

Clicking on the Debug icon will bring up the Probes selection. Click ok and debug will start.

 

The LinkServer GUI Flash Tool can be used to run the separate program and erase scripts if needed.

 

Debugging will download the new program and launch the session. The program should halt at the breakpoint automatically set at main and we should be in the Flash address space of 0x60000000. Now to get programming....

 
The following user(s) said Thank You: skench, tommylight, MX_Master, mrbubble, RogEnk

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

More
4 years 1 week ago #254934 by Snap1202
Hi all together!
iam more or less new to linux cnc but setup A dozen machines with other systems and happy to work me through Linuxcnc. But i need a little bit of help on configure the machine under remora. I was able to flash the EC500 and Linux is connecting fine.Are there some links maybe,that explain the setup with a non mesa non DB25? If i understand nor the stepconfig or PNCconfig are used under remora. A basic 3 axis limit switch setup is what iam looking for. So if someone has maybe some links or something to start with it would help alot.

Regards Dominik

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

Time to create page: 0.161 seconds
Powered by Kunena Forum