Skip to content
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

MAX78002: Setting the board for PMON makes it unusable afterwards #1286

Open
barnou-psee opened this issue Dec 6, 2024 · 0 comments
Open

Comments

@barnou-psee
Copy link

barnou-psee commented Dec 6, 2024

I recently got a MAX78002EvKit_1 to work on and spent some time setting it up. I managed to run the default shipped application and some examples including the Hello_World, the CNN/cifar-100-effnet2 and the CNN/cifar-100-mobilenet-v2-0.75. I also managed to convert a model with the ai8x-synthesis repo (on develop) and run it on the board.
The feature that I'm interested in is the power monitoring utility built in the board but each time I'm trying to prepare the board for a benchmark following the provided MAX7800x Power Monitor and Energy Benchmarking Guide I have trouble getting my board usable again.
To note, I'm setting the board for benchmark before trying to flash a model that has been converted with the --energy option, maybe this is my mistake here, but I would like to know what's the procedure to get the board back after the PMON start. I also tried to reset the board using the erase.act method but the flash is still not going on.

The flash & run VS code output:

 *  Executing task: arm-none-eabi-gdb --cd="/home/barnou/MaximSDK/Examples/MAX78002/CNN/cifar-100-mobilenet-v2-0.75" --se="build/cifar-100-mobilenet-v2-0.75.elf" --symbols=build/cifar-100-mobilenet-v2-0.75.elf -x="/home/barnou/MaximSDK/Examples/MAX78002/CNN/cifar-100-mobilenet-v2-0.75/.vscode/flash.gdb" --ex="flash_m4_run /home/barnou/MaximSDK/Tools/OpenOCD cmsis-dap.cfg MAX78002.cfg" --batch 

The target architecture is set to "armv7e-m".
Open On-Chip Debugger (Analog Devices 0.12.0-1.0.0-7)  OpenOCD 0.12.0 (2023-09-27-07:53)
Licensed under GNU GPL v2
Report bugs to <[email protected]>
0x0000fff4 in ?? ()
Loading section .text, size 0x1646e4 lma 0x10000000
Loading section .ARM.exidx, size 0x8 lma 0x101646f0
Loading section .data, size 0xa2c lma 0x101646f8
Loading section .shared, size 0x4 lma 0x10165124
Error finishing flash operation
[Inferior 1 (Remote target) detached]

I also joining the Pico DETAILS.TXT file and the flash.log that result in my task.

Pico DETAILS.TXT
flash.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant