Skip to content

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

Open
@barnou-psee

Description

@barnou-psee

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 <processor.tools.support@analog.com>
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions