Disable reset program after unplug usb

13 posts / 0 new
Last post
anggaranc
Offline
Last seen: 5 years 11 months ago
Joined: 2016-04-05 07:26
Disable reset program after unplug usb

Hi

I used dev kit murata P2ML3656 with BLE module bluetooth type ZY

After download/compile .hex send to dev kit why this dev kit reset not save my program when I unplug the usb cable.
how to disable this cofiguration?

Keywords: 
MT_dialog
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2015-06-08 11:34
Hi anggaranc,

Hi anggaranc,

If the 580 is not supplied or reset the sysram will not retain the data, in order to reload the data to the sysram after a reset occurs you will have to use the flash that the P2ML3656 has on board, burn the .hex file into the flash using smart snippets.

Thanks MT_dialog 

anggaranc
Offline
Last seen: 5 years 11 months ago
Joined: 2016-04-05 07:26
Thanks MT_dialog

Thanks MT_dialog

I try flash with smart snippets. i follow step N1-2974B: OTP Memory Burning Guide.
when I flash to succes. I try to check with RealTerm but apparently not successful. when I downloaded again with booter smartsnippets can't press the reset button, you can see
link : http://s31.postimg.org/5czfgep16/error2.jpg

check with connection manager:
----------------------------------------
hex2bin v1.0.10, Copyright (C) 2012 Jacques Pelletier & contributors

Lowest address = 00000000
Highest address = 00003EEB
Pad Byte = FF
8-bit Checksum = A0

Tools directory: C:\Program Files\ConnectionManager\bin\firmware_upload\
Using HEX file: "C:\Program Files\ConnectionManager\bin\firmware_upload" "full_emb.hex"

--- Generated JLink Script File ---
r
w2 50000012, A6
W2 50003308, 2e
loadbin "full_emb.bin", 0
verifybin "full_emb.bin", 0
r
g
exit
---

SEGGER J-Link Commander V4.72 ('?' for help)
Compiled Jun 12 2013 15:47:30

Script file read successfully.
DLL version V4.72, compiled Jun 12 2013 15:47:08
Firmware: J-Link ARM Lite V8 compiled Oct 29 2014 09:03:16
Hardware: V8.00
S/N: 228206258
Feature(s): GDB
VTarget = 3.041V
Info: Could not measure total IR len. TDO is constant high.
Info: Could not measure total IR len. TDO is constant high.
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x0BB11477
Info: FPUnit: 4 code (BP) slots and 0 literal slots
Info: Found Cortex-M0 r0p0, Little endian.
No device found on SWD.
Cortex-M0 identified.
JTAG speed: 100 kHz
Processing script file...

****** Error: TCK (pin 9) low, but should be high. Please check target hardware.
Reset delay: 0 ms
Reset type UNKNOWN: ???

Writing 00A6 -> 50000012

Writing 002E -> 50003308

Loading binary file... [full_emb.bin]
Writing bin data into target memory @ 0x00000000.

Loading binary file full_emb.bin
Reading 16108 bytes data from target memory @ 0x00000000.
Verify failed @ address 0x00000000.
Expected 00 read C0
Reset delay: 0 ms
Reset type UNKNOWN: ???

Script processing completed.
---------------------------------------------------------------

check with keil debug jlink SWD not list
link : http://s31.postimg.org/odo3l1qyj/error.png

what my problem?

MT_dialog
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2015-06-08 11:34
Hi anggaranc,

Hi anggaranc,

I am not aware of the documentation you refer to, i guess that you are using smart snippets and the flash option in order to interact with your flash, please make sure that the pins of the flash are connected and that you erase the flash before burning your image, also when the smart snippets prompts you for making the image bootable check yes, after the flash has been burned, then you should hit the reset button and the code will start executing. Is your program prints anything (you said that you dont get anything in Real Term) ? The connection manager is a different tool, it wont burn your flash but it will download code to your sysram. Also from your last image i can see that keil doesn't see your proccessor, please try to hit the reset button and check if keil can see your board.

Thanks MT_dialog

anggaranc
Offline
Last seen: 5 years 11 months ago
Joined: 2016-04-05 07:26
Maybe my dev kit have problem

Maybe my dev kit have problem. Now i can see SWD in keil, i can run and debug again. I try flash with spi flash programmer from smartsnippets with connection JTAG. I try DSPS project
you can see http://postimg.org/image/mfamvulhd/full/
after connect browse my hex file then click burn it
but it did not work signal bluetooth not list in my android different when debug and run with keil 5 work fine

i need how to module run standalone when supply without run in keil

what wrong with my configuration?
you can see my configuration keil file .zip, can you fix it?
https://drive.google.com/file/d/0BwAkrCiL3F9maGVwcDUwamlJMk0/view?usp=sh...

MT_dialog
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2015-06-08 11:34
Hi anggaranc,

Hi anggaranc,

I see no problem with the .hex file you ve sent, i was able to burn it in flash on the P2ML3656 and see it advertising on the DSPS device, also i can see from your image that you make it bootable. Are you hitting the reset button after burning the flash in order for the bootloader to run and load the image ?

Thanks MT_dialog

anggaranc
Offline
Last seen: 5 years 11 months ago
Joined: 2016-04-05 07:26
Yes, I also have tried and

Yes, I also have tried and wait several minutes after press reset button but the result is same. You can see .pdf my step. is there something wrong?

my config board smartspipped
http://postimg.org/image/hb531vwoh/full/

Attachment: 
MT_dialog
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2015-06-08 11:34
Hi anggaranc,

Hi anggaranc,

I dont see anything wrong in your setting of Smart Snippets and since you were able to erase (are you erasing the flash before burning the image ?) and burn the flash without problem i dont think that the settings of smart snippets is the problem. Are you able to run the power profiler and check the activity of your device after reset ? If not you can try to connect to a terminal and check if the bootloader is printing rubish after a reset and with a burned SPI (that means that the bootloader is running). Also are you able to execute any other project from the flash ? you can try an example from the SDK.

Thanks MT_dialog

anggaranc
Offline
Last seen: 5 years 11 months ago
Joined: 2016-04-05 07:26
Before click burn i am click

Before click burn i am click erase so data empty, after burn the result same data not running. Yeah i also try example blinky, timer0, prox_reporter, ble_app_barebone in SDK the result same could only running with keil, with spi flash not working.

you can see this running with dsps http://postimg.org/image/n8kzc1o0x/full/ after press button reset in power profiler. it looks programs running but the device still can not found.

whether there are other ways for spi flash with smartpsnippet?

anggaranc
Offline
Last seen: 5 years 11 months ago
Joined: 2016-04-05 07:26
can you give me tutorial step

can you give me tutorial step by step/screenshot for spi flash with your murata dev kit hardware? please help me

MT_dialog
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2015-06-08 11:34
Hi anggaranc,

Hi anggaranc,

There isn't any tutorial from Dialog on to how to burn the flash by using a murata kit (perhaps you should address murata if a document like this exists) and the only available tool for burning a flash is the Smart Snippets. I ve attached a small pdf with my configurations on a murata kit hope you find it usefull.

Thanks MT_dialog

Attachment: 
anggaranc
Offline
Last seen: 5 years 11 months ago
Joined: 2016-04-05 07:26
Thanks your tutorial

Thanks your tutorial

I have followed your step with jumper EN_ADBUS2, EN_ADBUS3 and EN_ADBUS5 but spi flash can't read 32kb and erese data but when i am unplug this jumper can work erase and read 32kb successfuly. after spi flash burn my hex data, i am open power profiler and click button initialize the result power profile can't running. it seems only runs on UART PORT, so I switch connection jtag to uart to see the power profiler can work, but after hit button reset the result not like your power profiler ( my result like http://postimg.org/image/n8kzc1o0x/full/ )

but when run with debug keil my power profiler the result same with your picture

MT_dialog
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2015-06-08 11:34
Hi anggaranc,

Hi anggaranc,

Yes the power profiler uses the UART port in order to send data to the Smart Snippets, so you will have to disconnect from the JTAG interface and reconnect with the UART configuration, seems that your board cant boot from the SPI flash, you take a capture of the flash and check that there is data transaction when hiting the reset between the board and the flash, also i ve noticed in your picture that the MISO line of the SPI is connection not via a jumper but via a wire or something like that, you can replace this with a jumper and check if that is what causes you trouble. Also as far as the jumpers is concern i dont think that they have something to do with the SPI but with the FTDI chip on the board, since you are not using the UART to download code but the JTAG, i cant see how those can affect the burning procedure of the flash.

Thanks MT_dialog