lauriebose / Scamp5-MNIST_AREG_CNN_example

Example project of digit recognition CNN on Scamp5
1 stars 0 forks source link

Unpredictable Error On SCAMP5d Simulator #1

Open Bennett-hash opened 2 months ago

Bennett-hash commented 2 months ago

When I tried to familiarise myself with the CNN application on SCAMP 5, I found that it works well in hardware. However, it seems not adaptable to the SCAMP5d simulator; 111 errors happened in the Visual Studio, and when I tried to analyse the code in a fully conductive layer, the white boxes randomly flashed in the digital registers. I cloned the code from your GitHub directly. In addition, I used Visual Studio 2022 and SCAMP simulator 1.2.0.1 as tools to help me.

Do you have a particular version for the SCAMP5d simulator or relevant resources?

Thank you so much.

lauriebose commented 2 months ago

Hi, Sorry I do not have any version tested in the simulator. I imagine you are getting many errors from code for adjusting hardware parameters (like vxc), none of which exist in the simulator. I could try and make a simulator friendly version if there is demand.

So you have SCAMP5 hardware you can use? Where are you based? In general I always focus on hardware implementation. The simulator does not model accurately all aspects of the hardware, so I would strongly recommend testing programs on the hardware over the simulator whenever possible. Optimizing programs is also very difficult without timing on real hardware.

Bennett-hash commented 2 months ago

Yeah, I got SCAMP5 hardware last week from The University of Manchester, and I am also studying at Manchester. The same person chatted with you on Linkedin a few minutes ago.

I did not add a monitor for digital and analogue registers. I guess using SCAMP 5 hardware to check the working mechanism is challenging since the analogue simulator's content will decay quickly. Still, if that is useful, I will probably use the "debug" mod and breakpoint in MCUXpresso directly to understand.

Thanks a lot for your response.